Update VS Code Through Application

Update VS Code Through Application Directly.I Think it is very useful to update

It is Not Duplicate

@vishnutasok VSC automatically searches for updates upon launch and if detected, prompts for update/installation.

@saifali96 thanks for jumping in.


RenderTwoDimensionalViewport.buildOrObtainChildFor throws assertion failure for a valid vicinity

Steps to reproduce

Run the example
Press on FAB
Press again on FAB

Expected results
You should see the initial widgets on screen since pressing on FAB for second time returns to the initial state.
Actual results
Nothing renders on screen and you'll get an exception log in console due to assertion failure in RenderTwoDimensionalViewport.parentDataOf
Code sample
Code sample
https://dartpad.dev/?id=2c4cc823007d1dc0a9727be611e62f2c

Logs
Logs
════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
'package:flutter/src/widgets/two_dimensional_viewport.dart': Failed assertion: line 783 pos 12: '_children.containsValue(child)': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

The relevant error-causing widget was:
    TwoDimensionalGridViewport TwoDimensionalGridViewport:file:///main.dart:127:12

When the exception was thrown, this was the stack:
#2      RenderTwoDimensionalViewport.parentDataOf (package:flutter/src/widgets/two_dimensional_viewport.dart:783:12)
#3      RenderTwoDimensionalViewport._moveChild (package:flutter/src/widgets/two_dimensional_viewport.dart:1630:62)
#4      _TwoDimensionalViewportElement.moveRenderObjectChild (package:flutter/src/widgets/two_dimensional_viewport.dart:265:18)
#5      RenderObjectElement.updateSlot (package:flutter/src/widgets/framework.dart:6542:35)
#6      Element.updateSlotForChild.visit (package:flutter/src/widgets/framework.dart:4153:15)
#7      Element.updateSlotForChild.visit (package:flutter/src/widgets/framework.dart:4156:9)
#8      Element.updateSlotForChild.visit (package:flutter/src/widgets/framework.dart:4156:9)
#9      Element.updateSlotForChild.visit (package:flutter/src/widgets/framework.dart:4156:9)
#10     Element.updateSlotForChild (package:flutter/src/widgets/framework.dart:4159:5)
#11     Element.updateChild (package:flutter/src/widgets/framework.dart:3799:11)
#12     _TwoDimensionalViewportElement._buildChild.<anonymous closure> (package:flutter/src/widgets/two_dimensional_viewport.dart:313:33)
#13     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2835:19)
#14     _TwoDimensionalViewportElement._buildChild (package:flutter/src/widgets/two_dimensional_viewport.dart:307:12)
#15     RenderTwoDimensionalViewport.buildOrObtainChildFor.<anonymous closure> (package:flutter/src/widgets/two_dimensional_viewport.dart:1427:23)
#16     RenderObject.invokeLayoutCallback.<anonymous closure> (package:flutter/src/rendering/object.dart:2657:59)
#17     PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:1071:15)
#18     RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:2657:14)
#19     RenderTwoDimensionalViewport.buildOrObtainChildFor (package:flutter/src/widgets/two_dimensional_viewport.dart:1426:7)
#20     RenderTwoDimensionalGridViewport.layoutChildSequence (package:example/main.dart:227:34)
#21     RenderTwoDimensionalViewport.performLayout (package:flutter/src/widgets/two_dimensional_viewport.dart:1252:5)
#22     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2385:7)
#23     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1025:18)
#24     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1038:15)
#25     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:591:23)
#26     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:986:13)
#27     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:457:5)
#28     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1325:15)
#29     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1255:9)
#30     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:5)
#31     _invoke (dart:ui/hooks.dart:312:13)
#32     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:383:5)
#33     _drawFrame (dart:ui/hooks.dart:283:31)
(elided 2 frames from class _AssertionError)

The following RenderObject was being processed when the exception was fired: RenderTwoDimensionalGridViewport#9d954 NEEDS-LAYOUT
    needs compositing
    parentData: <none> (can use size)
    constraints: BoxConstraints(0.0<=w<=984.0, 0.0<=h<=691.0)
    layer: OffsetLayer#dc1bd
        engine layer: OffsetEngineLayer#3c122
        handles: 2
        offset: Offset(0.0, 56.0)
    size: Size(984.0, 691.0)
    (xIndex: 1, yIndex: 1): RenderRepaintBoundary#71f4f NEEDS-PAINT
        needs compositing
        parentData: vicinity=(xIndex: 1, yIndex: 1); layoutOffset=Offset(200.0, 200.0); paintOffset=Offset(0.0, 0.0); visible - paintExtent=Size(200.0, 200.0);
        constraints: BoxConstraints(0.0<=w<=984.0, 0.0<=h<=691.0)
        layer: OffsetLayer#8295b
            engine layer: OffsetEngineLayer#415f8
            handles: 2
            offset: Offset(0.0, 0.0)
        size: Size(200.0, 200.0)
        metrics: 66.7% useful (1 bad vs 2 good)
        diagnosis: insufficient data to draw conclusion (less than five repaints)
        child: RenderConstrainedBox#f153a relayoutBoundary=up1 NEEDS-PAINT
            parentData: <none> (can use size)
            constraints: BoxConstraints(0.0<=w<=984.0, 0.0<=h<=691.0)
            size: Size(200.0, 200.0)
            additionalConstraints: BoxConstraints(w=200.0, h=200.0)
            child: _RenderColoredBox#e6003 NEEDS-PAINT
                parentData: <none> (can use size)
                constraints: BoxConstraints(w=200.0, h=200.0)
                size: Size(200.0, 200.0)
                behavior: opaque
                child: RenderPositionedBox#d4659
                    parentData: <none> (can use size)
                    constraints: BoxConstraints(w=200.0, h=200.0)
                    size: Size(200.0, 200.0)
                    alignment: Alignment.center
                    textDirection: ltr
                    widthFactor: expand
                    heightFactor: expand
RenderObject: RenderTwoDimensionalGridViewport#9d954 NEEDS-LAYOUT
    needs compositing
    parentData: <none> (can use size)
    constraints: BoxConstraints(0.0<=w<=984.0, 0.0<=h<=691.0)
    layer: OffsetLayer#dc1bd
        engine layer: OffsetEngineLayer#3c122
        handles: 2
        offset: Offset(0.0, 56.0)
    size: Size(984.0, 691.0)
    (xIndex: 1, yIndex: 1): RenderRepaintBoundary#71f4f NEEDS-PAINT
        needs compositing
        parentData: vicinity=(xIndex: 1, yIndex: 1); layoutOffset=Offset(200.0, 200.0); paintOffset=Offset(0.0, 0.0); visible - paintExtent=Size(200.0, 200.0);
        constraints: BoxConstraints(0.0<=w<=984.0, 0.0<=h<=691.0)
        layer: OffsetLayer#8295b
            engine layer: OffsetEngineLayer#415f8
            handles: 2
            offset: Offset(0.0, 0.0)
        size: Size(200.0, 200.0)
        metrics: 66.7% useful (1 bad vs 2 good)
        diagnosis: insufficient data to draw conclusion (less than five repaints)
        child: RenderConstrainedBox#f153a relayoutBoundary=up1 NEEDS-PAINT
            parentData: <none> (can use size)
            constraints: BoxConstraints(0.0<=w<=984.0, 0.0<=h<=691.0)
            size: Size(200.0, 200.0)
            additionalConstraints: BoxConstraints(w=200.0, h=200.0)
            child: _RenderColoredBox#e6003 NEEDS-PAINT
                parentData: <none> (can use size)
                constraints: BoxConstraints(w=200.0, h=200.0)
                size: Size(200.0, 200.0)
                behavior: opaque
                child: RenderPositionedBox#d4659
                    parentData: <none> (can use size)
                    constraints: BoxConstraints(w=200.0, h=200.0)
                    size: Size(200.0, 200.0)
                    alignment: Alignment.center
                    textDirection: ltr
                    widthFactor: expand
                    heightFactor: expand
════════════════════════════════════════════════════════════════════════════════

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.16.1, on macOS 14.2.1 23C71 darwin-arm64, locale
    en-US)
    • Flutter version 3.16.1 on channel stable at /flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7f20e5d18c (6 weeks ago), 2023-11-27 09:47:30 -0800
    • Engine revision 22b600f240
    • Dart version 3.2.1
    • DevTools version 2.28.3

Reproducible using the code sample provided in the dartpad shared above (pasted below for easy access).

code sample
// Copyright (c) 2019, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:math' as math;

import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      scrollBehavior: const MaterialScrollBehavior().copyWith(
        // Mouse dragging enabled for this demo
        dragDevices: PointerDeviceKind.values.toSet(),
      ),
      debugShowCheckedModeBanner: false,
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  final String title;

  const MyHomePage({
    Key? key,
    required this.title,
  }) : super(key: key);

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

final vicinityToKey1 = <ChildVicinity, String>{
  const ChildVicinity(xIndex: 1, yIndex: 1): '1',
  const ChildVicinity(xIndex: 1, yIndex: 2): '2',
};

final vicinityToKey2 = <ChildVicinity, String>{
   const ChildVicinity(xIndex: 0, yIndex: 0): '1',
  const ChildVicinity(xIndex: 1, yIndex: 1): '2',
};

