build: repair build after apple/swift-tools-support-core#117

Remove Triple.swift as tools-support-core now has this defined.  This repairs the CMake based build.

@swift-ci please test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please test

I was planning to fix this in #2883, but ran out of time yesterday.

@swift-ci please smoke test

I think this is superseded by #2883 now.


[Android] domain name containing keywords like "is" should be written as 'is'.example.appName

When I create a standart android project with kotlin language if I enter a domain name containing keywords like is in the creation of project the package name is written as `is`.example.appName. But when I create a flutter project it is written as is.example.appName. which causes an error because of syntax of kotlin language.

Hi @Rza-Ismayil, Thanks for filing the issue. I can reproduce the issue the app fails to build when the package name is
Steps to Reproduce

flutter create myapp --org is.example.myapp
flutter run

logs
Launching lib/main.dart on Redmi K20 Pro in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
e: /Users/mahesh/Desktop/myapp/android/app/src/main/kotlin/is/example/myapp/myapp/MainActivity.kt: (1, 9): Package name must be a '.'-separated identifier list

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 14s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

flutter doctor -v
[✓] Flutter (Channel stable, 2.10.0, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.10.0 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5f105a6ca7 (6 days ago), 2022-02-01 14:15:42 -0800
    • Engine revision 776efd2034
    • Dart version 2.16.0
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

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

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (3 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:5555 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)        • macos            • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[✓] Flutter (Channel master, 2.11.0-0.0.pre.452, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.11.0-0.0.pre.452 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ba01ec8faa (32 hours ago), 2022-02-05 22:05:18 -0500
    • Engine revision<PHONE_NUMBER>
    • Dart version 2.17.0 (build 2.17.0-85.0.dev)
    • DevTools version 2.10.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

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

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

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

[✓] Connected device (3 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:5555 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)        • macos            • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome           • web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!


Local paths neither working down tree or from other drives

Consider the local file path /root/dev/index.html
I'm able to successfully link files such as CSS up the file tree such as /root/dev/css/main.css
However I'm unable to link any files down the file tree such as /root/root-folder-css.css or from any other physical/external drive using either forward or backward slashes.
Thank you.

If you're trying to preview a file that is outside of the current vscode workspace folder (or an upstream file from and out-of-workspace file's location), the server won't serve it because that would pose as a security threat. It would essentially be possible for the server to serve any file on your computer, which isn't ideal.


Add phoenix_view dependency

Since Phoenix >= 1.7 drops the Phoenix.View dependency, phx_live_storybook compilation fails with missing phoenix_view.

Thanks!


Support creating http2 stream frames with given streamId

Expected behavior
Create outbound http2 streams with given streamId
Actual behavior
Looks like there is no public api to create http2 stream frames with provided streamId
Steps to reproduce
Minimal yet complete reproducer code (or URL to code)
Netty version
4.1.44.Final
JVM version (e.g. java -version)
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)
OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing)
OS version (e.g. uname -a)
Linux maksym-desktop 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I tried add one locally with https://github.com/mostroverkhov/netty/commit/e164d723c2d401fd3555156f32f7013b0576ac36, but then there is Stream object required for identifier: 3 on https://github.com/netty/netty/blob/bc026ef8ba70ab4f1be20ee4a768f16d834a4382/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java#L595, happening because https://github.com/netty/netty/blob/bc026ef8ba70ab4f1be20ee4a768f16d834a4382/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java#L461 not called as map is populated with respective key only if stream headers frame id is invalid. Could workaround with https://github.com/mostroverkhov/netty/commit/28555a38d53d56043413880b20efc5a0c738597b - may be there is an easier way?

@mostroverkhov why you want to supply your own stream id ? Is this for push promise ?

@normanmaurer I use http2 streams to carry another protocol frames which have their own ids

At least can this line https://github.com/netty/netty/blob/bc026ef8ba70ab4f1be20ee4a768f16d834a4382/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java#L677 access level  change from private to package-private so I can workaround outside of netty codebase (would make things more consistent as a bonus point)?

@mostroverkhov I need to think about this a bit... I am not really liking the idea of have people adjust the id this way as it is super easy to mess up etc.

@mostroverkhov I still don't get why you can't just use your own Http2FrameStream and provide a "valid" stream id. It should only cast in the case of it being not valid. Can you give some more details ?

@normanmaurer if I just use Http2FrameStream like
        Http2FrameStream stream = new Http2FrameStream() {
            @Override
            public int id() {
                return streamId;
            }

            @Override
            public Http2Stream.State state() {
                return Http2Stream.State.IDLE;
            }
        };

I get Stream object required for identifier: 3 on https://github.com/netty/netty/blob/bc026ef8ba70ab4f1be20ee4a768f16d834a4382/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameCodec.java#L595.  The same result is with DefaultHttp2FrameStream, reason is only one of Http2FrameStream and Http2Stream have said ID set (if I recall correctly - happened 3 weeks ago). The workaround is approximately as mentioned is 2nd message of this issue.

I dont know if http2codec is intended for people to send streams directly to It (still It looks odd not to), if so - most probably would prefer to just provide streamId alone.

I am not really liking the idea of have people adjust the id this way as it is super easy to mess up
I found It is not easy to mess as http2 codec is rather strict (out-of-order ids, frames for closed streams and so on)

I ended up doing things in codec expected way: create FrameStream with Http2ChannelDuplexHandler.newStream() and reuse It until stream completion. Instead of setting stream id explicitly I wait until It is set by codec and verify It has expected value.

@mostroverkhov @normanmaurer Hello does Netty support this now? I can't find a way to create http2 stream frames with given streamId


Use a lightweight docker image to replace fragile jq, shasum, etc, fixes #100, for #46

We've been very fragile with regard to requiring the user to install

base64
jq
perl
shasum

This switches to using a lightweight docker image to do those activities.

I dont know... jq is kind of a beast. 😄

It's just using jq in a lightweight container, so we don't have to worry about 1000 varieties of it.


operator [R] apicast-community-operator (0.1.0 0.1.1 0.2.1 0.2.2 0.3.0 0.3.1 0.4.0)

Signed-off-by: Eguzki Astiz Lezaun<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.
New Submissions