class _MyHomePageState extends State<MyHomePage> {
  late Map<ChildVicinity, String> vicinityToKey = vicinityToKey1;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(widget.title)),
      floatingActionButton: FloatingActionButton(
        onPressed: () => setState(() {
          if (vicinityToKey == vicinityToKey1) {
            vicinityToKey = vicinityToKey2;
          } else {
            vicinityToKey = vicinityToKey1;
          }
        }),
      ),
      body: TwoDimensionalGridView(
        diagonalDragBehavior: DiagonalDragBehavior.free,
        delegate: TwoDimensionalChildBuilderDelegate(
            maxXIndex: 30,
            maxYIndex: 30,
            addAutomaticKeepAlives: false,
            addRepaintBoundaries: false,
            builder: (BuildContext context, ChildVicinity vicinity) {
              final key = vicinityToKey[vicinity];
              if (key != null) {
                return AutomaticKeepAlive(
                  key: ValueKey(key),
                  child: RepaintBoundary(
                    child: Container(
                      color: vicinity.xIndex.isEven && vicinity.yIndex.isEven
                          ? Colors.amber[50]
                          : (vicinity.xIndex.isOdd && vicinity.yIndex.isOdd
                              ? Colors.purple[50]
                              : null),
                      height: 200,
                      width: 200,
                      child: Center(child: Text(key)),
                    ),
                  ),
                );
              }
              return null;
            }),
      ),
    );
  }
}

class TwoDimensionalGridView extends TwoDimensionalScrollView {
  const TwoDimensionalGridView({
    super.key,
    super.primary,
    super.mainAxis = Axis.vertical,
    super.verticalDetails = const ScrollableDetails.vertical(),
    super.horizontalDetails = const ScrollableDetails.horizontal(),
    required TwoDimensionalChildBuilderDelegate delegate,
    super.cacheExtent,
    super.diagonalDragBehavior = DiagonalDragBehavior.none,
    super.dragStartBehavior = DragStartBehavior.start,
    super.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
    super.clipBehavior = Clip.hardEdge,
  }) : super(delegate: delegate);

  @override
  Widget buildViewport(
    BuildContext context,
    ViewportOffset verticalOffset,
    ViewportOffset horizontalOffset,
  ) {
    return TwoDimensionalGridViewport(
      horizontalOffset: horizontalOffset,
      horizontalAxisDirection: horizontalDetails.direction,
      verticalOffset: verticalOffset,
      verticalAxisDirection: verticalDetails.direction,
      mainAxis: mainAxis,
      delegate: delegate as TwoDimensionalChildBuilderDelegate,
      cacheExtent: cacheExtent,
      clipBehavior: clipBehavior,
    );
  }
}

class TwoDimensionalGridViewport extends TwoDimensionalViewport {
  const TwoDimensionalGridViewport({
    super.key,
    required super.verticalOffset,
    required super.verticalAxisDirection,
    required super.horizontalOffset,
    required super.horizontalAxisDirection,
    required TwoDimensionalChildBuilderDelegate super.delegate,
    required super.mainAxis,
    super.cacheExtent,
    super.clipBehavior = Clip.hardEdge,
  });

  @override
  RenderTwoDimensionalViewport createRenderObject(BuildContext context) {
    return RenderTwoDimensionalGridViewport(
      horizontalOffset: horizontalOffset,
      horizontalAxisDirection: horizontalAxisDirection,
      verticalOffset: verticalOffset,
      verticalAxisDirection: verticalAxisDirection,
      mainAxis: mainAxis,
      delegate: delegate as TwoDimensionalChildBuilderDelegate,
      childManager: context as TwoDimensionalChildManager,
      cacheExtent: cacheExtent,
      clipBehavior: clipBehavior,
    );
  }

  @override
  void updateRenderObject(
    BuildContext context,
    RenderTwoDimensionalGridViewport renderObject,
  ) {
    renderObject
      ..horizontalOffset = horizontalOffset
      ..horizontalAxisDirection = horizontalAxisDirection
      ..verticalOffset = verticalOffset
      ..verticalAxisDirection = verticalAxisDirection
      ..mainAxis = mainAxis
      ..delegate = delegate
      ..cacheExtent = cacheExtent
      ..clipBehavior = clipBehavior;
  }
}

class RenderTwoDimensionalGridViewport extends RenderTwoDimensionalViewport {
  RenderTwoDimensionalGridViewport({
    required super.horizontalOffset,
    required super.horizontalAxisDirection,
    required super.verticalOffset,
    required super.verticalAxisDirection,
    required TwoDimensionalChildBuilderDelegate delegate,
    required super.mainAxis,
    required super.childManager,
    super.cacheExtent = 10,
    super.clipBehavior = Clip.hardEdge,
  }) : super(delegate: delegate);

  @override
  void layoutChildSequence() {
    final double horizontalPixels = horizontalOffset.pixels;
    final double verticalPixels = verticalOffset.pixels;
    final double viewportWidth = viewportDimension.width + cacheExtent;
    final double viewportHeight = viewportDimension.height + cacheExtent;
    final TwoDimensionalChildBuilderDelegate builderDelegate =
        delegate as TwoDimensionalChildBuilderDelegate;

    final int maxRowIndex = builderDelegate.maxYIndex!;
    final int maxColumnIndex = builderDelegate.maxXIndex!;

    final int leadingColumn = math.max((horizontalPixels / 200).floor(), 0);
    final int leadingRow = math.max((verticalPixels / 200).floor(), 0);
    final int trailingColumn = math.min(
      ((horizontalPixels + viewportWidth) / 200).ceil(),
      maxColumnIndex,
    );
    final int trailingRow = math.min(
      ((verticalPixels + viewportHeight) / 200).ceil(),
      maxRowIndex,
    );

    double xLayoutOffset = (leadingColumn * 200) - horizontalOffset.pixels;
    for (int column = leadingColumn; column <= trailingColumn; column++) {
      double yLayoutOffset = (leadingRow * 200) - verticalOffset.pixels;
      for (int row = leadingRow; row <= trailingRow; row++) {
        final ChildVicinity vicinity =
            ChildVicinity(xIndex: column, yIndex: row);
        final RenderBox? child = buildOrObtainChildFor(vicinity);

        if (child != null) {
          child.layout(constraints.loosen());

          // Subclasses only need to set the normalized layout offset. The super
          // class adjusts for reversed axes.
          parentDataOf(child).layoutOffset =
              Offset(xLayoutOffset, yLayoutOffset);
        }

        yLayoutOffset += 200;
      }
      xLayoutOffset += 200;
    }

    // Set the min and max scroll extents for each axis.
    final double verticalExtent = 200 * (maxRowIndex + 1);
    verticalOffset.applyContentDimensions(
      0.0,
      clampDouble(
          verticalExtent - viewportDimension.height, 0.0, double.infinity),
    );
    final double horizontalExtent = 200 * (maxColumnIndex + 1);
    horizontalOffset.applyContentDimensions(
      0.0,
      clampDouble(
          horizontalExtent - viewportDimension.width, 0.0, double.infinity),
    );
    // Super class handles garbage collection too!
  }
}

flutter doctor -v
[!] Flutter (Channel stable, 3.16.5, on macOS 14.1.2 23B92 darwin-arm64, locale en-GB)
    • Flutter version 3.16.5 on channel stable at /Users/nexus/dev/sdks/flutter
    ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutters/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter. Consider adding /Users/nexus/dev/sdks/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutters/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter. Consider adding /Users/nexus/dev/sdks/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (3 weeks ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc1)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0-rc1
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode-15.0.0-Release.Candidate.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.14.3

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

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 76.3.4
    • Dart plugin version 232.10072.19

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

[✓] Connected device (4 available)
    • Nexus (mobile)       • 00008020-001875E83A38002E • ios            • iOS 17.2.1 21C66
    • Dean’s iPad (mobile) • 00008103-000825C811E3401E • ios            • iOS 17.2 21C62
    • macOS (desktop)      • macos                     • darwin-arm64   • macOS 14.1.2 23B92 darwin-arm64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 120.0.6099.199

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 3.18.0-19.0.pre.118, on macOS 14.1.2 23B92 darwin-arm64, locale en-GB)
    • Flutter version 3.18.0-19.0.pre.118 on channel master at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 29db9dbd44 (3 hours ago), 2024-01-08 23:24:31 -0500
    • Engine revision 820645dbcc
    • Dart version 3.4.0 (build 3.4.0-4.0.dev)
    • DevTools version 2.31.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc1)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0-rc1
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode-15.0.0-Release.Candidate.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.14.3

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

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 76.3.4
    • Dart plugin version 232.10072.19

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

[✓] Connected device (4 available)
    • Nexus (mobile)       • 00008020-001875E83A38002E • ios            • iOS 17.2.1 21C66
    • Dean’s iPad (mobile) • 00008103-000825C811E3401E • ios            • iOS 17.2 21C62
    • macOS (desktop)      • macos                     • darwin-arm64   • macOS 14.1.2 23B92 darwin-arm64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 120.0.6099.199

[✓] Network resources
    • All expected network resources are available.

• No issues found!

I think it's related to @Piinks department!

Doing some investigation, I found that the root of this issue is the way _moveChild implemented. _moveChild assigns the child in _children map from "old key" to "new key" causing the child occupying the "new key" being removed from _children, and therefore future calls to get that forgotten child's parentData will fail due to an assertion in parentDataOf. I think the assertion in parentDataOf is unnecessary and it can be changed to assert(child.parentData! is TwoDimensionalViewportParentData); instead. WDYT? @Piinks @danagbemava-nc
https://github.com/flutter/flutter/blob/5f17badf4118b474f0b97ee1afe0773ac92b1e4b/packages/flutter/lib/src/widgets/two_dimensional_viewport.dart#L1629-L1638
https://github.com/flutter/flutter/blob/5f17badf4118b474f0b97ee1afe0773ac92b1e4b/packages/flutter/lib/src/widgets/two_dimensional_viewport.dart#L782-L785

Thanks for looking into this. I think the assertion should stay but also maybe it should include those that are being kept alive, and those that are currently in the orphan list?
I wonder if this is something that would be fixed by https://github.com/flutter/flutter/issues/130754
One dimensional scrolling supports this with the findChildIndexCallback for when children have been reordered.

Thanks for looking into this. I think the assertion should stay but also maybe it should include those that are being kept alive, and those that are currently in the orphan list?
I wonder if this is something that would be fixed by #130754 One dimensional scrolling supports this with the findChildIndexCallback for when children have been reordered.

According to my tests 2D foundation is working fine for reordering and the only problem is with the assertion in parentDataOf which can be fixed by including checks for debug orphans and keepAlive bucket. I will open a PR in a few minutes. @Piinks


Unit tests and Integration tests for Documents | Bugfix: Gracefully handle empty data field in document element

Bugfix: Gracefully handle empty data field in document element


/vendor/autoload.php not found

Hi, I dowloaded Thruway-master.zip, I extracted it.
I uploaded all files to my server.
When I try to run the test files, bootstrap.php for instance, Thruway not work because it's trying to load a "/vendor/autoload.php" file that is not in the distribution package.
What should I do in this case?
Thanks.

@ParVisual please read https://github.com/voryx/Thruway#quick-start-with-composer
You want Composer everywhere on PHP today!
Maybe a better start for you could voryx/ThruwayBundle, but voryx/Thruway works standalone as well!

Ok, I got it!
I had no idea what it was "Composer". I installed it and I'll it again.
Thanks.


Installing neuralcoref throws RuntimeError: Running cythonize failed

pip install git+https://github.com/huggingface/neuralcoref.git throws
RuntimeError: Running cythonize failed
  Cythonizing sources

more details below
Including pip install cython before seems to fix it, is this the intended way to install?
My environment:
Python version: 3.7.5
Pip version: 21.3.1
uname: Darwin

Collecting git+https://github.com/huggingface/neuralcoref.git
  Cloning https://github.com/huggingface/neuralcoref.git to /private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo
  Running command git clone -q https://github.com/huggingface/neuralcoref.git /private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo
  Resolved https://github.com/huggingface/neuralcoref.git to commit 60338df6f9b0a44a6728b442193b7c66653b0731
    ERROR: Command errored out with exit status 1:
     command: /Users/nsorros/code/test/neural_coref/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/setup.py'"'"'; __file__='"'"'/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-pip-egg-info-uc1rbq7i
         cwd: /private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/
    Complete output (39 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'Cython'
    Processing neuralcoref.pyx
    Traceback (most recent call last):
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/bin/cythonize.py", line 59, in process_pyx
        ["cython"] + flags + ["-o", tofile, fromfile], env=os.environ
      File "/Users/nsorros/.pyenv/versions/3.7.9/lib/python3.7/subprocess.py", line 339, in call
        with Popen(*popenargs, **kwargs) as p:
      File "/Users/nsorros/.pyenv/versions/3.7.9/lib/python3.7/subprocess.py", line 800, in __init__
        restore_signals, start_new_session)
      File "/Users/nsorros/.pyenv/versions/3.7.9/lib/python3.7/subprocess.py", line 1551, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'cython': 'cython'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/bin/cythonize.py", line 168, in <module>
        run(args.root)
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/bin/cythonize.py", line 157, in run
        process(base, filename, db)
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/bin/cythonize.py", line 123, in process
        preserve_cwd(base, process_pyx, root + ".pyx", root + ".cpp")
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/bin/cythonize.py", line 86, in preserve_cwd
        func(*args)
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/bin/cythonize.py", line 77, in process_pyx
        raise Exception("Cython failed")
    Exception: Cython failed
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/setup.py", line 239, in <module>
        setup_package()
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/setup.py", line 174, in setup_package
        generate_cython(root, 'neuralcoref')
      File "/private/var/folders/f1/x6zj7pg94m3fv0klkqwtjhnm0000gn/T/pip-req-build-azgj9svo/setup.py", line 163, in generate_cython
        raise RuntimeError('Running cythonize failed')
    RuntimeError: Running cythonize failed
    Cythonizing sources
    ----------------------------------------
WARNING: Discarding git+https://github.com/huggingface/neuralcoref.git. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I'm on same problem in my mac m2


Fixed the docs image logo, that has bleedy edges (can be seen if you browse github on dark mode, like macos darkmode for example)

the bleedy edges of the logo are removed.

this is updated.


new package version

Can you publish new package version? Cause there was no version since this was added:
src/renderer.ts#L27
Thank you

We'll publish a new version of Rendertron and rendertron-middleware soon. It's going to be a major version change for rendertron-middleware, probably.

@AVGP any update on when a new version will be published? I believe there has been a ton of commits since the last release

The plan is to finalize all the PR merges and docs and release the next major version within this month.

3.0.0 just landed 🎉


Initialize key registry from a set of public/private keys

I was thinking about taking a file name instead, but it seems that it should be done at the higher level.
@andyleiserson lmk if that's what you expect

We will also need something to call this function on the key registry instance with the key pair from ServerConfig.hpke_config.

I pulled this commit into #692 and made some additional changes on top of it.

closed by #692


resource_controller handler should be allowed to return null

the type of the resource_controller_interface invoker is now Future?, but it should be Future<Response?>. The response handler should be allowed to return null.
In order to upgrade the request to websocket, the controller handler should return null, as stated by the documentation. With this change, websocket upgrade is working.

https://github.com/conduit-dart/conduit/pull/84

https://github.com/conduit-dart/conduit/pull/84


autocomplete medusa tags

Provides medusa-tags autocompletion in HTML pages.
Works in IntelliJ IDE.

I've been looking to do this for a long time, this is really cool


fix Usage

just fix Usage code to make it work.

Thanks!

@all-contributors please add @askender for doc


phpcs: init at 2.3.4

Added javaguirre to maintainers.

I guess it would be nice to have two commits here: One where you add yourself as maintainer, the second one with the package.

I had it like that before, but I didnt't know if that solution was the best
either.
On Oct 12, 2015 15:38, "Matthias Beyer"<EMAIL_ADDRESS>wrote:

I guess it would be nice to have two commits here: One where you add
yourself as maintainer, the second one with the package.
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/pull/10345#issuecomment-147402650.


feat(common): don't use nightly features

Check raw os error instead of checking unstable ErrorKind variants.
This commit is tested on windows and needs testing on different os.

https://github.com/rust-lang/rust/issues/86442
Maybe we should mark is_cross_device_error method as unsafe as it depends on some specific behavior of unsafe rust implementation?

rust-lang/rust#86442
Maybe we should mark is_cross_device_error method as unsafe as it depends on some specific behavior of unsafe rust implementation?

Haven’t read the tracking issue(will read it tomorrow).
io::Error::raw_os_error is a safe api in std, so I think is_cross_device_error is safe (though it may not work correctly).
BTW the error code is used internally by ErrorKind.


Feature/ignore environments

While I find this wonderful addition to Capistrano hilarious, I don't want my fellow devs feeling that something is wrong deploying to a stage server o a Friday.
By default this will ignore the :staging environment, but can be expanded to more custom environments if people wish.

Sure, i thought of this feature too!

I renamed :friday_ignore_env to :friday_ignored_stages to avoid confusing naming — capistrano deals with stages, not with envs.
Also i wrap fetch :friday_ignored_stages in array, so we can do just set :friday_ignored_stages, :staging if we want ignore just single stage.

Yep that makes perfect sense, cheers dude!


Completely changed subject and added some ASCII art

Added some content to your story. You are free to ask me to do any change you like before merging! Use this opportunity to experiment.
To complete this task you need to merge my contribution as explained in slides 95-101 keeping in mind that you are the release manager.

Hi, Floridop. Now, I converted my fairytale.md included ASCII art as a guideline, which is said to be added to ASCII art in my original.
And I'm going to merge the pull script.
From the above, does my process have any problem?

Hi Takumi, I wish I could answer you but I am having hard time understanding your choice of words.
I never asked you to convert anything so I wonder what do you mean by "converted"
A guideline is a set of instructions to do something, how can an ASCII art be a guideline?
Trying to interpret what you wrote, I think you mean you did something regarding my suggestion for changes in this pull request. I unfortunately don't understand what is it that you did from your words 😔
Then you said you're going to "merge the pull script". But there is no script. Maybe you meant "merge the pull request"?
As an outcome of this homework it is important that you learn the proper words to describe what you are doing with git. We can discuss this in person later today.
So right now I can only answer that I do not understand your process so I cannot help you here. Let's discuss in person and you show me what you did.
The only process required is the one described in the slides. If there are slides you do not understand please refer to those then it's easier for me to explain.

Hi, Floridop. Thank you for pointing out that my message lacked detail.
Here's a more concrete explanation of my question:
I modified the original fairytale.md file by adding ASCII art, and I pushed it to the alttale directory in GitHub. Now, I'm about to merge the pull request, but I'm feeling anxious about the process—especially whether it's correct to have modified the original fairytale.md.
Because of this anxiety, I don't want to merge the pull request until I'm sure everything is correct. Could you please provide guidance on whether it's okay to proceed?

Hi @Takumi0104
I think there is some misunderstanding on how the git flow we are using works. It's better if we meet and I explain you the whole git flow. Do not merge anything right now. Please read again slides 81, 84-86.
The objective of this exercise is for you to look at my modifications (by clicking on the Files Changed menu on top of this conversation ) and decide if you want to include them in your main .
This exercise has nothing to do with your alttale repository, it has to do with your main and my altstory .
You do not need to edit the files directly. You need to look at the differences on GitHub as shown in slides 95-101.
Regards
Florido

I'll close this part of the homework, but if there is something else you're
curious to try and I am available I'll be happy to test.


[MM-42636] fix disabled dot menu clicking

Summary
This PR fixes an issue where the shortcut additions in the post dot menu had disabled the ability to click the menu item with the mouse.
QA should verify that both the shortcut and clicking activate the desired response.
Ticket Link
Related Pull Requests
Screenshots
Release Note

@jwilander I've pulled this out of the other larger PR. If we can get this through dev review and QA, we could hit the daily release for tomorrow. @DHaussermann, thanks for checking in so soon to the PR :) Let me know if you find andy issues.

/release-note-none

Testing completed.