[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Updates to existing Operators

[x] Did you create a ci.yaml file according to the update instructions?
[x] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

@mvalarh @J0zi asking for support here.
Regarding the error in Operator test / PR-traffic-light (pull_request_target) : All the converted (from packagemanifets to bundle format) releases should be configured for olm.properties: '[{"type": "olm.maxOpenShiftVersion", "value": "4.8"}]'. So I do not get the label issue for OCP 4.9, 4.10 and 4.11
fatal: [localhost]: FAILED! => changed=false
  msg: '[''''][''Found label which is not supported.'', "[''apicast-community-operator:v0.1.0 => 4.9,4.10,4.11'', ''apicast-community-operator:v0.1.1 => 4.9,4.10,4.11'', ''apicast-community-operator:v0.2.1 => 4.9,4.10,4.11'', ''apicast-community-operator:v0.2.2 => 4.9,4.10,4.11'', ''apicast-community-operator:v0.3.0 => 4.9,4.10,4.11'', ''apicast-community-operator:v0.3.1 => 4.9,4.10,4.11'', ''apicast-community-operator:v0.4.0 => 4.9,4.10,4.11'']", '''']'

@eguzki you are missing com.redhat.openshift.versions: "v4.6-v4.8" line in annotations.yaml for every relevant operator.
This gives an instruction where you would like to release your opertor. OLM properties are related to upgrade for already released operator. In packegmanifest format there was no way to apply label, so we labeled it on the fly during backgroud conversion to bundle format.

@J0zi asking for support here.
I would not ask if I wouldn't have tried everything I can think of. :pray:
Regarding the error:
Field spec.preserveUnknownFields,  Value 0xc000bb85c8: spec.preserveUnknownFields: Invalid value: true:  cannot set to true, set x-preserve-unknown-fields to true in  spec.versions[*].schema instead

I think this is due to CRD apiextensions.k8s.io/v1beta1 version. I have run the validation tool (operator-sdk bundle validate $BUNDLE_PATH --select-optional name=community (operator-sdk v1.19.1) to other operators that I do not own with CRD apiextensions.k8s.io/v1beta1 and the tool also reports that very same error.
Any clue about how to fix that?
BTW, the new bundles (in coming PR's) for this and other operators we own have all CRD upgraded to apiextensions.k8s.io/v1

/test 4.7-deploy-operator-on-openshift

Waiting for response from @camilamacedo86

/merge possible

Heads up @J0zi @camilamacedo86 we are hitting same issue in

https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/1424
https://github.com/k8s-operatorhub/community-operators/pull/1476

related to https://github.com/operator-framework/operator-sdk/issues/5688

/test 4.6-deploy-operator-on-openshift

/test 4.6-deploy-operator-on-openshift

/test 4.7-deploy-operator-on-openshift

/test 4.8-deploy-operator-on-openshift

/test 4.6-deploy-operator-on-openshift

/merge possible

Not sure about what else needs to be done here. All checks passed.
Comparing to https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/1424, package-validated label is missing in this PR
any clue @J0zi ?


Names not applying

I just tried the latest 0.1.4 and it seems the "name" section isn't being transformed properly.
I think the simplest approach here to test this is by running wasm-tools print out.wasm -o out.wat and checking that the functions still have their correct names in that output. For the transformations we are doing in ComponentizeJS this is unfortunately still not the case.

Hi,
Can you provide me with a sample input and output .wasm, and the command you're running ComponentizeJS with so that I can hunt down the issue?

Looking into this further the issue might be in wasm-opt itself since the build output for StarlingMonkey under RelWithDebInfo isn't printing names either. Will reopen if I find the root of that, but for now moving to - https://github.com/bytecodealliance/StarlingMonkey/issues/173 for now.


Isn't #ref{...} a security risk?

Isn't #ref{...} (for example, #ref{jenni.firstName} as used here) a security risk?  What if it appears in untrusted data?
One workaround for this problem is to disable #ref{...} entirely by:

defining a class BaseModel that extends Model;
setting BaseModel.propRefRegex to a regex that cannot match any string.

I can't think of a way to exploit this, so I'm closing the issue.

You can only reference the items inside the same graph, which you should be able to control anyway since the same client sent the whole thing. You can, however, create very unsafe code with insertGraph and upsertGraph if you just blindly allow things like relate and $dbRef references. People can take ownership of items they are not supposed to if you don't check the references and ids. The solution is to use insertGraph and upsertGraph very carefully.

@phormio, I am also worried about this issued. I found out that you can change the keys used for referencing as a workaround: uidProp,  uidRefProp, dbRefProp and propRefRegex.
@koskimas, perhaps objection could use ES6 Symbols instead of strings. Then the use them as QueryBuilder.dbRef or import { dbRef } from 'objection'. It will improve security, since they cannot be faked by end clients.
Replacing propRefRegex is more difficult. Perhaps provide a way to disable referencing the properties of other models for text properties?

Example
class BaseModel extends Model {
  static get uidProp() { return Symbol(); }
  static get uidRefProp() { return Symbol(); }
  static get dbRefProp() { return Symbol(); }
  // Disable #ref{...} in property strings
  static get propRefProp() { return { exec: _str => null }; }
}


handle variable bindings in views

SD-1143 #done
Accept variable bindings in the connectionUri for a view mount. These are parsed out to a Variables map in ViewConfig (so they can be re-serialied later), and substituted into the view query when it is mounted. Unbound variables lead to errors 1) when a view mount is added through the API and 2) whenever a view query is evaluated through Backend's methods.
A few new bits and pieces:

Yet another error wrapper to embed CompilationError in EnvironmentError.
A convenience substVars() which doesn't need type annotations, since it's now being used in a third place.
Replace rewriteRelations() with rewriteRelationsM().

Current coverage is 81.45%

Merging #1017 into master will decrease coverage by -0.52% as of 12fd733

@@            master   #1017   diff @@
======================================
  Files          121     121
  Stmts         8434    8417    -17
  Branches       286     286
  Methods          0       0
======================================
- Hit           6914    6856    -58
  Partial          0       0
- Missed        1520    1561    +41

Review entire Coverage Diff as of 12fd733

Powered by Codecov. Updated on successful CI builds.

😱

@wemrysi: I believe I've addressed everything, unless you want me to figure out how to share that http4sVersion definition.

Huzzah, it built!

:+1: merge away

Don’t we need more tests for this? It dropped coverage by half a percent.

Thanks, @wemrysi.
@sellout: Actually, coverage is up by 0.05% since the preceding build on master, according to scoverage. If you can make sense of that codecov summary, please do explain it to me.
Squashing now.

Cool 👍🏾

thanks!!


Questions about modifications from the original SAM2

Hello, Thank you for sharing your awesome work!
While studying your code to understand the factors that impact model runtime,
I encountered a part that I couldn’t figure out, so I’d like to ask for your guidance.
I was investigating where the runtime improvements occurred by checking the time taken by each layer, comparing with the original SAM2 and its layers.
During this process, I discovered that the runtime differed by about 20 times starting from the patch embedding layer of the Hiera network, and now I’m at a loss as to which part I should investigate further.
Could you share what specific aspects you modified to achieve real-time performance when implementing this repo?
Thanks in advance.

Apologies for the late reply.
My focus was on implementing a fixed-length queue (about 7 items) to store image features and memory, along with some minor adjustments to the memory update strategy. The core network structure (including the image encoder, memory attention, etc.) remains the same, so inference time for those layers shouldn't be affected.
That said, there might be a slight overhead introduced by maintaining this limited-length queue compared to the original sam2.


Courses rough

Whats new?

Added untested endpoints for courses
Added comments for what needs to be done, and what line's i'm uncertain about

Whats next?

Work on get all paginated endpoint
Work on CSV file
Add enrolled classes data to user schema?

Resolved merge conflicts, adhered to mains current pattern for service functions


LFS-780: Forms and Subjects views should be consistent with the corresponding Dashboard boxes

Work in progress. Known issue: Displaying forms for a specific questionnaire ( ...content.html/Forms?questionnaire=<..>) no longer seems to work.

Filters should be transferred from the origin dashboard widget (only when clicking on "Expand" in that box, not when clicking on the side menu entry).
By "transfered" did you mean move the filter values?
The way it work now, the filters are shown on the Form page regardless of the way opening it and the Filter values never transfer.

The smaller row spacing on dashboard grids look so much better. The look of Subject and Forms pages would benefit from the same change.
The app name and version at the bottom of the side bar look a bit like an error. Would orange or turquoise colured fonts improve the look?
I believe we can turn off the paginationTop on the Forms page as well.

The smaller row spacing on dashboard grids look so much better. The look of Subject and Forms pages would benefit from the same change.
I believe we can turn off the paginationTop on the Forms page as well.

Done

The app name and version at the bottom of the side bar look a bit like an error. Would yellow or turquoise colored fonts improve the look? Or a line above it to separate it from the options?

To be done as a separate task/PR

Filters should be transferred from the origin dashboard widget (only when clicking on "Expand" in that box, not when clicking on the side menu entry).
By "transfered" did you mean move the filter values?
The way it work now, the filters are shown on the Form page regardless of the way opening it and the Filter values never transfer.

Yes, values should be transferred. This is not implemented in this PR.


Show proper error to user when conf.py is not found

I'm using BuildEnvironmentError for now, but we should use
ProjectConfigurationError once the PR got merged: https://github.com/rtfd/readthedocs.org/pull/3310
Closes #2963

I'll wait until #3310 is merged and this is rebased on there for review. Blocking for now -- or feel free to rebase there and we'll swap the PR base after merge of #3310.

I added a couple of tests for old behaviour and also to catch this PR behaviour. Besides, I added the exception message as a class attribute.
Please, re-review this PR when you have some time.
(the last commit is styling, so you can skip it from the logic review)

Link for logic commits: https://github.com/rtfd/readthedocs.org/pull/3326/files/f44ba0eb3714c7e607925c75d1eec9c65fbe4a35

This PR should be ready to merge.
The linting error is unrelated.
File "/home/travis/build/rtfd/readthedocs.org/.tox/lint/lib/python2.7/site-packages/pylint_django/plugin.py", line 22, in register

    start = name_checker.config.const_rgx.pattern[:-2]

AttributeError: 'NoneType' object has no attribute 'pattern'

I didn't find why it's failing yet.

The linting error on this PR is solved in #3408

I think this PR is read to merge. Can you review it again, please?


Avoid ever creating the WidgetInspectorService or registering

inspector service extensions outside of debug mode.

This fixes https://github.com/flutter/flutter/issues/21633

First step is probably to see if we can confirm it locally. It's pretty stark on the benchmarks.

I'm on it.

even more weirdly, complex_layout_semantics_perf initialSemanticsTreeCreation also regressed, unless i'm reading this wrong.

We got one frame back in range and then a few more bad frames. I'm sending out a CL to tweak the warmup period  to see if that makes the benchmark less noisy.

https://github.com/flutter/flutter/pull/21733
tries increasing the initial delay to 1 second to see if that reduces flakiness.


Installing latest version does not get correct podspec version 17

Describe the bug
The latest podspec file does not get installed for iOS correctly for me.
To Reproduce
Steps to reproduce the behavior:

npm i --save @capacitor-community/facebook-login
Look at node_modules/@capacitor-community/facebook-login/
it shows

s.dependency 'FBSDKCoreKit', '16.1.3'
s.dependency 'FBSDKLoginKit', '16.1.3'

even though the current file in the repo is using version 17.0.
I am using Ionic 7, Angular 17, node v 18.
Clean Build Folder, uninstall and reinstall, nothing seems to change the outcome.
What might I be doing wrong, or does this need to be packaged somehow before it can be used?
Thank you for any assistance.
Expected behavior
Installed file should match the repo.

The new 6.0 release (https://github.com/capacitor-community/facebook-login/issues/149) seems to have fixed this. Closing this.


Sage scripts params

Added two Sagemath scripts:

check_field_parameters.sage, inserted in algebra/src/fields, checks the consistency of the prime fields parameters. They have already been reviewed by Ulrich before being added in ginger-lib;
check_curve_parameters.sage, inserted in algebra/src/curve, checks the consistency of the short Weierstrass curves over prime fields parameters.

This seems to be pretty big PR. Is it intended for HorizenOfficial's own PR or?

@DDT92 we would love to add these to curves, so if you'd like you can make a PR there =)


Organize unit tests

I think that implementing structs in each file is not good at the aspect of maintenance.
I will separate "test region" and "sample region".

It seems that I forgot making "AllowUnsafe" "true".


Incorrect Values on frequency conversion

Originally reported by @rstan-dev
Issue:
Conversions are incorrect
Replication:

Set a monthly income of 1000.
Set total field to yearly.
Value is 12009.24

It should be 12000

Issue caused by all calculations done as a weekly figure, causing issues with month conversions because months aren't perfectly divisible by weeks.
Solution proposed by @rstan-dev :
Switch calculations to be done yearly then converted as a year can be perfectly divided by all frequencies.

Fixed in commit:
https://github.com/seanyoung247/hackathon-jan-2023/pull/31/commits/0e53e9c7f313c2d9d3e3414688be567471ce56ef


replace engine and framework mirror args with github username arg

Remove the --framework-mirror and --engine-mirror args and replace them with the --github-username arg which interpolates the username into the framework and engine mirror urls.

this is fine as long as you're willing to accept the constraint that it will only ever work with a project name that matches the name of the canonical upstreams.

@christopherfujino do you feel that this solution isn't generic enough?
I am looking at this from the perspective of the people currently using the release tooling, but I can absolutely see where this could be an issue down the line if we decide to make changes.

@christopherfujino do you feel that this solution isn't generic enough?
I am looking at this from the perspective of the people currently using the release tooling, but I can absolutely see where this could be an issue down the line if we decide to make changes.

As a power user, I've definitely used the conductor on secondary/tertiary forks. It doesn't happen often, though.

@christopherfujino do you feel that this solution isn't generic enough?
I am looking at this from the perspective of the people currently using the release tooling, but I can absolutely see where this could be an issue down the line if we decide to make changes.

As a power user, I've definitely used the conductor on secondary/tertiary forks. It doesn't happen often, though.

Thanks for pointing this out, I have not considered this use case.  Open for suggestions.

Generally, most of the dart format changes here are against the repo's style guide: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#formatting

Do you have a VSCode settings.json file I could use to avoid this in the future?  It would be nice if there was one available, there may be one already somewhere.

Generally, most of the dart format changes here are against the repo's style guide: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#formatting

Do you have a VSCode settings.json file I could use to avoid this in the future? It would be nice if there was one available, there may be one already somewhere.

It's trivial to globally disable autoformat on an editor level (https://linuxpip.org/vscode-format-on-save/#:~:text=Save not working-,Enable%2FDisable Format On Save,click on the right option.). I'm sure you could also do this on a language level for all Dart source files, but I'm not sure how to do it on a per-repo level (not sure if you submit patches to flutter/cocoon).

Generally, most of the dart format changes here are against the repo's style guide: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#formatting

It's trivial to globally disable autoformat on an editor level (https://linuxpip.org/vscode-format-on-save/#:~:text=Save not working-,Enable%2FDisable Format On Save,click on the right option.). I'm sure you could also do this on a language level for all Dart source files, but I'm not sure how to do it on a per-repo level (not sure if you submit patches to flutter/cocoon).

Will update after reading the style guide fully.


decorators - has a dependency on tslib that is not listed or installed

Hi there,
I've been using this plugin in a few projects, and never noticed it - mainly because tslib is usually always installed by another dependency.
However when I brought this plugin into a fresh repo with minimal dependencies , it does not compile without tslib

Okay I updated my node version and this seems to be working. Strange issue that only appears in node version 14x


Source Controller artifact status remains unchanged when spec changes

Testing my code that used a GitRepository custom resource and retrieves artifacts from the source controller I changed the GitRepository spec to a nonexistent branch. However the status.artifact did not change...
    "spec": {
        "interval": "1m0s",
        "ref": {
            "branch": "not-present"
        },
        "secretRef": {
            "name": "kraan-http"
        },
        "url": "https://github.com/fidelity/kraan.git"
    },
    "status": {
        "artifact": {
            "checksum": "5285096c6386caeaaedb8cffc6f85d8f2f44e2ae",
            "lastUpdateTime": "2020-11-10T12:27:03Z",
            "path": "gitrepository/gotk-system/addons-config/88c34877fa35ccd9534dfb9b901711ecece213c5.tar.gz",
            "revision": "gh-pages/88c34877fa35ccd9534dfb9b901711ecece213c5",
            "url": "http://source-controller.gotk-system/gitrepository/gotk-system/addons-config/88c34877fa35ccd9534dfb9b901711ecece213c5.tar.gz"
        },
        "conditions": [
            {
                "lastTransitionTime": "2020-11-10T12:32:03Z",
                "message": "unable to clone 'https://github.com/fidelity/kraan.git', error: couldn't find remote ref \"refs/heads/not-present\"",
                "reason": "GitOperationFailed",
                "status": "False",
                "type": "Ready"
            }
        ],
        "observedGeneration": 4
    }

Following the guidelines at https://toolkit.fluxcd.io/dev-guides/source-watcher/ I am watching for changes to GitRepositories and my watch function is being called but per the example it is only looking at status.artifact.revision and not detecting that the git fetch has failed.
Should the source-controller be clearing the artifact sub element when the spec changes or should my code be checking the condition? If latter the dev guide should be updated?

Should the source-controller be clearing the artifact sub element when the spec changes or should my code be checking the condition? If latter the dev guide should be updated?

When a git operation fails, source-controller emits an event that can trigger an alert and sets the Ready condition to false. The other controllers should keep doing their job and reconcile the last know state. If you want to bail out the reconciliation, you can check if the Ready condition is set to false and error out.


vue.runtime.esm.js:619 [Vue warn]: Error in callback for watcher "center.lng": "TypeError: Cannot read property 'centerAndZoom' of undefined"

Auto closed by issues bot. Please create your issue by issue generator.
当前问题由机器人自动关闭，请使用 ISSUE 生成器提交您的问题。


Patch Compute Library to pass correctly arguments to activation function

Fixes issue in Arm Compute Library when arguments are not passed correctly run activation function as post op after running GEMM through NEGEMMConv2D.

Hi @penpornk Can you please review this PR ? Thank you!


Authorization for Microsoft App ID f196f57b-5b97-4653-aaac-d98824071ed1 failed with status code Unauthorized {Bot Framework V 3.5.1}

Authorization for Microsoft App ID f196f57b-5b97-4653-aaac-d98824071ed1 failed with status code Unauthorized {Bot Framework V 3.5.1}
Updated bot builder sdk to V3.5.1 from V3.1.0
at Microsoft.Bot.Connector.JwtTokenRefresher.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Microsoft.Bot.Connector.Conversations.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Connector.ConversationsExtensions.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Synechron.MortgageBot.MessagesController.d__0.MoveNext() in C:\Users\Anand.Chitale\MortgageBot\Synechron.MortgageBot\Synechron.MortgageBot\Controllers\MessagesController.cs:line 54
Note : Works fine with version 3.1.0

Are you using the new Bot Framework Emulator?
https://docs.botframework.com/en-us/tools/bot-framework-emulator/

@willportnoy my bot throws this error only when it is published but never in the emulator

We usually recommend https://docs.botframework.com/en-us/support/troubleshooting-bot-framework-authentication/ for diagnosing authentication issues.  I'm not sure the upgrade of the SDK is related, though.  If you roll back, does that fix it?

Installing new bot ramework emulator and upgrading to V3.5.1 resolved the issue.Thanks

Same problem here after upgrading from 3.2.1 to 3.5.1
When I use ngrok on the server to create a 'tunnel' with ngrok http 80 the authorization issue is gone. But when I'm using the normal server domain, the autorization issue is back. I am testing this live in botframework.com console.
So:
Botframework.com -> ngrok -> Visual Studio Debug = OK
Botframework.com -> ngrok -> iis server = OK
Botframework.com -> iis server = Unauthorized
Looks like the requests must come from localhost in the new SDK version????
I was also deploying the bot as a web app in azure, but same errors. It used to work fine with 3.2.1
I've spent over 4 hours today to get this to work, but no luck at all.

We found a solution for our network on this problem @willportnoy @AnandChitale  @fercom .
Came across an old post on serverfault.com http://serverfault.com/questions/416156/isa-or-iis-removing-http-authorization-header-when-published . In our case it was the TMG server which had Authorization Delegation turned off.
I guess Microsoft started to send requests with an authorization header instead of authorization in the post body since yesterday.
When Authorization Delegation is turned off, the TMG server drops the authorization header.

@arnoldpistorius so, what should we do to correct it?

Nothing, it is just a local network configuration issue. Perhaps you can
put it in the FAQ.
Op 2 feb. 2017 18:09 schreef "fercom"<EMAIL_ADDRESS>
@arnoldpistorius https://github.com/arnoldpistorius so, what should we
do to correct it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BotBuilder/issues/2155#issuecomment-277018850,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFyny1tNF1r7ceSUNYmpIIqbMIB3onsHks5rYg2tgaJpZM4LzmOX
.

@dandriscoll: fyi, @arnoldpistorius found a solution to their 403 issue: https://github.com/Microsoft/BotBuilder/issues/2155#issuecomment-276964664

@willportnoy but @arnoldpistorius says I cannot do anything to solve it

@ferom if you have that same issue, you can fix the configuration of your local network's TMG server.

I'm going to close this issue for now, but feel free to open a new issue for further discussion.

Please, stop closing bugs without resolving! You do it not for resolved bug statistics
I walking here for many linked bugs and they all closed, but issues is present.
V3.5.5

This issue was not a bug, but a local firewall/gateway configuration problem. If you are using TMG in your network, you have to allow authorization delegation in order to make the authorization header work.


Deploying to a shared hosting environment.

I deployed to an ASPHostPortal shared hosting server and I see in the logs the following error:
            "Ensure that Node.js is installed and can be found in one of the PATH directories."

I was with the impression that in Production NodeServices would use node in-process somehow without requiring node.js in the server.
Do I require a hosting plan  which includes node.js to be able to run the starter with the pre-render feature? Am I supposed to deploy the node.exe along with the application .EXE somewhere? (obviously in my dev environment everything runs OK).
---Note that ASPHostPortal required me compiling the application as an .EXE with the following entries in the .csproj. Not sure if I'm missing something as part of the publishing steps.
            <PreserveCompilationContext>true</PreserveCompilationContext>
             <OutputType>Exe</OutputType>

(deploying to my local IIS do work)

I got the answer to my question: https://github.com/aspnet/JavaScriptServices/issues/1351.


Can not export c# interface to lua.

I find tolua can to export the interface to lua code, I hope tolua can support it.

add a marco EXPORT_INTERFACE in <IP_ADDRESS>7.  when you defined this, you can export interface


CentOS 64-bit option?

Operating System: Windows 10
Vagrant Version: 1.9.2
Virtual Box Version: 5.1.14
I have a package that requires a 64-bit version of CentOS. I searched and found that some people had an option to change the OS to a 64-bit version before provisioning. Is this possible?
The link I had the described this process can be found here: https://firegoby.jp/archives/5542 (note that it is in Chinese, but I was able to translate it with Google).
Thanks!

Sorry, we don't have enough time to develop it.
Thanks!

Will you consider leaving the issue open and mark it as "help wanted" ?  I think this is a feature many WordPress developers would be interested in, and the community would probably submit a PR after some time and deliberation.

Sounds good. 😄

Luckily, gcc man page directed me to the ‘-m32’ and ‘-m64’ options. These options generate code for 32-bit or 64-bit environments, respectively.
The 32-bit environment sets int, long and pointer to 32 bits and generates code that runs on any i386 system.
The 64-bit environment sets int to 32 bits and long and pointer to 64 bits and generates code for AMD’s x86-64 architecture.
You can pass -m64 or -m32 options as follows to Gnu gcc
For 32 bit version:
$ gcc -m32 -o output32 hello.c
For 64 bit version :
$ gcc -m64 -o output64 hello.c
Run it as follows:
$ ./output32
Output:
Long int size is 4 bytes long!
Now let us see 64 bit output:
$ ./output64
Long int size is 8 bytes long!


docs: Add link to discord and add info about types configuration

Removing link to CMTY as nobody replies there (I just did a bit but I don't think I'll able to keep monitoring it).

Thanks!


Downstream servers, do not recieve files added frm WPP.

Hi.
On main WSUS server everything works great. But when publishing update, on downstream server the update file is missing (Folder in WPP GUI is in red color) and no file is present in WSUSContent\XX\ directory on downstream server (just empty folder)
Should I some how manually sync downstream servers, or there is some issue with WSUS server that it is not syncing all WSUSContent dir?
Or what ports must be opened between server and downstream servers. Did not find any in wiki.
Nothing useful in logs, don't have any clue where to search further.

Can you check that the downstream server trusts the code signing certificate used by the upstream server?


Angular 8 Ivy issue

When i compile project i get error: ERROR in Value at position 1 in the NgModule.imports of ReactiveComponentLoaderModule is not a reference: [object Object] when  Compiling @wishtack/reactive-component-loader : main as umd

I have the same issue


linkifiers: Joint Validation

Addresses #12323.
Testing Plan:
Modifies automated tests, manual testing.

Apart from the rebase to resolve merge conflicts, does this PR need any further changes?
I'm willing to pitch in and help out, since I'd like to see the bug fix, but I'm not sure from the final comments what work remains.

@jamesvl the code is ready but we have some discussions left to do. I expect this will make it into the next release.

Just following up again @aero31aero - looks like the merge conflict is just a deleted file. Let me know if I can help in any way to get this rebased and backed for consideration in a release.

@aero31aero can you investigate the Puppeteer frontend test failure?  It's in the settings UI for this feature.

As discussed in https://github.com/zulip/zulip/issues/12323, this issue was finally resolved through other PRs. Thanks @aero31aero!


Puppeteer breaks when trying to use 'firebase deploy'

Steps to reproduce
Tell us about your environment:

Puppeteer version: 4.0.0
Platform / OS version: Windows
URLs (if applicable):
Node.js version: 8

What steps will reproduce the problem?
Please include code that reproduces the issue.

This is all my Puppeteer code

const url = req.body.url;
  const browser = await puppet.launch();
  const page = await browser.newPage();
  await page.goto(url, { waitUntil: 'networkidle2' });

  let data = await page.evaluate(() => {
    let title = document.querySelector('h1.headline.heading-content').textContent;

    let ingredients = [];
    document.querySelectorAll('.ingredients-item-name').forEach(i => {
      ingredients.push(i.textContent);
    });

    let instructions = [];
    document.querySelectorAll('div.section-body > div.paragraph > p').forEach(i => {
      instructions.push(i.textContent);
    });

    const image = document.querySelector('div.image-container >  div').attributes[1].textContent;
    return {
      title,
      ingredients,
      instructions,
      image
    };
  });
  await browser.close();

What is the expected result?
App deploys Successfully and everything works fine.
What happens instead?
deployment fails on functions and gives this error code
Build failed: npm_install had stderr output:
/workspace/node_modules/puppeteer/install.js:178
            } catch {
                    ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:617:28)
    at Object.Module._extensions..js (module.js:664:10)

    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
        app

Getting the same issue here

Same issue here.
puppeteer version 4.0.1
OS: Ubuntu 16.04 LTS

Same here:
puppeteer 4.0.0
OS: macOS Mojave

Updating node version to 10 fixed for me.
"engines": {
"node": "10"
},

We require Node 10 since Puppeteer 3, so please ensure you're on a recent enough version.


Brought in the new Cassandra driver

This replaces the old Helenus driver and uses the now "official" nodejs driver to talk to Cassandra.
This is not CQL3 compatible just yet. I'd like to submit a separate PR for that body of work (or update the existing PR)

Should I wait for CQL3 before merging or should I get this into master now for people to play with?

I'll do CQL3  in a separate PR. This should at least get us back into the same place as we were.

Thanks @JohnMcLear, will you also pull this version in etherpad or do you want me to send a PR for that?

I will probably do it when I do an "oudated" sweep, if you want to get it in before feel free to send through a PR :)


[Task]: Snowflake JUnit test cases

SubTasks
This task is to add test cases for snowflake key pair authentication mechanism that we have newly added

This may get delayed as release blocker was prioritised

This is taking time due to known issue of mocking static methods, updating the estimate.


Visualisation 7 get data and create json from it.

Need to visit data source page, download the data (.csv or some other format) and create json from it. Consider if data source provides api => less work for us. Json could be created using some small script tai some web app that converts csv to json.
Acceptance criteria: json file with data in comment for the task. Later these would be used to create UI without back-end and to initialize database

the temperature record from the available 2m year period

vis7.1-tem.txt
co2 measurements
vis7.2-C02.txt


Call Stored Procedure from DBeaver to DB2 not working

System information:

Operating system (distribution) and version: Windows 10 Enterprise
DBeaver version Version <IP_ADDRESS>201221033
Java version  java.version=11.0.12
Additional extensions

Connection specification:

Database name and version
Driver name: DB2 for z/OS
Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you're observing:
I'm trying to call STP from DBeaver or Jmeter with the following command example:
@call SCHEMA.STPNAME(
${var_in1||AKTIVIER||String||dir=in noshow}$
, ${var_in2||AP||String||dir=in noshow}$
, ${var_in3||XXX||String||dir=in noshow}$
, ${var_out1||(null)||Integer||dir=out noshow}$
, ${var_out2||(null)||String||dir=out noshow}$
, ${var_out3||(null)||String||dir=out noshow}$
);
The strange thing is that in DBVisualizer it's working. I'm using the same jar drivers for all the applications.
Steps to reproduce, if exist:
Include any warning/errors/backtraces from the logs