Issue B. for Jira ticker MM-42592 seems completely solved. The ... menu only open when I actually click it. This solves the confusing flakiness you would see when sliding the cursor down a set of posts
Things such as ... menu showing in an open state when you mouse over to a new pop-over then return are consistent with previous v6.5.0 Webapp
Regression tested cases where 2 post pop-overs are visible at once and edge cases where it's possible to draw a popover on top of an expanded menu. All are consistent with previous v6.5.0 Webapp
Tested in both states with and without the green "something is new" dot (which seemed to trigger the issue before this PR)
Tested in main and RHS threads
No "ghosting" observed where visual elements remain visible once all post options are closed out. (Not sure if the root cause was related)
Sanity checked ephemeral and system posts as a precaution no issues found.

@jfrerich  1 thing to look at here that is likely outside the scope of the Actions Changes. In the something is new box - The x and the Opt out of these tips link are non functional. When I click them I see 1 web request got off which returns a 200 response but, noting happens. (The Got It button works fine.) Is there any chance this is specific to the feature?

@DHaussermann, outside of the x and Opt out of these tips not working, does that pass for merging?

Correct @jfrerich
The issue is resolved and all other minor edge cases are pre-existing. Aside from the x and the link it fine to merge
LGTM!
I just left the approval off because I wasn't sure if that was in scope.

@DHaussermann, I created a ticker for the x and link issue
https://mattermost.atlassian.net/browse/MM-42769

If you approve, I'll merge this and move to the next issue.

/cherry-pick cloud

Cherry pick is scheduled.


Smooth dashboard refresh.

What does this PR do?
Refresh UI only if providers data change.
Motivation
Facilitate copy-paste.

Thx, this is really a cool fix. This copy & paste problem annoided me a lot of times.


feat: add codeql workflow

Resolves #107
Desciption
Files added

.github/workflows/codeql.yml

Checklist

[x] My code adheres to the established style guidelines of the project.
[x] I have included comments in areas that may be difficult to understand.
[x] My changes have not introduced any new warnings.
[x] I have conducted a self-review of my code.

To run this workflow you need to enable the following permission:

Go to your project repository settings
On left pane > Actions > General

Scroll down and Go to Workflow permissions > select "Read and write permissions"

Click save and its done.

Please review this PR.
Thanks

@Abhijit25Mishra can you review?

yes sure.

hey @harmeetsingh11 there is a PR template for this repo. please you that.
https://github.com/J0SAL/Decentralized-Expense-Tracker/blob/a71bf039e1f6e4b31ee8058662848d451e302a3c/.github/PULL_REQUEST_TEMPLATE.md

@J0SAL Review is done. Please do check the correctness of the workflow.

Thanks! @Abhijit25Mishra @harmeetsingh11


menu titles

On reflection, I don't think the menu words need to turn brown. But could we leave the white line, that works.

Done


Javascript VTL support - How to write a custom query for GraphQL and where to store it?

I can't seem to find a clean answer on how to create a custom query for my GraphQL schema so that I can re-use it in my clients.
In my case I want to abstract/wrap an existing query with a filter for ease so I don't have to keep remembering what the filter is, its a helper method is all, nothing fancy. Here it is so we have something to focus on/play with:
"""
Returns a collection of Areas that service the passed in postcode (similar to ZipCode for those in the US)
Note: it has to match exactly including case.
"""
query getAreaByPostcode($postcode: String!) {
  listAreas( filter: {
    postcodesCovered: {
      contains: $postcode
    }
  }) {
    items {
      id
      name
    }
  }
}

Seems there are differing views out there on how to do this but nothing offical that I can find:

@dabit3 mentions (back in Jan 2019 so this might be out of date) that you can just add a query right into your schema but when I try that I get errors and my schema won't compile (https://dev.to/dabit3/lambda-function-graphql-resolvers-11cd)
https://github.com/aws-amplify/amplify-cli/issues/2420 talks about adding queries to the ./src/graphql folder but I'm confused if this is only for TypeScript (with or without export const depending on which comments you read) or if I should have a custom-queries.graphql file instead?

I'd love someone to clear up the following queries so I can zero in on this:

Can you add queries directly to your schema, if so what is the exact syntax as I'm failing?
If instead I should be using separate files (as I suspect) then:
-- What are the rules on the location and naming of the file? Does it have to be called custom-queries.graphql or could it be whatever.graphql as long as its in the right place?
-- Do l write them in GraphQL markup and they get auto generated into TypeScript? If so when do they get generated?