Unrecognized keyword in escape clause: var_in1||AKTIVIER||String||dir=in noshow. ERRORCODE: -4463, SQLSTATE:42601.

Hello @atarox
Please provide error logs: https://github.com/dbeaver/dbeaver/wiki/Log-files


Add services

Hello!
Please add services for working with models with javadoc:

id
Services

#100
TextNodeService

#101
ImageNodeService

#102
VideoNodeService

#103
CodeNodeService

#104
TagService

#105
NodeService

#106
PostService

Need to create methods to CRUD.
package for interfaces: com.reckue.post.services
package: for implementationscom.reckue.post.services.realizations
Methods:

T create(T object)
T update(T object)
List findAll(int limit, int offset, String sort, boolean desc)
T findById(String id)
void deleteById(String id)

It's all.

All services are closed.


Fix root and a couple small fixes

This PR addresses issue #361
Please Check

[x] Are the JSON schemas updated?
[x] Are the api docs updated?
[x] Are tests passing?

Heh, sorry. I was too slow.  Feel free to ignore.


Removing Bundled products

How can we remove bundled products ? I checked your controller but there was no action for the same.
Also Products aren't removing by craft commerce default method.

Hi @craftcmscoder
Firstly apologies for this not being in the wiki, it should probably been in there! The way to do this when looping through your cart is to check if it is a bundle and then use the multiAdd/updateCart action to nullify the quantities for those products.
The following template example should get you there:

{% set cartLineItems = cart.lineItems|cartBundle %}
{% for item in cartLineItems %}

  ...

  <form method="POST">
      <input type="hidden" name="action" value="multiAdd/updateCart">
      <input type="hidden" name="redirect" value="your-cart-url">
      {{ getCsrfInput() }}

      {% if item.options|length and item.options.bundleItems is defined and item.options.bundleItems|length %}
        {% for bundleItem in item.options.bundleItems %}
          <input type="hidden" size="4" name="items[{{ bundleItem.id }}][qty]" value="0">
        {% endfor %}
      {% else %}
        <input type="hidden" size="4" name="items[{{ item.id }}][qty]" value="0">
      {% endif %}

      <button type="submit" name="button">Remove</button>
  </form>

  ...

{% endfor %}

Hope this helps!


Migration to CMake build system

Migrated from #7 .

this probably not work on msvc, since there's no msvc on windows

So there's a problem here, there's no support for MSVC because of that


Add back auth token for UploadSegmentCommand

bugfix
The auth token used in the auth headers was removed in https://github.com/startreedata/pinot/commit/66ed9b7167241da15c171d667006a3f00a13734c.  This broke some application tests. This PR creates the auth header as it previous was.
I tested this locally with a custom image and it resolved the issue.

Label: bugfix
Related to changes in https://github.com/apache/pinot/pull/9861

Codecov Report

Merging #9960 (ded586a) into master (60a62fe) will decrease coverage by 54.57%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master    #9960       +/-   ##
=============================================
- Coverage     70.39%   15.82%   -54.58%
+ Complexity     5071      176     -4895
=============================================
  Files          1986     1933       -53
  Lines        106777   104333     -2444
  Branches      16195    15914      -281
=============================================
- Hits          75168    16510    -58658
- Misses        26357    86599    +60242
+ Partials       5252     1224     -4028

Flag
Coverage Δ

integration1
?

integration2
?

unittests1
?

unittests2
15.82% <ø> (-0.06%)
:arrow_down:

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

 Learn more


TOMEE-2368-example-mvc-resteasy

https://issues.apache.org/jira/browse/TOMEE-2368
I made a simple hello world example with MVC 1.0 using RestEasy module .

@Daniel-Dos can you please fix the conflict? Thank you!

Hi @radcortez ,
I can yes.
thanks.

done.

Thank you guys for the effort.


SentEmailViewer should work with with all adapters.

It would be nice if SentEmailViewer still worked with other adapters, maybe LocalAdapter could be an add-on and not just the only one used.
The rational is that we're using SES Mailbox Simulator for non prod environments, and would love to be able to use it while still having access to the SentEmailViewer.
My suggestion is that LocalAdapter should not be a replacement for an actual adapter, but an addition.
Is this something that's acceptable? In which case I don't mind setting up a PR for it.

Thanks for mentioning this @seivan . I'm not a 100% sure, but I think you could make this work already as is by using Bamboo.SentEmail? That's what the LocalAdapter uses, right?
So if you wrote your own adapter that uses SentEmail to store and fetch the emails, then you might be good to go? I know that's technically internal workings of LocalAdapter and SentEmailViewer and thus liable to change, so it might be good to make it official somehow. But for now, would that solve your problem?


Strong CI

Get gometalinter running on CI, ensure we're caching stuff and everything is fast.
Maybe want to use Circle CI instead, their docs for this sort of thing were much better and they allow running gometalinter concurrently.

CI has been made very strong.


[Snyk] Upgrade @opentelemetry/sdk-trace-node from 1.8.0 to 1.9.1

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade @opentelemetry/sdk-trace-node from 1.8.0 to 1.9.1.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 2 versions ahead of your current version.
The recommended version was released 22 days ago, on 2023-01-30.

Release notes

Package name: @opentelemetry/sdk-trace-node

1.9.1 - 2023-01-30🐛 (Bug Fix)

fix: avoid grpc types dependency #3551 @ Flarna
fix(otlp-proto-exporter-base): Match Accept header with Content-Type in the proto exporter
#3562 @ scheler
fix: include tracestate in export #3569 @ Flarna

🏠 (Internal)

chore: fix cross project links and missing implicitly exported types #3533 @ legendecas
feat(sdk-metrics): add exponential histogram mapping functions #3504 @ mwear

1.9.0 - 2023-01-11🚀 (Enhancement)

feat(instrumentation-grpc): set net.peer.name and net.peer.port on client spans #3430

🐛 (Bug Fix)

fix(sdk-metrics): use default Resource to comply with semantic conventions #3411 @ pichlermarc

Metrics exported by the SDK now contain the following resource attributes by default:

service.name
telemetry.sdk.name
telemetry.sdk.language
telemetry.sdk.version

fix(sdk-trace): make spans resilient to clock drift #3434 @ dyladan
fix(selenium-tests): updated webpack version for selenium test issue #3456 @ SaumyaBhushan
fix(sdk-metrics): fix duplicated registration of metrics for collectors #3488 @ legendecas
fix(core): fix precision loss in numberToHrtime #3480 @ legendecas

🏠 (Internal)

chore: automatically generate tsconfigs #3432 @ legendecas
chore: enforce format with prettier #3444 @ legendecas

1.8.0 - 2022-11-09
@ opentelemetry/sdk-metrics has been promoted to stable
@ opentelemetry/api-metrics has been merged into @ opentelemetry/api and deprecated

💥 Breaking Change

feat(api): merge api-metrics into api #3374 @ legendecas

🚀 (Enhancement)

feat(sdk-trace): re-export sdk-trace-base in sdk-trace-node and web #3319 @ legendecas
feat: enable tree shaking #3329 @ pkanal

🐛 (Bug Fix)

fix(sdk-trace): enforce consistent span durations
#3327 @ dyladan
fix(resources): fix EnvDetector throwing errors when attribute values contain spaces
#3295
fix(trace): fix an issue which caused negative span durations in web based spans
#3359 @ dyladan
fix(resources): strict OTEL_RESOURCE_ATTRIBUTES baggage octet decoding
#3341 @ legendecas

📚 (Refine Doc)

docs(api): fix counter negative value wording #3396 @ legendecas

🏠 (Internal)

ci: run browser tests without circle #3328 @ dyladan

    from @opentelemetry/sdk-trace-node GitHub release notes

Commit messages

Package name: @opentelemetry/sdk-trace-node