I've been trying a number of different guesses at all the above but I can't get my query to appear in my GraphiQL UI at all. Would love to have an up to date definitive answer on this one as my mental model is hazy and incomplete :(

Is there a related "issue" around this. For the life of me I cannot get it to work, I don't suppose anyone has an example of how a custom query is added to the amplify codegen function?


(Arc-Saas):Update the feature when edit the plan

Description
Update the feature when edit the plan
Fixes #91
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Intermediate change (work in progress)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

[ ] Performed a self-review of my own code
[ ] npm test passes on your machine
[ ] New tests added or existing tests modified to cover all changes
[ ] Code conforms with the style guide
[ ] API Documentation in code was updated
[ ] Any dependent changes have been merged and published in downstream modules

Is this tested ? @Deepika516

Is this tested ? @Deepika516

Yes Mam tested


[Bug]be can't start

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
1.1.2
What's Wrong?
Sep 13 18:05:37 be01 kernel: traps: doris_be[15696] trap invalid opcode ip:20f0685 sp:7ffd6baf1160 error:0 in doris_be[400000+6fc1000]
Sep 13 18:05:38 be01 systemd-coredump[15698]: Process 15696 (doris_be) of user 0 dumped core.
                                          Stack trace of thread 15696:
                                          #0  0x00000000020f0685 _Z27check_required_instructionsv (doris_be)
                                          #1  0x000000000601751d __libc_csu_init (doris_be)
                                          #2  0x000014a504f5973e __libc_start_main (libc.so.6)
                                          #3  0x00000000020ee8aa _start (doris_be)

-- Subject: Process 15696 (doris_be) dumped core
What You Expected?
can started
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

kernel version?

centos 8 4.18.0-240.1.1.el8_3.x86_64

Can you add me on WeChat(jnsimba) and let's take a look?

Is there a solution to this problem


cannot install(non technical)

Collecting<EMAIL_ADDRESS>Cloning https://github.com/Cinnamon/kotaemon.git (to revision v0.3.6) to c:\users\micha\appdata\local\temp\pip-req-build-5dizcuak
ERROR: Error [WinError 2] 系統找不到指定的檔案。 while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

the installation package for non-tech users is quite out dated and the team are working on it. In the meantime, if you are comfortable with running git and python, please check out this guide #138

maybe too complex for me. can you notify me when the package is updated?

When i install using docker, i went into ollama and changed localhost to host.docker.internal, but still getting this error.
tenacity.RetryError: RetryError[<Future at 0x72a5443ba230 state=finished raised AuthenticationError>]

seems to be related to #143, can you try the fix proposed there ?

@zono50 can you try https://github.com/Cinnamon/kotaemon/issues/143#issuecomment-2316974363?


No way to define skin type

There is no way currently to define skin type (slim or normal) this leads to having inconsistencies within some skins, as not all skins have the type defined within their url. I would highly advise adding a method to do this, as most users that value consistency within their project will not be to pleased with miss matched skins.

Whether this is going implemented in the future or not, you can upload skin texture to MineSkin manually and select skin variant there. Once generated it'll return texture URL which then can be used when setting skin with /npc skin command.

Yeah lol, always defaults to normal size

@Kruseified We have been talking about this internally and it is planned to be added in the near future. Most likely through --variant flag in /npc skin command. No precise ETA though.


Update README.md

Seems to say the same as the text following it

Thanks for the suggestion, but it doesn't add anything substantive to the contnent.


Сonfiguration prometheus.exporter.process

What's wrong?
Good afternoon,
please tell me how to force  prometheus.exporter.process collect data about all processes on VM?
An analog of the setting in process_exporter:
cat > /etc/process-exporter.yml << EOF
process_names:
 - name: "{{.Comm}}"
 cmdline:
 - '.+'
EOF

Steps to reproduce
Run alloy and request data

System information
ALT SP Server 11100-01
Software version
alloy, version v1.4.2
Configuration
// Process metrics
prometheus.exporter.process "local" {
track_children = true
}
// Configure a prometheus.scrape component to collect process_exporter metrics.
prometheus.scrape "process" {
targets    = prometheus.exporter.process.local.targets
forward_to = [prometheus.remote_write.mimir.receiver]
}
Logs
No response

prometheus.exporter.process "all" {
procfs_path = "/proc"
track_children = true
track_threads = true
gather_smaps = true
recheck_on_scrape = true
matcher {
name = "{{.Comm}}"
cmdline = [".+"]
}
}

@Nachtfalkeaw  Friend, thank you so much!!!
It's a pity that all this is not in documentation...

Many of these components are based on standalone exporters and there is a chance to get some more information.
https://github.com/ncabatoff/process-exporter

@Nachtfalkeaw Of course, but if there https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.exporter.process/#example was your example from this issues, it would be much clearer....


wrong object name used in conf/zapi/cdot/9.8.0/snapshot.yaml

Describe the bug
Seems a new template was added, conf/zapi/cdot/9.8.0/snapshot.yaml. The query it uses is "snapshot-policy-get-iter". It names object as "snapshot". But the object should be snapshot-policy. This causes conflict with our custom template using query "snapshot-get-iter" which specified object as snapshot.
The error message is
{"level":"error","Poller":"flc1-sys-ash0-cloudsys","collector":"Zapi:Snapshot","stack":[{"func":"New","line":"35","source":"errors.go"},{"func":"(*AbstractCollector).Start.func1","line":"259","source":"collector.go"},{"func":"gopanic","line":"1038","source":"panic.go"},{"func":"goPanicIndex","line":"90","source":"panic.go"},{"func":"(*Node).SearchChildren.func1","line":"448","source":"node.go"},{"func":"(*Node).SearchChildren","line":"462","source":"node.go"},{"func":"(*Zapi).PollInstance","line":"260","source":"zapi.go"},{"func":"(*task).Run","line":"61","source":"schedule.go"},{"func":"(*AbstractCollector).Start","line":"300","source":"collector.go"},{"func":"goexit","line":"1581","source":"asm_amd64.s"}],"error":"goroutine panic => goroutine 625 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x65\ngoharvest2/cmd/poller/collector.(*AbstractCollector).Start.func1()\n\tgoharvest2/cmd/poller/collector/collector.go:259 +0x85\npanic({0x9a9e80, 0xc0010bb800})\n\truntime/panic.go:1038 +0x215\ngoharvest2/pkg/tree/node.(*Node).SearchChildren.func1(0xc000e3e090, {0xe73ff8, 0x0, 0x0})\n\tgoharvest2/pkg/tree/node/node.go:448 +0x485\ngoharvest2/pkg/tree/node.(*Node).SearchChildren(0x9cf880, {0xe73ff8, 0x0, 0x0})\n\tgoharvest2/pkg/tree/node/node.go:462 +0xd9\ngoharvest2/cmd/collectors/zapi/collector.(*Zapi).PollInstance(0xc0002a4820)\n\tgoharvest2/cmd/collectors/zapi/collector/zapi.go:260 +0x4e5\ngoharvest2/cmd/poller/schedule.(*task).Run(0xc00031b310)\n\tgoharvest2/cmd/poller/schedule/schedule.go:61 +0x4e\ngoharvest2/cmd/poller/collector.(*AbstractCollector).Start(0xc000236460, 0xc00058e630)\n\tgoharvest2/cmd/poller/collector/collector.go:300 +0x4d3\ncreated by main.(*Poller).Start\n\t./poller.go:398 +0x2e5\n","caller":"goharvest2/cmd/poller/collector/collector.go:259","time":"2022-02-16T12:47:12-08:00","message":"Collector panicked runtime error: index out of range [0] with length 0"}
Environment
Provide accurate information about the environment to help us reproduce the issue.

Harvest version: [harvest version 22.02.0-4 (commit 9484df6) (build date 2022-02-15T09:09:54-0500) linux/amd64]
Command line arguments used: [e.g. bin/harvest start --config=foo.yml --collectors Zapi]
OS: [RHEL 7.9]
Install method: [yum]
ONTAP Version: [9.8]
Other:

To Reproduce
Steps to reproduce the behavior:
Expected behavior
The template should be renamed to conf/zapi/cdot/9.8.0/snapshot-policy.yaml
name:                     SnapshotPolicy
query:                    snapshot-policy-get-iter
object:                   snapshot-policy
counters:
snapshot-policy-info:
- ^^vserver-name     =>  svm
- ^^policy           =>  snapshot_policy
- ^comment           =>  comment
- total-schedules    =>  total_schedules
export_options:
instance_keys:
- svm
- snapshot_policy
- comment
Actual behavior
Tell us what happens instead
Possible solution, workaround, fix
Remove snapshot.yaml from conf/zapi/default.yaml
Additional context
Add any other context about the problem here. Share logs, error output, etc.

@pilot7777 Could you share your custom snapshot template. We want to reproduce it to see if there are any other template merge issues in general.

@pilot7777 Could you share your custom snapshot template. We want to reproduce it to see if there are any other template merge issues in general.

Here is our custom snapshot template.
name:                     Snapshot
query:  		  snapshot-get-iter
object:                   snapshot
counters:
snapshot-info:
- access-time 		=> creation_time
- ^^vserver			=> svm
- ^^volume
- ^^name			=> snapshot
export_options:
include_all_labels: true

Thanks. We are able to reproduce it and will take a look.


had getter in wrong event to invalidte the trade history getter cache

https://github.com/AugurProject/augur/issues/8327
Had getter name in wrong event section to invalidate getter cache.

@Mergifyio backport dev


fix(cli): Trace core cargo operations

What does this PR try to resolve?
This is preparation for #13399 and covers hot spots I found as well as areas currently covered by profile::start(...).
This is split out to avoid conflicts while working through the remaining issues for #13399.
Maybe it will also serve to help debugging...
How should we test and review this PR?
Additional information
$ rg profile::start src/
src/cargo/ops/cargo_compile/mod.rs:    let _p = profile::start("compiling");
src/cargo/ops/resolve.rs:        let _p = profile::start("resolving with overrides...");
src/cargo/util/rustc.rs:        let _p = profile::start("Rustc::new");
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start("cleaning global cache files");
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start("global cache db sync");
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start(format!(
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start(format!("update db for removed {table_name}"));
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start(format!(
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start("populate untracked crate");
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start(format!("populate untracked {table_name}"));
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start(format!("update NULL sizes {table_name}"));
src/cargo/core/global_cache_tracker.rs:        let _p = crate::util::profile::start("saving last-use data");
src/cargo/core/resolver/features.rs:        let _p = profile::start("resolve features");
src/cargo/core/resolver/mod.rs:    let _p = profile::start("resolving");
src/cargo/core/compiler/fingerprint/mod.rs:    let _p = profile::start(format!(
src/cargo/core/compiler/mod.rs:    let p = profile::start(format!("preparing: {}/{}", unit.pkg, unit.target.name()));
src/cargo/core/compiler/build_runner/mod.rs:        let _p = profile::start("preparing layout");
src/cargo/core/compiler/custom_build.rs:    let _p = profile::start(format!(
src/cargo/core/compiler/job_queue/mod.rs:        let _p = profile::start("executing the job graph");

This is preparation for #13337 and covers hot spots I found as well as areas currently covered by profile::start(...).

You meant #13399?

Bah, too many tabs open

@bors r+
Thanks!

:pushpin: Commit df18c538e626ff045f34504aa85f77c2e2e7ced6 has been approved by weihanglo
It is now in the queue for this repository.

:hourglass: Testing commit df18c538e626ff045f34504aa85f77c2e2e7ced6 with merge a0cad1e948e98078131ba94e8c1e11d59f4b2105...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing a0cad1e948e98078131ba94e8c1e11d59f4b2105 to master...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing a0cad1e948e98078131ba94e8c1e11d59f4b2105 to master...

:eyes: Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.


Add Toprate school

https://lms.toprate.edu.vn/

@YaangVu Regrettably, this request has signs of fraud. I have to close it without merging.
Please apply for free educational license with an official document which proves that you are a student. You can do it using "OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students.


show stderr output on failed command

this would have made debugging docs.rs much easier

I'm not sure this is something we want to do: while for simple commands this is fine, when a build fails all the output would be duplicated, with a huge error message. I'd prefer for downstream users to avoid hiding the output when the command might fail.

What if we only printed the error if log_output is set to false? That wouldn't require any upstream changes and would also avoid duplicate output.

Do you happen to remember which log_output(false) made debugging worse for you? It's supposed to be used only when the output is not relevant at all.

I think it might have been https://github.com/rust-lang/docs.rs/blob/master/src/docbuilder/rustwide_builder.rs#L118 and rustup was complaining about a toolchain that wasn't installed? Don't quote me on that.
I still this Rustwide is the right place to fix this so upstream doesn't have to guess which commands could ever fail.

This solution is not consistent though. The output is collected only when run_capture is called, so the error message is not shown most of the times. If we fix that by always storing the output then we get into problems when a program outputs a bunch of stuff and we waste memory.
I don't think it's worth implementing it into rustwide.


does have jar for eclipse?

you can download from : https://repo1.maven.org/maven2/com/ashokvarma/android/bottom-navigation-bar/1.3.0/bottom-navigation-bar-1.3.0.aar


add linting using eslint consuming the rackt config

while the style will probably change as more repos are updated (hence the overrides for this repo), this PR introduces eslint and uses the rackt eslint config). I didn't want this to change any code, so rules that did not pass were overridden/disabled to just enforce the style that already exists.
Here is the repo for the base config being enforced: https://github.com/rackt/eslint-config-rackt
The original discussion around a centralized eslint config can be found here: https://github.com/rackt/history/pull/112

@CMTegner I rebased this branch off master and resolved the conflicts (not sure why GH is showing that we cannot merge but I can take a look later).
 That seemed like it would not be the case, but I didn't read the rules yet or the rackt plugin that it extends to see if there actually was validation errors and they weren't caught, or if things were working as intended.

@sprjr I couldn't get it to work with babel-eslint@4, but bumping it to v6 worked. I also upgraded eslint to v2, since I felt it was a shame to start a version behind the current stable release. Toggling rules in .eslintrc now produces lots of errors. I'll create a ticket where we can track progress towards removing our local overrides.
Just merge this if you think it looks fine.

Oh, and we should probably lint as a part of build, and set up travis to do it for us.

@CMTegner I was just thinking about a Travis config for this last night when I rebased! I'll open an issue for that as well. I put this in the 1.1.0 milestone for now, as I was going to look at #111 first so we can get the next patch release moving soon.


docs: update Pub/Sub publisher docstring example

Fixes #3920
Missed the docstring in a previous PR #4120 that addressed the same issue.

@chingor13 Do you know why the test kept failing?

It looks like a flakey spanner JDBC test. @kolea2, @olavloite might know more.

Sorry about that, we're tracking #6075 to fix this. I've rerun the build.


[FIX] Datamanager in memory

Due to the high memory consumption causing crashes for some of the datasets, this PR aims to solve this issue partly. It is based on @franchuterivera's suggestions detailed in https://github.com/automl/Auto-PyTorch/issues/180. Specifically in this PR, datamanager instance created in abstract_evaluator.py is being deleted after its use and the unnecessary loading of datamanager is addressed in smbo.py
Types of changes

[x] New feature (non-breaking change which adds functionality)

Note that a Pull Request should only contain one of refactoring, new features or documentation changes.
Please separate these changes and send us individual PRs for each.
For more information on how to create a good pull request, please refer to The anatomy of a perfect pull request.
Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your core changes, as applicable?
[ ] Have you successfully ran tests with your changes locally?

Description

AbstractEvaluator was keeping a datamanager instance when there is no use of it to be in the memory. Similarly, in SMBO, the datamanager was loaded even though there is no use for it. This PR reduces the memory usage of autoPyTorch by deleting reference to this instance in AbstractEvaluator and not loading the datamanager in SMBO.
Motivation and Context

This aims to resolve issue #180.
How has this been tested?

The benchmark result on CoverType dataset.

The result looks good to me, so I will check the PR.

I think we can merge this PR once you fix the flake8 error.


Drop-down DataWindow Search Service bug when Edit Style is DDLB

The DDDW search service does not work at all when the edit style of the column is Drop-Down List Box (DDLB).
There are two lines in the pfc_ItemFocusChanged event script in object pfc_n_cst_dwsrv_dropdownsearch in the pfcdwsrv PowerBuilder Library that contain an error:
Line 103: Currently reads: "li_ddlb_index = 0" but should instead be "li_ddlb_index = 1", because the the DO-LOOP UNTIL loop that immediately follows will always exit on the first iteration since idw_requestor.GetValue(ks_dwcolname, li_ddlb_index) returns an empty string whenever the column number argument value (li_ddlb_index) is out of range.
Line 123: "Loop Until lb_matchfound Or li_ddlb_index = li_numtabs" should instead be "Loop Until lb_matchfound Or li_ddlb_index > li_numtabs", because the initial value of li_ddlb_index should be 1, not 0.

If you know the fix then:

Create a branch of the project.
Make the change in your branch.
Issue a push request to send the change back to this project.

Thanks for the info on the proper process to follow, Bruce! I'm a GitHub rookie.
The issue has been addressed by kberghall in a better way, so I am closing this issue with no changes to the code.


Generate FILETYPES with AWK

Hi,
I think AWK is better suited than the shell for extracting FILETYPES from filetypes.conf.
I only used features defined by POSIX AWK.
Thanks for all your work :slightly_smiling_face:

I wanted to test the change on OpenBSD.
As I don't have hardware available for that (nor much knowledge about BSD), I adapted the Travis CI configuration to run it on Sourcehut, and tested this commit with

:heavy_check_mark: Ubuntu 19.04
:negative_squared_cross_mark: OpenBSD 6.6

OpenBSD make complains that
Using $< in a non-suffix rule context is a GNUmake idiom (Makefile:80)

I'll submit a new patch to fix this issue.


Some files could not be processed

win10, mocha versions:
Line 260: +--<EMAIL_ADDRESS>Line 277: +--<EMAIL_ADDRESS>Line 285: | +--<EMAIL_ADDRESS>deduped
Line 289: +--<EMAIL_ADDRESS>Line 347: `--<EMAIL_ADDRESS>command:
npx mochawesome-report-generator mochawesome.json

attached the json file.
mochawesome.json.zip

I was able to copy the contents of your JSON file into a new file and then it worked. Not sure what the issue is.

I am having the same issue.. Locally I get the same error as described above, when running from CI it generates an empty html report..

i have the same issue, the problem is the encoding file.
i change the coding file from UCS-2 BE BOM to UTF-8 with notepad++ in "encoding option"
and try again

yeah having same issue :( using v 3.1.5 and even tested with latest version still getting same issue
But after changing the encoding to UTF-8 its working.
@acenturion  now question is how we can change this encoding automatically ?

adamgruber  I'm facing the below issue:

Name and Versions used in package.json:-
"mochawesome": "^7.1.3",
"mochawesome-merge": "^4.2.2",
"mochawesome-report-generator": "^6.2.0"
Configuration in cypress.config.js:-
module.exports = defineConfig({
reporter: "mochawesome",
reporterOptions: {
reportDir: "cypress/results",
overwrite: false,
html: false,
json: true,
},
Commands used in sequence:

npm install --save-dev mochawesome mochawesome-merge mochawesome-report-generator

cypress run --reporter mochawesome
--reporter-options reportDir="cypress/results",overwrite=false,html=false,json=true

npx mochawesome-merge "cypress/results/*.json" > mochawesome.json

npx marge mochawesome.json
Please note that I've tried the workaround too for taking "mochawesome.json" and converting it into UTF- 8 but to no relief
Please suggest.


Add position field

Codecov Report
Base: 72.18% // Head: 72.40% // Increases project coverage by +0.22% :tada:

Coverage data is based on head (ff78972) compared to base (7e06c3d).
Patch coverage: 82.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #54      +/-   ##
============================================
+ Coverage     72.18%   72.40%   +0.22%
- Complexity      399      409      +10
============================================
  Files            70       71       +1
  Lines          1233     1272      +39
  Branches        125      132       +7
============================================
+ Hits            890      921      +31
- Misses          311      314       +3
- Partials         32       37       +5

Impacted Files
Coverage Δ

.../java/seedu/address/logic/commands/AddCommand.java
100.00% <ø> (ø)

...address/model/internship/UniqueInternshipList.java
92.68% <ø> (ø)

...l/tag/exceptions/DuplicateInternshipException.java
100.00% <ø> (ø)

...el/tag/exceptions/InternshipNotFoundException.java
100.00% <ø> (ø)

.../java/seedu/address/model/util/SampleDataUtil.java
20.00% <ø> (ø)

src/main/java/seedu/address/ui/InternshipCard.java
0.00% <0.00%> (ø)

...in/java/seedu/address/logic/parser/ParserUtil.java
92.68% <60.00%> (-4.54%)
:arrow_down:

.../java/seedu/address/model/internship/Position.java
70.00% <70.00%> (ø)

...ava/seedu/address/model/internship/Internship.java
95.74% <75.00%> (-1.88%)
:arrow_down:

...java/seedu/address/logic/commands/EditCommand.java
95.89% <87.50%> (-1.13%)
:arrow_down:

... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Some errors, don't merge yet


[libtorrent] add iconv feature on windows and clean up portfile

What does your PR fix?

Introduces the iconv feature on Windows. Also prevents Windows builds from accidentally picking up Iconv with CMake's built-in FindIconv, which causes builds of software that uses libtorrent to fail linking.
Drops the export.hpp customizations. They are not needed anymore. Tested with the method mentioned in https://github.com/microsoft/vcpkg/pull/7345#issuecomment-524478011 with all standard windows triplets, and on linux - no linking failures.
Fixes call to vcpkg_fixup_cmake_targets, now target directory uses actual package name (capitalization was wrong)
Adjusts some variable names and comments in the portfile

Which triplets are supported/not supported? Have you updated the CI baseline?
No change in triplet support.
Does your PR follow the maintainer guide?
Yes.

/azp run

@strega-nil Could you please review this PR?
Thanks.

Thanks @FranciscoPombal, this is awesome :D


Remove redundant nullability sign

INFO: The '?' is unnecessary because 'dynamic' is nullable without it.
Passes the static analysis with 100% and increases the overall score of the flutter package.

LGTM


Incorporate webpack into VSCode extension build

Reference sample here: https://github.com/Microsoft/vscode-extension-samples/tree/master/webpack-sample
Note this probably means extension launch times in debug mode are going to be much slower :(

Fixed with #1147


[WIP] Use PHP Humanizer instead of PHP Tidy

Close #5

PHP Humanizer is about to bump to 2.0, which will provide a PHP 7.0 solution.

Still waiting on what is discussed in #5, the Humanizr package is still not PHP 7 ready.


Rounding of seconds resulting in 60 breaks parse_time.  (...:59.9999999)

Rounding of fractional seconds breaks when it rounds to 60.
(Presumably true for other fractions)
isodate.parse('9999-12-31T<IP_ADDRESS>99999')   <- DateTime.Max from MS .NET
Example:
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
>>> import isodate
>>> isodate.parse_datetime('2021-11-12T13:48:59.9999999')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "python3.7/site-packages/isodate/isodatetime.py", line 56, in parse_datetime
    tmptime = parse_time(timestring)
  File "python3.7/site-packages/isodate/isotime.py", line 134, in parse_time
    tzinfo)
ValueError: second must be in 0..59

Verison:
$ pip show isodate
Name: isodate
Version: 0.6.0
<snip>

Somewhat less likely to be used, but same issue.
isodate.parse_datetime('2020-01-01T23:59.999999999')
isodate.parse_datetime('2020-01-01T23.999999999')

Results in ValueError: microsecond must be in 0..999999

Duplicate of https://github.com/gweis/isodate/issues/53?

Duplicate og #53.
Which seems to be closed?

#53 is open :)


[New Port Request] udpcap

Library name: udpcap
Library description: Npcap-based UDP socket emulation library for C++
Source repository URL: https://github.com/eclipse-ecal/udpcap

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now.


URLs to non-existing sub pages return a blank page and status code 200

Meaningless paths do not lead to a 404. For instance, https://vocol.iais.fraunhofer.de/sto/queryingasd leads to a blank website, while only https://vocol.iais.fraunhofer.de/sto/querying actually exists. This is a minor issue for sure, just wanted to let you know.

We are trying to restrict our site to the routes which we have. So other routes are not accepted. This is our concern right now.

This is related to the route path and since it is misspelled, it will show an error. Currently, we will not take any further step for this.

I think it would be good to show a message that this page doesn't exist.


Replace use of 'panic' in proof generation with Either

Instead of exceptions being thrown during proof generation, we report them as AssertionError values, using the Either type.

The exceptions that are thrown are arithmetic assertions inside the prover's part of the protocol that should never fail, i.e. if they fail, the protocol is badly implemented and it should crash.
The reason they are placed there is that they are hard to test from a test suite, as the input in those assertions is only known by the prover, but they are valuable for refactoring.

Yeah, if they are internal errors than the right thing to do is panic since it indicates some bug in the protocol implementation.


RFC: Add APQ support for Contentful (CMS)

Summary
Contentful GraphQL API started Automatic Persisted Query support recently, https://www.contentful.com/developers/changelog/#automatic-persisted-queries-support-in-the-graphql-api. However, their way to triggering re-fetch for missing persisted query is different from Apollo's implementation.
Contenful:
PERSISTED_QUERY_NOT_FOUND as error code https://www.contentful.com/developers/docs/references/graphql/#/reference/automatic-persisted-queries
Apollo:
{
  errors: [
    { message: 'PersistedQueryNotFound' }
  ]
}

https://www.apollographql.com/docs/react/api/link/persisted-queries/
Proposed Solution
const isPersistedMiss = (error: CombinedError): boolean =>
  error.graphQLErrors.some(
    x =>
      x.message === 'PersistedQueryNotFound' ||
      (typeof x.extensions === 'object' &&
        x.extensions !== null &&
        'contentful' in x.extensions &&
        (x.extensions as unknown as ContentfulExtensions).contentful.code ===
          'PERSISTED_QUERY_NOT_FOUND')
  );

Requirements
A better way is to propose a standardized way to utilize a set of Error Code that all vendors should be using as part of GraphQL Spec

I'm actually not sure it's appropriate for us to support this. To be honest, what stops any given GraphQL HTTP API to implement any response code or shape they want? Especially in this case, Contentful has decided to namespace the error code under a custom extension key, instead of following the defacto standard.
This is even more odd in my opinion based on their request input shape following the defacto spec.
Overall, most APIs currently follow the defacto spec, and until a spec is ratified and implemented by the GraphQL over HTTP spec extensions, I don't think there's a good argument to be made for implementing arbitrary spec divergences in the urql repo.
There's of course an argument to be made for these functions to be configurable: https://github.com/urql-graphql/urql/blob/0a763bb8229e0bf3f24aa30794f7f62b224750e4/exchanges/persisted/src/persistedExchange.ts#L25-L29
However, again, this hasn't happened because we for now have a defacto spec, and there's no point in diverging from it just sometimes.
So, for now, I can only offer you to please "fork" @urql/exchange-persisted, or rather vendor the exchange into your codebase with the necessary changes
Hope that makes sense to you. Happy to answer more questions about it, but I think for now let's put the PR on hold and I don't think there'll be much movement in urql re. APQ support unless a new spec arises for it in GraphQL over HTTP

Thanks @kitten for your comment. We also submitted support ticket for Contentful to take a look to align with popular GraphQL client out there, e.g Relay, ApolloClient. For now, we will use my own fork.
It would be nice that the error could be part of graphQL spec though.

https://www.contentful.com/developers/docs/references/graphql/#/reference/graphql-errors/graphql-errors-explained Contentful now uses PersistedQueryNotFound as well


Add url and path properties to network config

Add support for specifying an url entry with the full URL to the node. Also adds a new entry, path, that can be combined with host, protocol, and port, and makes port optional. Note that #1338 suggested accepting a path as part of the host, though this is not technically correct (hence the new path property).
Fixes #1338

With this change we can now use the CLI on public networks by connecting to Infura with no mnemonics (read-only) :confetti_ball:


Could you please clarify the license for the emoji assets?

Could you please clarify where you got the emoji assets from and their associated licensing information? Thank you.

Hmm, I wish I could, but it's hard to say where exactly I've got them from. I just googled somewhere on the Internet many years ago. Why? Do they belong to you?

Thank you for your response. They do not belong to me! I wanted to use your library for a project, but I can use only if the license allows me to use the assets (emojis). I think this might also be helpful to others who might want to use your library. Anyway, thank you for creating this nice library.


npm run export does not work

I followed the instructions in the README.md. When I tried executing $ npm run export, it fails
jhn-work% npm run export

><EMAIL_ADDRESS>export /Users/jhnferraris/Projects/Sides/best-resume-ever
> concurrently "npm run dev" "npm run pdf" --success first --kill-others --raw

><EMAIL_ADDRESS>dev /Users/jhnferraris/Projects/Sides/best-resume-ever
> node build/dev-server.js

><EMAIL_ADDRESS>pdf /Users/jhnferraris/Projects/Sides/best-resume-ever
> node node/app.js

/Users/jhnferraris/Projects/Sides/best-resume-ever/node/app.js:22
    .mergeMap(async() => {
                   ^
SyntaxError: Unexpected token (
    at Object.exports.runInThisContext (vm.js:78:16)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)
    at bootstrap_node.js:535:3

npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/Cellar/node/7.4.0/bin/node" "/usr/local/bin/npm" "run" "pdf"
npm ERR! node v7.4.0
npm ERR! npm  v4.0.5
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>pdf: `node node/app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>pdf script 'node node/app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the best-resume-ever package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node/app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs best-resume-ever
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls best-resume-ever
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jhnferraris/Projects/Sides/best-resume-ever/npm-debug.log

npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/Cellar/node/7.4.0/bin/node" "/usr/local/bin/npm" "run" "export"
npm ERR! node v7.4.0
npm ERR! npm  v4.0.5
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>export: `concurrently "npm run dev" "npm run pdf" --success first --kill-others --raw`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>export script 'concurrently "npm run dev" "npm run pdf" --success first --kill-others --raw'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the best-resume-ever package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     concurrently "npm run dev" "npm run pdf" --success first --kill-others --raw
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs best-resume-ever
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls best-resume-ever
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jhnferraris/Projects/Sides/best-resume-ever/npm-debug.log

Steps:

Run npm install.
Edit your personal data in src/person.js.
Preview resumes with npm run dev.
Export with npm run export.

Did you try installing the latest version?

@derickfelix I'm in the master branch. Which branch should I use?

Oh I'm sorry. You're referring to the node version.
I'm on 7.4.
What's the minimum version for this application, anyway?

I am not sure, but I am using the v8.4.0 and it's working normally

Thanks! It requires higher than 7.4. Version 8.4.0 fixed it.


Plugin is hardcoded to debug build type

At the moment plugin supports only debug build type

Hey, i also noticed that :)as soon as our bunch of flavours and buildtypes are supported im going to Start using it , so far good work keep it up

Fixed in 0.2.0 (see #5)


Plugin doesn't work?

I downloaded the plugin from the plugin hub, enabled it in Runelite, changed some settings to my liking, but it doesn't seem to do anything at all. I disabled the default NMZ plugin, disabled and enabled this one, but nothing appears on screen.
Is it broken?

It relies on chat logs to track when Nightmare Zone Starts, so If you enable it after it has started, I may have just disable session tracking or something. Thanks! Ill look into fixing it soon.


mysql57: reduce closure size

Description of changes
share/mysql/docs/INFO_BIN records build time deps like cc and thus greatly bloats the closure size, by nuking it's references, the closure size is reduced from 724.9M to 350.4M.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Makes sense, and reducing closure size is nice in general ❤

@ofborg eval


Error:  'varbinary(max)' which is not supported by 'PREDICT' function

I tried this sample, but I received this error:  Input data column #1 is of type 'varbinary(max)' which is not supported by 'PREDICT' function. Unsupported types are binary, varbinary, timestamp, datetime2, datetimeoffset, time, text, ntext, image, hierarchyid, xml, sql_variant and user-defined type.

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

ID: 79fcf17a-0a07-ad60-7989-a3ff85a4ccf6
Version Independent ID: 32b97356-ec95-da71-c787-7eaadb264810
Content: Score machine learning models with PREDICT - Azure Synapse Analytics
Content Source: articles/synapse-analytics/sql-data-warehouse/sql-data-warehouse-predict.md
Service: synapse-analytics
Sub-service: ****
GitHub Login: @anumjs
Microsoft Alias: anjangsh

Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .

Varbinary(max) is currently not supported for input data types as mentioned in the document. Can you please share you sample you tried so we can have a look? This concept doc doesn't provide a sample.

@eerik47 : As called out by @anumjs  Varbinary(max) is not supported at this time . The supported data types are mentioned here
https://docs.microsoft.com/en-us/azure/synapse-analytics/sql-data-warehouse/sql-data-warehouse-predict#training-the-model
as
The following data types are supported for the input data:
int, bigint, real, float
char, varchar, nvarchar
Since we have not heard back from you we are closing this issue now  , you can always re-open the issue if you think that appropriate .


Possible problem with encoding in a Aysnchronous progam when calling a task

Hi
I have a python program that reads data from Modbus devices in a local network. It uses python asynchronous tasks to read various meters.
I was writing and reading an object out to a binary file within various tasks, which was working fine, however I wanted to change to a JSON file.
In the main program I can jasonpickle.encode my object with no problem. However, when I pickle the same object in a task created with asyncio.create_task, rather than jasonpickle.encode just returning only the JSON representation of the single object I’m passing it (incuding the one I want), it returns every object that the task can access!
It will take me a little while to create an MRE, so first I would like to ask if you have come across this behavior before and might be able to guide me toward a fix.
Thanks
Mark
I have incuded an example of the JSON file from the main program with the single object and one from teh task with all the objects
MetSimStatusFile_MainProg.json
MetSimStatusFile_Task.json

Hey, I don't think I've noticed that before. I use jsonpickle inside a project that uses asyncio.ensure_future (iirc it's been removed in recent versions of Python) and jsonpickle works fine. It's interesting that this behavior is happening though, are you also using multiprocessing perchance? Also, what version of CPython and jsonpickle are you using?

Hi
Thanks very much for your comments and for jsonpickle.
I’m using jsonpickle-3.0.4 and Python 3.12.3, no multiprocessing.
I’ve just overcome the behaviour. I believe I was corrupting the object just prior to the call the asynchronous task. Now it is working perfectly!!
Sorry for wasting your time.
Best regards
Mark

I'm glad you fixed it!

Hi
Just wanted to add that, to successfully decode within the “asyinco” task, I had to add set  the 'classes' parameter within the jsonpickle.decode call, to stop conversions to a dictionary (I believe).
e.g.
myObjectFromFile = jsonpickle.decode(decodeString, classes = myObject)
Best Regards
Mark


modelAsString:true should not be a constant

This is a breaking change -- I'll have to update the version too.

This PR is superceded by #225 and #310 (both of the changes here were split into separate PRs).


It's stuck at first page

It's stuck at logo page in windows 10 1709 using latest electron version or chrome extension.
Expected Behavior
after a while app should open
Current Behavior
it's stuck in the logo page.

Steps to Reproduce (for bugs)

Install the windows app
Open the app

Context
I'm trying to open the app :)
same thing happened with chrome extensions.
Your Environment

Version used: 1.5.4
Environment name and application type (e.g. Chrome 39, chrome extension v1.4.7): Chrome 62 Chrome extension (I uninstalled it) and desktop version v1.5.4 (both windows files in release folder)
Operating System and version (e.g. Linux, v1.4.7): Windows 10 1709

Hello @ahmadalli, what errors do you see in the developer console in the chrome extension and the app?

Also did it work for you in an older version?

the developer window literally shows nothing (even the html) and there's no error. I can't even close it after I opened it. I'll try older versions

same here. firefox/chrome/desktop version has problem. looks like it cant download something from net, 'cause in other browser it works well using cache

I installed v1.4.7 and it worked fine then v1.5.3 worked fine and after that v1.5.4 worked fine too

@ahmadalli Okay. I've found the problem. It only affects new users. Pushing a fix soon.


Not seeing v1.1.0 showing up

I don't understand the full mechanics of how package control works, but it's been 13 days since v1.1.0 was released, but I still just see v1.0.6. I've updated my package control settings to have a small cache_length and http_cache_length, but I think that data is fetched from https://packagecontrol.io/channel_v3.json which still has the v1.0.6 version. This may not be an issue with LSP-gopls but starting here to see if the understanding is that v1.1.0 should be available (since it's been 13 days) or if there is a way to force the use of v1.1.0.
Thanks in advance.

I think it's because an upper-case V was used in the tag. I've re-relased with proper case now so should be working soon.

I think it's because an upper-case V was used in the tag. I've re-released with proper case now so should be working soon.

That's for the quick fix


make typesafe custom level loggers great again

pass in logger's generic based on value of customLevels and/or logger.customLevels option
TS does not like what I did here so I added a ts-expect-error to silence it but it does work as expected, this is covered in the tests
fixes #317 and supersedes https://github.com/pinojs/pino-http/pull/318 if merged
cc @UndefinedBehaviour @GeoffreyEmerson

Hey I think this would allow unknown properties e.g. stuff like const myShinyLogger = pinoHttp({ customLevels: { bark: 25 }, misspelledProperty: 'noot noot' }); which kind of defeats the purpose of typesafety as far as I can see.
What do you think? Am I missing something?

Hey I think this would allow unknown properties e.g. stuff like const myShinyLogger = pinoHttp({ customLevels: { bark: 25 }, misspelledProperty: 'noot noot' });. What do you think? Am I missing something?

good catch, thanks! will convert to draft until thats sorted out

superseded by #318


SVG file is not saved

Terms

[X] Before you openning this issue, i have checked if the issue has already been reported.

Bagisto Version(s) affected
2.2.2
Issue Description
When uploading a SVG file/image, we can see it in the field (example: product description as below) but when trying to save, it doesn't work (the file is not save on the disk)

Preconditions
Version tested: 2.2.2
Steps to reproduce

Upload a svg picture in the product description for example
Click on '.Save product'
See error: the file is not saved

Expected Result
When uploading a svg image, we should be able to save it and recover it in the product description (for example). It works fine on the Unopim application (the same framework as Bagisto)
Actual Result
The file is not saved actually
Screenshots

Additional context
No response

@helgvor-stoll
Thanks for your contribution in bagisto I appreaciate your efforts.
As per your concern, I have checked to reproduce the issue, and it does not appear in the stable branch version 2.2. I have recorded a video for your reference.
Please take a look at the recorded video

@amit-webkul Hi Amit, thank you for your feedback. I uploaded the last source code via git and it works fine. I think I used a bad version but now I work on the good one
Thank you a lot for your video.


Fix Expected hours for MaxBudget contributors from Doesn't apply to amount/rate #412

A new function was added to selectors.js named estimatedHours
This function has 2 props amount and hourlyRate and returns the division rounded of amount/hourlyRate.
In ContributorTile.js expectedHoursMaxBudget calls the function estimatedHours  to get the value and show it for the MaxBudget Contributors

closes #412


FindNearestPoly returns and invalid polygon reference

Hello! Me again! I think i'm close to finish implementing this on my server! So excited.
I'm having problems finding the nearest polygon to a point.
The point is (-113.73, -167.78, 240) and the navmesh data is this one Mundo.zip
I'm using this code:
var Query *detour.NavMeshQuery var Filter detour.QueryFilter var Polygon detour.PolyRef var ProjectedPoint d3.Vec3 var Status detour.Status Extent := d3.NewVec3XYZ(5,5,5) Point := d3.NewVec3XYZ(-113.73,-167.78,240) Status, Query = detour.NewNavMeshQuery(NavMesh, 1000) Filter = detour.NewStandardQueryFilter() Status, Polygon, ProjectedPoint = Query.FindNearestPoly(Point, Extent, Filter)
Then when I try NavMesh.IsValidPolyRef(Polygon) it always throws false.
I tried with different Extent values (like really big ones) and the result is always the same.
Any clues on what I might be doing wrong?
Thankss

You should test the status of each function call that return a status with detour.StatusFailed(st) (and friends).

Yess. That's exactly what I did. Here's a more detailed view from the code:

All status are OK, even FindNearestPoly returns success! But as the function description says, it might return success but the search box doesn't intersect any polygons apparently.
I tried a lot of different points and extents and still can't find a valid polygon.

Ok. I vaguely remember having experienced this years ago while I was writing tests. I honestly don't remember how I've solved it though. Try loading the navmesh used in tests, if that works and you can perform queries on it with your code, then the problem might come from the navmesh.

Yea it seems it's a problem with the navmesh export module! I'm looking into it. Thankss!

@pacarevolution just so you know, i've tagged a new release and fixed the problematic license file, so now you can browse the package documentation from https://pkg.go.dev/github.com/arl/go-detour. Cheers!


Fail to create new compendium

When trying to import new compendium to a game the module give this error :

When trying to import a sizeable compendium this error was given:

I can confirm this. I've created a scene compendium and exported it (without any error). After importing I get the same error:
common.js:439 undefined |  Error importing file Death House.fvttadv TypeError: Compendium.create is not a function
    at Function.getCompendiumPack (common.js:170)
    at adventure-import.js:499
    at async Function.asyncForEach (common.js:154)
    at async AdventureModuleImport._importCompendium (adventure-import.js:495)
    at async AdventureModuleImport._dialogButton (adventure-import.js:158) Error
    at Object.error (https://vtt.tuxdance.com/modules/adventure-import-export/src/common.js:439:53)
    at AdventureModuleImport._dialogButton (https://vtt.tuxdance.com/modules/adventure-import-export/src/adventure-import.js:463:24)

Have you found anything that can be done from a user's perspective work around this issue @ratanakkim ?

For futher information:
I was testing on D&D 5e with Foundry 0.8.9

Compendium.create is deprecated. An alternative is CompendiumCollection.createCompendium


HUE-904 [core] Front end testing integration to continuous integration

Adding 'make js-test' target
Adding target to 'test' and 'test slow'
Output JUnit reports in 'reports'
Dependencies: 'nodejs' package and 'jasmine-node' nodejs module

Thanks!
I forgot but did you put your name on the list of contributors already?
https://github.com/cloudera/hue/wiki/Ccla#online-form
We are going to test on our infra too.


dart:ffi fails to expose libtensorflowlite_c.dll on windows

I built two versions of libtensorflowlite_c.dll. One was using clang-on-windows and the other was using Microsoft's VS toolchain. I used depends.exe to inspect both and they each look to have the correct symbols defined

The clang-on-windows build:
DynamicLibrary.open('libtensorflowlite_c.dll') seems to work but then calling lookup on any symbol fails with Invalid argument(s): Failed to lookup symbol (127).
The Microsoft toolchain build:
DynamicLibrary.open('libtensorflowlite_c.dll') fails with Invalid argument(s): Failed to load dynamic library (126)
To reproduce you can do
git clone git@github.com:dart-lang/tflite_native.git
cd tflite_native
git checkout 712b8a93fbb4caf83ffed37f154da88c2a517a91  # clang-on-windows
pub get && pub run test
git checkout 7c9c2ca00f279c33e8d234c041d96eccd2590b76 # ms toolchain
pub run test

@lambdabaa I met the same problem, how did you solve it?
I want to use the libssh2.dll.
Initially, I copied the DLL from somewhere into my flutter project folder and used DynamicLibrary.open("libssh2.dll") to load it, but it failed. Later, I downloaded the source code from libssh2.org and generated a new DLL file in Visual Studio. This time, it could load but said Failed to lookup symbol (127).


Boj edits

Take a peek and see if there's anything you don't like about this. I think on Monday or Tuesday we should talk big picture. I think it's looking significantly better though.

Codecov Report

Merging #172 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #172   +/-   ##
=======================================
  Coverage   58.53%   58.53%
=======================================
  Files           6        6
  Lines         328      328
=======================================
  Hits          192      192
  Misses        136      136

Flag
Coverage Δ

#unittests
58.53% <ø> (ø)

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

Continue to review full report at Codecov.

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