279458e Release 1.9.1 / 0.35.1 (#3573)
4978743 fix(http): remove outgoing headers normalization (#3557)
d1f9594 chore(deps): update dependency rimraf to v4 (#3532)
e0abcc0 fix: remove JSON syntax error and regenerate tsconfig files (#3566)
a90c558 fix(sdk-node): register instrumentations early (#3502)
5b070b8 fix: include TraceState in trace exports (#3569)
dcb09b7 chore(deps): update dependency gh-pages to v5 (#3571)
3bc93a9 feat: exponential histogram - part 1 - mapping functions (#3504)
3670071 fix: avoid grpc types dependency (#3551)
b5ef0e4 chore: fix proto generation (#3567)
77f7753 chore(deps): update dependency mkdirp to v2 (#3554)
bcfb1b6 Match Accept header with Content-Type in the proto exporter (#3562)
9589d54 feat: browser support for exporter-trace-otlp-proto  (#3208)
652d167 fix(typo): Fix typo in Resource.default docstring (#3547)
5127371 chore: fix cross project links and missing implicitly exported types (#3533)
a42e4ed fix(sdk-metrics): use Date.now() for instrument recording timestamps
c87a304 fix(sdk-metrics): collect metrics when periodic exporting metric reader flushes (#3517)
49c75b8 Fix changelog link (#3536)
07b1438 fix(metrics): export MetricsAPI type (#3535)
08f597f chore: release API 1.4.0 / SDK 1.9.0 / 0.35.0 (#3516)
969bb62 fix(tracing): make spans resilient to performance clock drift (#3434)
2dcc898 Document repo settings (#3519)
475e401 docs(sdk-metrics): fix badge and reword introductory sentence (#3484)
126ae93 fix(sdk-node): fix exporter to be read only OTEL_TRACES_EXPORTER is set to a valid exporter (#3492)

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Coverage: 96.97%. Remained the same when pulling 347241ee1cae8239b481a3031ebb3719b30a2269 on snyk-upgrade-3e6ae13827eb9b41351b4fe35e918c85 into 427165ea724ff410ac328233e8ad64c8ef24999e on main.


Buildozer.spec 's title of your application can not be a Chinese character. it will show errors.

Android packaging done!
APK 中-1.0.0-debug.apk available in the bin directory
Traceback (most recent call last):
File "/usr/local/bin/buildozer", line 9, in
load_entry_point('buildozer==0.30', 'console_scripts', 'buildozer')()
File "/Library/Python/2.7/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/Library/Python/2.7/site-packages/buildozer/init.py", line 987, in run_command
self.target.run_commands(args)
File "/Library/Python/2.7/site-packages/buildozer/target.py", line 85, in run_commands
func(args)
File "/Library/Python/2.7/site-packages/buildozer/target.py", line 97, in cmd_debug
self.buildozer.build()
File "/Library/Python/2.7/site-packages/buildozer/init.py", line 198, in build
self.target.build_package()
File "/Library/Python/2.7/site-packages/buildozer/targets/android.py", line 735, in build_package
self.buildozer.state['android:latestapk'] = apk
File "/Library/Python/2.7/site-packages/buildozer/jsonstore.py", line 33, in setitem
self.sync()
File "/Library/Python/2.7/site-packages/buildozer/jsonstore.py", line 55, in sync
fd.write(unicode(dumps(self.data, ensure_ascii=False)))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 250, in dumps
sort_keys=sort_keys, **kw).encode(obj)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 210, in encode
return ''.join(chunks)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 1: ordinal not in range(128)

Ported to https://github.com/kivy/buildozer/issues/284.


Imported module names/function should be correctly passed to qastle.

Cannot use imported module names in lambdas
Fixes #127

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (7295efc) 96.79% compared to head (2c4e2c7) 96.80%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #131   +/-   ##
=======================================
  Coverage   96.79%   96.80%
=======================================
  Files          15       15
  Lines        1281     1283    +2
=======================================
+ Hits         1240     1242    +2
  Misses         41       41

Flag
Coverage Δ

unittests
96.80% <100.00%> (+<0.01%)
:arrow_up:

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

Files
Coverage Δ

func_adl/util_ast.py
92.24% <100.00%> (+0.06%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

The problem of as_literal being called on non-literals is still there. For example, if you say np = (i for i in [1]) somewhere before the lambda, this is still going to give you ast.Constant(value=<generator object <genexpr> at [...]>), which is not a valid Python AST node. (Maybe a contrived example, but this AST would make debugging such a case much more difficult than it should be.)

As I mentioned in the issue (#127), this type checking is already done by func-adl for Python versions < 3.8, so the suggestion is just to do this for Python >= 3.8 as well.

Ok, @masonproffitt - I've added a whitelist for types we can capture - the error should be more informative. For example (from the test):
ValueError("Do not know how to capture data type \'bogus\' for variable \'my_var\' - only str, int, float, bool, complex, str, bytes are supported."

which happens from this test:
def test_sensible_error_with_bad_variable_capture():
    class bogus:
        def __init__(self):
            self.my_var = 10

    my_var = bogus()

    with pytest.raises(ValueError) as e:
        parse_as_ast(lambda x: x > my_var)

    assert "my_var" in str(e)

Does that get to what you are after?


buildNatives_osx64 build is broken

Describe the bug
gradle buildNatives_osx64 fails with error message
> Task :CabExtract:osx64CabExtractMake
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o system.o `test -f 'mspack/system.c' || echo './'`mspack/system.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o cabd.o `test -f 'mspack/cabd.c' || echo './'`mspack/cabd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o lzxd.o `test -f 'mspack/lzxd.c' || echo './'`mspack/lzxd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o mszipd.o `test -f 'mspack/mszipd.c' || echo './'`mspack/mszipd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o qtmd.o `test -f 'mspack/qtmd.c' || echo './'`mspack/qtmd.c
rm -f libmspack.a
ar cru libmspack.a system.o cabd.o lzxd.o mszipd.o qtmd.o
/opt/local/bin/ranlib: object: libmspack.a(system.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[1]: *** [libmspack.a] Error 1
make: *** [all] Error 2

> Task :CabExtract:osx64CabExtractMake FAILED

To Reproduce
Steps to reproduce the behavior:
This applies to the current Ghidra github repo, the last commit was https://github.com/NationalSecurityAgency/ghidra/commit/cafbb77db0a2120c529aef45d2d6bc47fa1edc29
mkdir ~/git2
cd ~/git2
git clone https://github.com/NationalSecurityAgency/ghidra.git
cd ghidra/
gradle eclipse
gradle prepDev -x yajswDevUnpack eclipse
mkdir -p /git2/ghidra.bin/GhidraBuild/EclipsePlugins/GhidraDev/buildDependencies/
cp ~/git/ghidra.bin/GhidraBuild/EclipsePlugins/GhidraDev/buildDependencies/* ~/git2/ghidra.bin/GhidraBuild/EclipsePlugins/GhidraDev/buildDependencies/
gradle prepDev -x yajswDevUnpack eclipse

gradle buildNatives_osx64

Expected behavior
Build should work.
Environment (please complete the following information):

OS: macOS 10.14.5
Java Version: openjdk 11.0.2 2019-01-15
Ghidra Version: fresh clone from github

Did it used to build for you or is this your first attempt?

You may want to pull and try again.  The next commit is Corrected CabExtract build issues.

Yes, this is not my first build of the decompiler, it did build for me with a previous pull.

    Some pre-mac appstore DMGs contained zlib compressed payloads.  The
    naive check for zlib enabled the DMG file system to catch those cases,
    at the expense of false positives for other zlib content.

    This commit stops the DMG file system from claiming zlib formatted
    files.

    Also fix unreleased filehandle in DmgDecryptorStream

commit 8dfffdd5dbfcaf3b32ba759dc1b2355f6f3f8c00
Author: ghidra1<EMAIL_ADDRESS>Date:   Thu Jun 13 18:54:47 2019 -0400

    Corrected CabExtract build issues

commit 7e80e70465f0d77e80c04a2f7501b41fb1e7d89e
Author: ghidra1<EMAIL_ADDRESS>Date:   Thu Jun 13 16:37:47 2019 -0400

    Restored build cleanup of assembly area
(...)

So the commit you mentioned is already included:
commit 8dfffdd5dbfcaf3b32ba759dc1b2355f6f3f8c00
Author: ghidra1<EMAIL_ADDRESS>Date:   Thu Jun 13 18:54:47 2019 -0400

    Corrected CabExtract build issues

But the problem is still:
$ gradle buildNatives_osx64

> Task :CabExtract:configureCabExtract
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/types.h... yess]
checking for sys/stat.h... yes5s]
checking for stdlib.h... yes [5s]
checking for string.h... yes [5s]
checking for memory.h... yes [5s]
checking for strings.h... yes[5s]
checking for inttypes.h... yes6s]
checking for stdint.h... yes [6s]
checking for unistd.h... yes [6s]
checking ctype.h usability... yes
checking ctype.h presence... yes]
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes]
checking for errno.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes]
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for inttypes.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline[9s]
checking for mode_t... yesNG [9s]
checking for off_t... yesING [9s]
checking for size_t... yesNG [9s]
checking size of off_t... 8G [9s]
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for working POSIX fnmatch... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for mkdir... yesING [10s]
checking for _mkdir... noING [10s]
checking whether mkdir takes one argument... no
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no]
checking for memcpy... yesNG [11s]
checking for memmove... yesG [11s]
checking for strcasecmp... yes11s]
checking for strchr... yesNG [11s]
checking for towlower... yes [11s]
checking for utime... yesING [11s]
checking for utimes... yesNG [11s]
checking for getopt_long... yes2s]
checking for working alloca.h... yes
checking for alloca... yesNG [12s]
checking for mbstate_t... yes[12s]
checking for working POSIX fnmatch... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cabextract.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

> Task :CabExtract:osx64CabExtractMake
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o system.o `test -f 'mspack/system.c' || echo './'`mspack/system.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o cabd.o `test -f 'mspack/cabd.c' || echo './'`mspack/cabd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o lzxd.o `test -f 'mspack/lzxd.c' || echo './'`mspack/lzxd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o mszipd.o `test -f 'mspack/mszipd.c' || echo './'`mspack/mszipd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o qtmd.o `test -f 'mspack/qtmd.c' || echo './'`mspack/qtmd.c
rm -f libmspack.a
ar cru libmspack.a system.o cabd.o lzxd.o mszipd.o qtmd.o
/opt/local/bin/ranlib: object: libmspack.a(system.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[1]: *** [libmspack.a] Error 1
make: *** [all] Error 2

> Task :CabExtract:osx64CabExtractMake FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CabExtract:osx64CabExtractMake'.
> Process 'command 'make'' finished with non-zero exit value 2

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 16s
4 actionable tasks: 4 executed

Ok, I'll have to check with someone else to see what has changed.  In the meantime, we just pushed new commits if you want to try with the absolute latest.

Ok, I wanted to try with the absolute latest and did:
git fetch
git pull
gradle clean
gradle eclipse
gradle prepDev -x yajswDevUnpack eclipse
gradle buildNatives_osx64

and the last command still fails:
> Task :CabExtract:osx64CabExtractMake
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o system.o `test -f 'mspack/system.c' || echo './'`mspack/system.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o cabd.o `test -f 'mspack/cabd.c' || echo './'`mspack/cabd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o lzxd.o `test -f 'mspack/lzxd.c' || echo './'`mspack/lzxd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o mszipd.o `test -f 'mspack/mszipd.c' || echo './'`mspack/mszipd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o qtmd.o `test -f 'mspack/qtmd.c' || echo './'`mspack/qtmd.c
rm -f libmspack.a
ar cru libmspack.a system.o cabd.o lzxd.o mszipd.o qtmd.o
/opt/local/bin/ranlib: object: libmspack.a(system.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[1]: *** [libmspack.a] Error 1
make: *** [all] Error 2

> Task :CabExtract:osx64CabExtractMake FAILED

Interestingly, when I run the buildNatives command a second time, the result is
> Task :CabExtract:osx64CabExtractMake FAILED
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o cabextract.o `test -f 'src/cabextract.c' || echo './'`src/cabextract.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o md5.o md5.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o mktime.o mktime.c
mktime.c:367:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
  if (TIME_T_MAX / INT_MAX / 366 / 24 / 60 / 60 < 3)
      ^~~~~~~~~~
mktime.c:90:21: note: expanded from macro 'TIME_T_MAX'
# define TIME_T_MAX TYPE_MAXIMUM (time_t)
                    ^~~~~~~~~~~~~~~~~~~~~
mktime.c:77:41: note: expanded from macro 'TYPE_MAXIMUM'
#define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
                                        ^~~~~~~~~~~~~~~~
mktime.c:76:20: note: expanded from macro 'TYPE_MINIMUM'
                              ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
                                ~~~~~~~ ^
1 warning generated.
gcc  -g -O2   -o cabextract cabextract.o md5.o libmspack.a  mktime.o
ld: archive has no table of contents file 'libmspack.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cabextract] Error 1
make: *** [all] Error 2

FAILURE: Build failed with an exception.

and when I run it a third time, the result is:
> Task :CabExtract:osx64CabExtractMake FAILED
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc  -g -O2   -o cabextract cabextract.o md5.o libmspack.a  mktime.o
ld: archive has no table of contents file 'libmspack.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cabextract] Error 1
make: *** [all] Error 2

and further attempts yield the same result.

I just did a clone, setup the ~/.gradle/init.d/repos.gradle file, got dependencies for FileFormats and DMG, then ran gradle buildNatives_osx64 and it worked.
I'm on macOS High Sierra.  Did you recently change anything about your OS or build tools on your system?

I use the most recent macOS Mojave 10.14.5
I didn't change anything recently, and I can still build an older version of Ghidra (06 Jun 2019). A commit after that must have broken the build for me.

I'm running out of ideas.  In your repo where it's failing, what happens if you rollback to the same commit you know is working in your other repo?  If that works, you could do a binary search through the commits to figure out what exactly broke it for you.

git reset --hard 3b999fd86eddbb55861869286d10f4fc6fddc078 breaks it
(and subsequent commits do not fix it)

commit 3b999fd86eddbb55861869286d10f4fc6fddc078 (HEAD -> master)
Author: ghidra1<EMAIL_ADDRESS>Date:   Thu Jun 13 14:06:13 2019 -0400
Corrected GPL build issues

git reset --hard a524ae4d7c0d7095f14c5496840f492c6a091656 still works.

Thanks for taking the time to track that down.  I see that a few commits later additional GPL fixes were put in to fix cabextract.  I'll have to check with @ghidra1 to see what that was about.  It sounds like he only fixed it partially.

Could you try unpacking and building cabextract-1.6.tar.gz yourself to see if that succeeds?  It should just be a ./configure and make.
On the older commit where the build was succeeding, we weren't even kicking off the build of cabextract...that's why it appeared to be working.

I tried this:
cd GPL/CabExtract/build/cabextract-1.6/
make clean
./configure
make

Result is the same:
$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o system.o `test -f 'mspack/system.c' || echo './'`mspack/system.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o cabd.o `test -f 'mspack/cabd.c' || echo './'`mspack/cabd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o lzxd.o `test -f 'mspack/lzxd.c' || echo './'`mspack/lzxd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o mszipd.o `test -f 'mspack/mszipd.c' || echo './'`mspack/mszipd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o qtmd.o `test -f 'mspack/qtmd.c' || echo './'`mspack/qtmd.c
rm -f libmspack.a
ar cru libmspack.a system.o cabd.o lzxd.o mszipd.o qtmd.o
/opt/local/bin/ranlib: object: libmspack.a(system.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[1]: *** [libmspack.a] Error 1
make: *** [all] Error 2

$ /opt/local/bin/ranlib -V prints Apple Inc. version cctools-895

Can you unpack GPL/CabExtract/data/cabextract-1.6.tar.gz to somewhere outside of the Ghidra installation directory and try to build it?  We are concerned that the timestamps associated with the files unpacked by Gradle are causing the issue.  If you unpack the .tar.gz file yourself, it will eliminate Gradle as a possibility.

Yes, but same result:
(use Mac Finder to copy cabextract-1.6.tar.gz to ~/ and extract it there)

cd ~/cabextract-1.6
./configure
make

$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o system.o `test -f 'mspack/system.c' || echo './'`mspack/system.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o cabd.o `test -f 'mspack/cabd.c' || echo './'`mspack/cabd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o lzxd.o `test -f 'mspack/lzxd.c' || echo './'`mspack/lzxd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o mszipd.o `test -f 'mspack/mszipd.c' || echo './'`mspack/mszipd.c
gcc -DHAVE_CONFIG_H -I.  -I./mspack -DMSPACK_NO_DEFAULT_SYSTEM   -g -O2 -c -o qtmd.o `test -f 'mspack/qtmd.c' || echo './'`mspack/qtmd.c
rm -f libmspack.a
ar cru libmspack.a system.o cabd.o lzxd.o mszipd.o qtmd.o
/opt/local/bin/ranlib: object: libmspack.a(system.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[1]: *** [libmspack.a] Error 1
make: *** [all] Error 2

That would point to there being something about your build tools not being able to build this package...nothing to do with Ghidra really.  I'll have to do some googling to see if other people are having problems building this on Mojave.  Could you try building the latest version of cabextract?  Maybe they fixed something for your platform.

Hmmm, well, downloading and trying to make cabextract-1.9.1 yields the same error :(

Ok, I found the problem - apparently my ranlib ("Apple Inc. version cctools-895") was installed with another package, maybe libtools (?), and didn't match ar.
Now, with
$ ranlib -V
Apple Inc. version cctools-927.0.2

everything builds ok.
It generates a warning
mktime.c:367:7: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
  if (TIME_T_MAX / INT_MAX / 366 / 24 / 60 / 60 < 3)
      ^~~~~~~~~~
mktime.c:90:21: note: expanded from macro 'TIME_T_MAX'
# define TIME_T_MAX TYPE_MAXIMUM (time_t)
                    ^~~~~~~~~~~~~~~~~~~~~
mktime.c:77:41: note: expanded from macro 'TYPE_MAXIMUM'
#define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
                                        ^~~~~~~~~~~~~~~~
mktime.c:76:20: note: expanded from macro 'TYPE_MINIMUM'
                              ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
                                ~~~~~~~ ^
1 warning generated.

but it builds :)
Thanks for your help.

Thanks for your information, it helps me a lot.
I have also occurred this problem after I updated my MAC with command brew upgrade.
But my error info is:
ld: warning: ignoring file libmspack.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture x86_64:
  "_mspack_create_cab_decompressor", referenced from:
      _main in cabextract.o
  "_mspack_destroy_cab_decompressor", referenced from:
      _main in cabextract.o
  "_mspack_sys_selftest_internal", referenced from:
      _main in cabextract.o
ld: symbol(s) not found for architecture x86_64

Using command nm libmspack.a | grep _mspack_create_cab_decompressor, I get:
0000000000000000 T _mspack_create_cab_decompressor

It's clear that I have successfully built and archived the target functions, but why I cannot link them?
The command ar -V and ranlib -V gives me the result:
GNU ar/ranlib (GNU Binutils) 2.37
Copyright (C) 2021 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

So it's not about the incompatible between AR and RANLIB. What about the LD? Then I use system default AR and RANLIB instead:
Apple Inc. version cctools-959.0.1
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: no archives specified
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib [-sactfqLT] [-] archive [...]

Build again. Bingo! Compile successfully.
CONCLUSION: The AR and RANLIB from GNU Binutils  does not compatible with the system linker LD on mac OSX, we should use the system default toolchains.


Check latest

This checks to see what the latest release of the Carina CLI is, informing users to upgrade. We'll want to switch the suggested URL later.

This is tolerant of when the CLI can't reach the releases endpoint from GitHub (they should be able to keep working regardless of GitHub).


Adding 42 Prague to the list of schools

42 Prague is a full-time, tuition-free coding institute. It challenges the traditional learning model and provides an industry-leading education for free with no teachers or classes.

@edvieg First stage of verification passed, official domain is 42prague.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@edvieg Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Handle unknown apps

Task/Issue URL: https://app.asana.com/0/488551667048375/1203029803311273/f
Description
Handle the case when android does not find the app given its uid.
Steps to test this PR

AppTP should continue blocking as usual
code review

Current dependencies on/for this PR:

develop

PR #2308   👈

This comment was auto-generated by Graphite.


[Update Request]: GPXSee 13.11

What type of update are you requesting?
A new version of an existing package
Current Package Identifier
tumic0.GPXSee
Package Version
13.11
Please describe the changes you would like to see
GPXSee 13.11 available. Also please remove the 13.9 and 13.8 versions as the installers were removed.

This work is in progress by @fancybody in https://github.com/microsoft/winget-pkgs/pull/127349.

Solved in #127349.


minor fixes

tentacler season 7 -> 9 (think this was unintentional?)
tripleclicking with quantum mouse now adds to the doubleclick stat

good catch, thank you!


[Feature request]: Disable All keyboard shortcut

Version

[X] I'm using version 1.7.0

Existing requests

[X] I've checked Existing requests

What operating system are you using?
macOS
Operating System Version
macOS BigSur 11.4
Problem description
Disable System shortcut like command+Tab command+Q etc.
I cannot use the computer when break.
Possible solution
it seems not work to register a Shortcut.
Alternative solutions
A clear and concise description of what you want to happen.
Additional information
No response
Code of Conduct

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

I was not able to find anything that would allow this, but I'll keep this open, maybe someone knows of a way.


Fix monitoring RBAC issue

TBD

TBD == We currently defer all auth checks down to prometheus auth. We dont do any checking in rancher. But, when we did the prom refactor, we now have an exlicit permission that we could check to see if the user has before showing the actions for accessing grafana or showing chart links.
This does not need done for v2.2. We are enforcing rbac properly, i just would like to see this change so that we can dynamically hide monitoring for folks that should not see it.


[FEATURE] Support for event on Windows/Command/Option/Alt key presses

Is your feature request related to a problem? Please describe.
I cannot see definitions for several special keys in: https://docs.rs/cursive/0.16.3/cursive/event/enum.Key.html

Windows
Alt
Command (⌘)
Option (⌥)
Function keys 13-19 (available on some keyboards, such as the Apple Magic Keyboard)

Describe the solution you'd like
All these keys should be available to create key bindings on for software using cursive/cursive-core.
Describe alternatives you've considered
A more limited set of key binding options is the only alternative to adding this feature I can think of.

How about https://github.com/Textualize/textual, the tui supports event on windows terminal. Other terminals in linux, macos are also support.


Color-depth alignment method for two pipelines

Required Info

Camera Model
{ D435i }

Firmware Version
<IP_ADDRESS>

Operating System & Version
Linux Ubuntu 20.04

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC

SDK Version
{ 2.55.1 }

Language
{C++ }

Segment
{Robot }

Issue Description
<Describe your issue / question / feature request / etc..>
Hi, I have tried countless times to use one pipe to enable both color and depth streams, but the program always reports an error, including when I modified the example provided in the SDK. So I used two pipes to enable color and depth streams respectively, but a new problem emerged. I found that the depth data acquisition was inaccurate. I tried to use:
rs2::align align_to_color(RS2_STREAM_COLOR);
frames = align_to_color.process(frames);
but it doesn't work. Can you provide a method to align the two pipes?

Hi @kummerrrrrr  Your thinking for taking data from one pipeline and accessing it in a second pipeline in order to perform alignment is along the right lines theoretically, but on the couple of rare occasions when other RealSense users have attempted it in the past, it has not worked.
Was it the C++ rs-align SDK example that you modified, please?  Due to the way in which the SDK's examples are built, code from the examples may not work if copied into a new project because the new project will lack the required linkages to the librealsense library.
If the SDK examples are installed on your computer, is the original unmodified version of rs-align able to run correctly if you go to the usr/local/bin folder of Ubuntu to find the pre-built executable version of rs-align there and launch it?

vision@vision:/usr/local/bin$ ./rs-align RealSense error calling rs2_pipeline_start_with_config(pipe:0x55cd1fe3c640, config:0x55cd1fe25240):     xioctl(VIDIOC_S_FMT) failed, errno=5 Last Error: Input/output error
The part I modified: I added the depth stream to the rs-color.c example, and used the command line to compile and execute it. I found that the error thrown was the same as my own program. I just executed rs-align, which was not modified, and the result was also an error. Is this a case of my build failing? Or some library version mismatch?
So my program can only use two pipes to configure the color stream and depth stream, but I know this will still cause problems.

There does not seem to be any problems in your combination of camera, librealsense version, Ubuntu version or firmware version.
rs-color.c is an example program in the "C" language rather than C++, so it would be difficult to modify to make it a depth-color alignment program by using a C++ code reference.
There is an official code reference about creating depth-color alignment in "C" language at the link below if you are programming in that language.
https://github.com/IntelRealSense/librealsense/discussions/12320


[no-unsafe-mutable-readonly-assignment] impractical to use with many readonly array methods

As discussed in https://github.com/danielnixon/readonly-types/issues/7, lots of readonly array methods return mutable arrays. An example of this is concat. So if you have code like the following very common example, you will run afoul of the no-unsafe-mutable-readonly-assignment rule:
const foo: ReadonlyArray<"string"> = ["foo"] as const;
// concat returns a mutable array,
// which we try to assign to an readonly array,
// which triggers no-unsafe-mutable-readonly-assignment
const bar: ReadonlyArray<"string"> = foo.concat("bar");

This situation renders the no-unsafe-mutable-readonly-assignment rule impractical for all but the most hardcore readonly aficionados. If https://github.com/danielnixon/readonly-types/issues/7 were to deliver a VeryReadonlyArray we could recommend the use of that, but that's probably too much of an imposition.
We don't want to allow mutable -> readonly assignment in the general case, because in principle that mutable value could be retained and used to cause surprising mutation in the readonly value at some point in the future. In the case of array methods like concat we know that no references to the returned array is retained, so we should relax no-unsafe-mutable-readonly-assignment to not flag such cases.

In fact it would probably make sense to implement this in a way that users can specify as an option a list of types and methods that should be ignored (as long as their return values are immediately assigned to a readonly value).
That way users can ignore methods in libraries that are equivalent to the concat situation.

@willheslam I'd welcome contributions here if you're interested in taking a crack ;-)

@danielnixon It's a little daunting but I will take a look at it this weekend! :)
I have a few examples of seemingly false positive "readonly assigned to mutative array" scenarios that it would be useful to catalogue regardless!

I have a few examples of seemingly false positive "readonly assigned to mutative array" scenarios

I've fixed one of those just now: https://github.com/danielnixon/eslint-plugin-total-functions/commit/95acfaea315ada82abf298e10fe2f7f4a0c4c2f0

This issue is less critical now that we have PrincipledArray:
https://github.com/agiledigital/readonly-types/issues/7#issuecomment-1416679052
https://github.com/agiledigital/readonly-types/blob/master/src/index.test.ts#L170-L278

Nice work @haolinj 🚀


FTB infinity- unable to load world

I have recently started a new FTB infinity world and decided I want Compact Machines in the pack. I downloaded it striaght from the website (The curse forge one) and added it to the pack using the "add mod" button. Now when I try to load a world or create a new one it kicks me back to the title screen. I have tried everything from restarting my computer to re installing the mod. I hope you can help.
http://pastebin.com/embed_js.php?i=5qP2dBNB (sorry the first part of the log is the launch, it's lengthy).

java.lang.IllegalArgumentException: Failed to register dimension for id 2, One is already registered
Change the dimensionId in the CompactMachines config.

I have changed the ID to all sorts of numbers. I these are the ones I have:
DIM1
DIM-1
DIM2
DIM-7
DIM-19
DIM-34
DIM-37
DIM-38
DIM-42
DIM-100
DIM-112
Plus mystcraft dimensions 1 through 12. I've changed the CM dimension to all sorts of numbers and I still get the same error. I'm saving my config every time I change it and I've made sure there are no other dimensions numbered the one I put. What should I set it to?


Failed transactions trigger multipleResolves

Bug description
We have prisma transactions running sequentially which fail and the try-catch logs the error.
try {
  await prisma.$transaction([multipleSequential]));
 } catch (error) {
 }

But as we listen to the event multipleResolves on node:
process.on('multipleResolves', (type, promise, reason) => {   console.error(type, promise, reason);   setImmediate(() => process.exit(1)); });
We also log for each transaction:
Multiple resolves. Type: reject Promise: Promise {
<rejected> PrismaClientKnownRequestError:
Invalid `prisma.prismaNode.createMany()` invocation:
Unique constraint failed on the fields:

Is this a bug or why these are multiple times rejected?
How to reproduce
Listen to https://nodejs.org/api/process.html#event-multipleresolves when transactions fail.
Expected behavior
Expect no logging on multipleResolves but only the log inside try-catch for the transaction.
Prisma information

Environment & setup

OS: Fedora
Database: PostgreSQL
Node.js version: v16.13.2

Prisma Version
also 3.9.2

Just to pinpoint: Is it correct that you are not using the preview feature interactiveTransactions right now?

@janpio correct. This was without the preview feature.

I am able to reproduce this on 3.9.2. I cannot reproduce this anymore on 4.3.0, but I found something else: the process exits without giving any error if you have the same query more than once in that array, I suspect that a promise-like is causing this.

Internal conversation https://prisma-company.slack.com/archives/C040N0UADF0/p1663110820780399


[SPIKE] Should the harbor app be based on the harbor helm chart or harbor operator?

Goal: Have an initial decision for a POC (Not a final decision)

Is the operator comparable in functionality?
Is there community advice on which to use?
Is there a tangible difference in version (e.g. alpha vs production ready)?
Which one do you believe to be the better option & why?

Definition of Done:

Produce technical doc with reason for choosing between harbor helm and harbor operator

https://docs.google.com/document/d/1HUOzwb8SuPvPepoPZjC-5oyv_2tNpLjXfQe3D08xOgc/edit?usp=sharing

The document complete for now, we present the outcomes next thursday.


feat: stacks and kerodon tags are hoverable

With this change, you can get hover information and go-to-definition in the output of #stacks_tags and #kerodon_tags

Eric, you are right: in the version that is in mathlib, I had used realize...WithInfo in the hope that it would automatically add the hovers.  After that, I saw that Kyle mentioned somewhere else that the way to get hovers was via .ofConstName and now I had not gone back to remove the old, non-working, attempted solutions!

Thanks!
bors merge


Delete entity use case - Wrong step description

current:
  usecase('Delete Item', {
    // Input/Request metadata and validation
    request: {
      id: Number
    },

    // Output/Response metadata
    response: Boolean,

    //Authorization with Audit
    // authorize: user => (user.canDeleteItem ? Ok() : Err()),
    authorize: user => Ok(user),

    'Update the Item': step(async ctx => {
      await itemRepository.deleteByID(parseInt(ctx.req.id))
      return Ok()
    })
  })

module.exports = useCase

change to:
'Delete the Item': step(async ctx => {

:tada: This issue has been resolved in version 1.5.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket: