text:
Repo as "Awesome"

Hey
Also maybe this repo can be renamed to "Awesome android app" or something since its a refined list of tools and settings all inside one app, also may help to give visibility to this.
Check https://github.com/sindresorhus/awesome
And just wanted to share this awesome with cool plugins/tools/things/any for mobile learning and best practices...
https://github.com/MakinGiants/awesome-mobile-dev
Its aligned with quality matters so maybe add it to readme here as reference or an update from you guys it with cool things learned from here or something will be "awesome" (lol).

Naa this doesnt make sense, an "awesome" is another thing...

:)

authors: artem-zinnatullin danielgomezrico

repo: artem-zinnatullin/qualitymatters


text:
After setting up the plugin, tsserver keeps initializing then crashes

Description
I am in a Turbo monorepo configuration with three NextJS apps and two packages, is not a very large project.
After I setup the plugin, I can see the errors for the entire workspace, but two things happens, the first one is the I feel Neovim going slowly than before, and the second one is the tsserver initialise and crash for some reason, and keeps doing it in a loop until definitively crashes.
Steps to reproduce
I just followed the steps in the README. Here are some screenshots with what is happening.
I cannot share my repo because is a client's one.

Expected behavior
It have to work as expected
Environment

Neovim version: [0.10.0]
workspace-diagnostics version: [latest]
Plugin clash: [tsserver]

Yeah it's hard to say... One thing to check possibly is the list of project files? If for whatever reason it includes node_modules then maybe even a small project can get prohibitively large. The default file is the output of git ls-files.

source: gharchive/issue

authors: artemave belizar

license: MIT

license_type: permissive

license_source: github-api


text:
Bump golang.org/x/net to 0.33.0

Describe the feature
Bump golang.org/x/net to 0.33.0

[!TIP]
Vote this issue reacting with :+1: or :-1:

Resolved by https://github.com/artemiscloud/activemq-artemis-operator/commit/3b618b3478ba17287e35d9ad5f52174d6ee844ab

repo: artemiscloud/activemq-artemis-operator


text:
🛑 Nitter is down

In d0cca0c, Nitter (https://tw.artemislena.eu) was down:

HTTP code: 502
Response time: 3486 ms

Resolved: Nitter is back up in cd5d15c.

repo: artemislena/upptime


text:
🛑 Mailcow (SMTP) is down

In 37d3c13, Mailcow (SMTP) (mail.artemislena.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mailcow (SMTP) is back up in 442b5d4 after 9 minutes.


text:
🛑 GTRR is down

In 20cbf81, GTRR (https://gtrr.artemislena.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GTRR is back up in c0cb5ee after 7 minutes.


text:
Ray.so update

Hey! Just thought you would want to know that we added the ability to configure the language in ray.so via the URL query parameters. This means that you are able to parse a particular language into the URL and the site will render accordingly.
You can already do this with other query parameters such as the colors and padding as well as the background and dark mode toggles, and we are excited to see what you will create with this new configurable parameter.
Set-language-from-url.mp4.zip
All parameters can be found in this script command
Please reach out to me if you have any questions!
Faye

Hello, @FSipiano! I've released a new version with language detection! Thanks again for the issue!

Awesome, thanks for the update!

authors: FSipiano artemnovichkov

repo: artemnovichkov/RaySo


text:
Deleted package detected

I'm a Cyber Security researcher and developer of PackjGuard [1] to address open-source software supply chain attacks.
Issue
During my research, I detected a deleted package in this repository.
Details
Specifically, the package geoserver-py mentioned in file README at line 70 does not exist on the public PyPI registry. A bad actor can hijack this package to propagate malicious code.
Impact
Not only your apps/services using https://github.com/arthurdjn/geoserver-py repo code are vulnerable to this attack, but the users of your open-source Github repo could also fall victim.
You could read more about such attacks here: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
Remediation
Please highlight this in file README and register a placeholder package for geoserver-py on public PyPI soon to remediate.
To automatically fix such issues in future, please install PackjGuard Github app [1].
Thanks!

PackjGuard is a Github app that monitors your repos 24x7, detects vulnerable/malicious/risky open-source dependencies, and creates pull requests for auto remediation: https://github.com/marketplace/packjguard

Thanks. The package name was already reserved by us, so no problems on this side.
We uploaded a novel package to PyPi, so there is no issues.
Closing.

authors: arthurdjn ashishbijlani

repo: arthurdjn/geoserver-py


text:
Assorted minor issues from Thorin

Rather than create a new issue
Tor Browser has a Desktop + Desktop private mode. Isn't the first redundant?
same with TB Nightly and Nightly private mode
https://privacytests.org/news.html - link for 10 desktop is for current desktop issue
TB Tor test
    issue 10: desktop private mode mode shows Tor as failed
    issue 10.1: desktop shows Tor as failed

Change in issue 11 - font isolation is now a fail for gecko desktop. Font cache should be isolated by network partitioning

https://privacytests.org/news.html - link for 10 desktop is for current desktop issue

Fixed by 8f76e4dad7022cae7b028960bce6eb312ec83b9b

https://privacytests.org/news.html - link for 10 desktop is for current desktop issue

Fixed by 8f76e4dad7022cae7b028960bce6eb312ec83b9b

TB Tor test
issue 10: desktop private mode mode shows Tor as failed
issue 10.1: desktop shows Tor as failed

Ugh, looks like it failed 1/5 times in both cases. Apparently I need to find a more robust way of detecting Tor nodes, although I am surprised that onionoo wouldn't give the right answer.

TB Tor test
issue 10: desktop private mode mode shows Tor as failed
issue 10.1: desktop shows Tor as failed

Ugh, looks like it failed 1/5 times in both cases. Apparently I need to find a more robust way of detecting Tor nodes, although I am surprised that onionoo wouldn't give the right answer.

Tor Browser has a Desktop + Desktop private mode. Isn't the first redundant?
same with TB Nightly and Nightly private mode

They're the same mode -- it's just that I want to display Tor Browser in both pages for comparison. I will try to clean that up at some point.

Tor Browser has a Desktop + Desktop private mode. Isn't the first redundant?
same with TB Nightly and Nightly private mode

They're the same mode -- it's just that I want to display Tor Browser in both pages for comparison. I will try to clean that up at some point.

I can detect TB via JS 100% reliably over all platforms ( ~15ms using resource://), but that's the browser, not the protocol .. so not much help for you there, sorry

it's just that I want to display Tor Browser in both pages

sounds legit :)

I can detect TB via JS 100% reliably over all platforms ( ~15ms using resource://), but that's the browser, not the protocol .. so not much help for you there, sorry

it's just that I want to display Tor Browser in both pages

sounds legit :)

https://privacytests.org/news.html
issue links are whack

13 links to default (should point to 13)
12 links to 13
11 link to 10.1

https://privacytests.org/news.html
issue links are whack
* 13 links to default (should point to 13)

It points to default because it's the current issue. :)

* 12 links to 13

* 11 link to 10.1

Thanks for reporting these! Now fixed.

It points to default because it's the current issue. :)

I know, but linking to 13 also works, so why not just do it once :)

https://github.com/arthuredelstein/privacytests.org/issues/75#issuecomment-1003461874

Change in issue 11 - font isolation is now a fail for gecko desktop. Font cache should be isolated by network partitioning

I think when we split from #75 the font issue got buried: here's an update with No 18

the third font being tested seems problematic. LW uses RFP which limits fonts to kBaseFonts (on Linux that's gated)

authors: Thorin-Oakenpants arthuredelstein


text:
Split UTF-8 string variant into owned and borrowed types

spinoso-string implements the various encodings it supports with one type per encoding. For the UTF-8 encoding, the type is Utf8String.
Utf8String is conceptually similar to Vec<u8> and String in std. Both of these types deref to a slice reference counterpart (&[u8] and &str`). All methods which do not require growing the backing vector (or dynamic allocation more generally) are implemented on the slice ref part of the type pair.
All of the encoding variants in spinoso-string do not have this flexible API. This presents challenges when wanting to perform encoding-oriented operations on a borrowed byte slice. A recent example of this was the refactoring required to get UTF-8 char len calculation shared among various parts of the code:

https://github.com/artichoke/artichoke/commit/67726d1a2f52f83830e7b2374e07c2b4337440ad
https://github.com/artichoke/artichoke/pull/2554

This commit experiments with breaking apart Utf8String into an owned and borrowed pair of types: Utf8String and &Utf8Str/&mut Utf8Str. The borrowed types are heavily inspired by bstr::BStr.
The benefits of the reference types that associate a byte slice to an encoding mostly arise from avoiding the need to allocate an owned Utf8String. I've long viewed a String's encoding as a "view" or "cursor" over the underlying byte content. Being able to interrogate an arbitrary byte slice via a specific encoding makes the API much more powerful.
Eventually I would like to extract APIs like Utf8String/Utf8Str to their own crates in the workspace. The code is sufficiently complicated and there is a lot of it. Doing so would allow exposing the various encodings in a no-std::no-alloc configuration.
This commit contains one breaking change which led to the version bump in spinoso-string (removed impl Extend<&'a mut u8>), but surprisingly little of the crate had to change outside of the UTF-8 internals.
I still consider this approach experimental and am looking for feedback on the design.
One WIP in the design: ASCII and Binary encoded strings will be able to implement reverse() on their reference type. Due to the complexity in a character-wise reversal of the conventionally UTF-8 byte contents in Utf8String, allocation is required so this API still lives on Utf8String.
A benefit of the borrowed type design is (at least for me) it makes it more obvious how a crate like encoding_rs could be used to support many more encodings than Artichoke does today.
As an aside, sorry for the massive commit. I ended up working on #2589 after I made these changes and I couldn't resolve the merge conflicts.

@b-n tagging you as a reviewer here since you're familiar with the String code and I think such a big change warrants a second pair of eyes.

If this change sounds like a good idea, I'll follow it up with the same refactor for the Binary and ASCII encoding variants.

A benefit of the borrowed type design is (at least for me) it makes it more obvious how a crate like encoding_rs could be used to support many more encodings than Artichoke does today.

Expanding on this a bit, fully committing to using custom slice types to implement a view into the underlying Buf is basically exactly the same code structure used in MRI with an RString* for holding the bytes and the various encodings in Onigmo for performing character-oriented operations on those bytes.
The Onigmo encodings are basically a set of function pointers (aka V tables) which are very similar conceptually to wrapping the raw byte slice in something like Utf8Str.
This means that Utf8String doesn't really need to be a thing (modulo figuring out how to handle the case changing routines which may change the bytesize of the string). spinoso_string::String will look like this:
pub struct String {
    encoding: Encoding,
    buf: Buf
}

EncodedString goes away and the encoding-aware methods in String will match on self.encoding, wrapping the underlying bytes in the appropriate ref type to swap in the right impl of the method.

Yea something along these lines, but I was actually thinking something like this to match the Utf8Str slice type in this PR:
trait Encoding {
    fn char_len(&self) -> usize {}
    fn get_char(&self, index: usize) -> Option<&'_ [u8]> {}
}

impl Encoding for Utf8Str {
    todo!();
}

#[derive(Clone, Copy)]
enum EncodingType {
    Utf8,
    Ascii,
    Binary,
}

impl EncodingType {
    fn to_view(self, bytes: &[u8]) -> &dyn Encoding {
        match self {
            Self::Utf8 => Utf8Str::new(bytes),
            _ => todo!(),
        }
    }

    fn to_view_mut(self, bytes: &mut [u8]) -> &dyn mut Encoding {
        match self {
            Self::Utf8 => Utf8Str::new_mut(bytes),
            _ => todo!(),
        }
    }
}

struct String {
    encoding: EncodingType,
    bytes: Buf,
}

impl String {
    pub fn char_len(&self) -> usize {
        let bytes = self.buf.as_slice();
        let view = self.encoding.to_view(bytes);
        view.char_len()
    }
}

I had a quick play to see if there was a way to make it play with static functions (for some reason in my head it felt nicer than having to initialize the underlying encoding types -  even though the compiler is likely optimizing these away).
The closest I got was:
type Buf = Vec<u8>;

trait Encoding {
    fn char_len(buf: &[u8]) -> usize;
    fn get_char(buf: &[u8], index: usize) -> Option<&'_ [u8]>;
}

struct Utf8 {}

impl Encoding for Utf8 {
    fn char_len(buf: &[u8]) -> usize {
        todo!();
    }
    fn get_char(buf: &[u8], index: usize) -> Option<&'_ [u8]> {
        todo!();
    }
}

struct String<E: Encoding> {
    encoding: E,
    bytes: Buf,
}

impl<E: Encoding> String<E> {
    pub fn char_len(&self) -> usize {
        let bytes = self.bytes.as_slice();
        self.encoding.char_len(bytes)
    }
}

However, self.encoding.char_len is not a function, it's a static method of course:

= note: found the following associated functions; to be used as methods, functions must have a self parameter

And any attempts to get around this was looking exactly what you have anyway :sweat_smile:. (e.g. Wrapping the encoding in an Enum was always an eventuality).
So yes, what you're doing makes a whole bunch of sense :smile:.

Quick thought:
Having someway to represent Utf8 as a single struct would make life easier for Encoding types still. Specifically, Encoding.names in Ruby having a single place to call would make life easier. But this could also be extracted from spinoso-string altogether and put somewhere else too - just if you saw a win along the way :-)

source: gharchive/pull-request

authors: b-n lopopolo

repo: artichoke/artichoke


text:
Update vendored reference ruby implementation

This includes the 2 patches to lib/uri/http.rb and lib/uri/generic.rb

Fork updated here: https://github.com/artichoke/ruby/tree/artichoke-vendor


text:
Implement ConvertMut for Scan

closes https://github.com/artichoke/artichoke/issues/616

Thanks @dnamsons 💎

authors: dnamsons lopopolo


text:
fix: remove samecar nginx.

https://artsyproduct.atlassian.net/browse/PLATFORM-3904
The app is already proxied by Ingress Nginx, so let's not run another Nginx instance inside the app's pod. Addresses a security bounty submission, along the way (see ticket).

Thanks! This bothered me.

authors: artsyjian joeyAghion

repo: artsy/doppler

license: mit

license_source: bigquery


text:
[Onboarding] Initially getting to the home view it can happen that you don’t see the ‘works by artist you follow’ rail.

During on boarding it’s possible to follow artists that have no for-sale artworks. On the home view we only show works [by artists you follow] that are for-sale, so the user might get confused if it doesn’t show for them when they have in fact followed artists.

Actually, having said that, I don’t know why it would every be really confusing to them, as they simply won’t know that they are missing that rail.

repo: artsy/eigen


text:
chore: Prepare for v8.51.0

This PR resolves []
Description

PR Checklist

[ ] I have tested my changes on iOS and Android.
[ ] I hid my changes behind a feature flag, or they don't need one.
[ ] I have included screenshots or videos, or I have not changed the UI.
[ ] I have added tests, or my changes don't require any.
[ ] I added an app state migration, or my changes do not require one.
[ ] I have documented any follow-up work that this PR will require, or it does not require any.
[ ] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

#nochangelog
Need help with something? Have a look at our docs, or get in touch with us.

Warnings

:warning:

✅ No changelog changes

  Generated by :no_entry_sign: dangerJS against 05f399930150f36bb2aa5089328c9d0970160fc0

authors: ArtsyOpenSource MrSltun


text:
Update Danger, make the Dangerfile use the new scoped syntax #trivial

This is one of the front-page Dangerfiles on danger.systems - so I've made sure it makes more sense.

          1 Error

:no_entry_sign:
No CHANGELOG changes made

          2 Warnings

:warning:
Needs testing on a Phone if change is non-trivial

:warning:
Detected some Swift building time outliers

Time | Class | Function |
| --- | ----- | ----- |250.4ms | AuctionViewController.swift | @objc dynamic func showRefineTappedAnimated(animated: Bool)
219.9ms | SwiftyJSON.swift | get {}
172.1ms | WebSocket.swift | private func processRawMessage(buffer: UnsafePointer, bufferLen: Int)
81.2ms | Observable.swift | private final func nextTokenHash() -> Int
73.4ms | LiveAuctionsAdminViewController.swift | @objc override func viewDidLoad()
72.8ms | AuctionLotMetadataStackScrollView.swift | required init(viewModel: LiveAuctionLotViewModelType, salesPerson: LiveAuctionsSalesPersonType, sideMargin: String)
65.8ms | LiveAuctionLotViewController.swift | @objc override func viewDidLoad()
64.4ms | UIViewController+BlurredStatusView.swift | func ar_presentBlurredOverlayWithTitle(title: String, subtitle: String, buttonState: BlurredStatusOverlayViewCloseButtonState = default)
62.3ms | UIViewController+BlurredStatusView.swift | (closure)
60.1ms | RefinementOptionsViewController+Private.swift | func stackView() -> ORStackView

  Generated by :no_entry_sign: danger

Merging for now.

https://github.com/dependencyci/dotyaml/issues/2

Thanks

@orta @alloy should be fixed now, docs on how to use dependencyci.yml here: https://dependencyci.com/docs#dependencyciyml

authors: ArtsyMobile alloy andrew orta


text:
fix(my collection): additional details edit screen layout

Description
This makes the header on the screen sticky.
Before

After

PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have added tests for my changes, or my changes don't require testing, or I have included a link to a separate Jira ticket covering the tests.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a CHANGELOG.yml entry or my changes do not require one.

#squashongreen


text:
Update README.md

reference: "on our staging server" ...  is there a permission needed?  xcode simulator opens and closes.
The type of this PR is: TYPE

This PR resolves [CX-]
Description

PR Checklist (tick all before merging)

[ ] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[ ] I have added tests for my changes, or my changes don't require testing, or I have included a link to a separate Jira ticket covering the tests.
[ ] I have documented any follow-up work that this PR will require, or it does not require any.
[ ] I have added an app state migration, or my changes do not require one. (What are migrations?)
[ ] I have added a CHANGELOG.yml entry or my changes do not require one.

not sure if there is a better way to ask this question;
do I need permission from "our staging server" to run the oss application?
attempting to run this locally and it crashes;
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
terminating with uncaught exception of type NSException
CoreSimulator 732.18.6 - Device: iPhone 12 Pro Max (04950C3A-3C45-4388-B87D-3659204E8E4C) - Runtime: iOS 14.3 (18C61) - DeviceType: iPhone 12 Pro Max

running master
havent tried 6.3.0-release yet but will do that next.
using Xcode 12.3 for development, and I did note that the documentation says:
"require using Xcode 12 for development, with the latest version (12.2.0)"
not sure if this is part of the problem.
thanks in advance!

not sure if there is a better way to ask this question;
do I need permission from "our staging server" to run the oss application?
attempting to run this locally and it crashes;
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
terminating with uncaught exception of type NSException
CoreSimulator 732.18.6 - Device: iPhone 12 Pro Max (04950C3A-3C45-4388-B87D-3659204E8E4C) - Runtime: iOS 14.3 (18C61) - DeviceType: iPhone 12 Pro Max

running master
havent tried 6.3.0-release yet but will do that next.
using Xcode 12.3 for development, and I did note that the documentation says:
"require using Xcode 12 for development, with the latest version (12.2.0)"
not sure if this is part of the problem.
thanks in advance!

Hi @llwp 👋

do I need permission from "our staging server" to run the oss application?

No, you shouldn't need any explicit permission.

attempting to run this locally and it crashes;

Can you verify that a .env.shared file is present within the root eigen directory? I wonder if the attempt to insert nil object from objects[0] error might be triggered if that file is not present.
You can create that file from the example by running make oss or ./scripts/setup-env-for-oss.

Hi @llwp 👋

do I need permission from "our staging server" to run the oss application?

No, you shouldn't need any explicit permission.

attempting to run this locally and it crashes;

Can you verify that a .env.shared file is present within the root eigen directory? I wonder if the attempt to insert nil object from objects[0] error might be triggered if that file is not present.
You can create that file from the example by running make oss or ./scripts/setup-env-for-oss.

yes, .env.shared it is present and in the root eigen directory.
(it actually had to be, with a mapbox key for the build to happen - good theory!)
... other thoughts?
THANK YOU

yes, .env.shared it is present and in the root eigen directory.
(it actually had to be, with a mapbox key for the build to happen - good theory!)
... other thoughts?
THANK YOU

... other thoughts?

My next thought would be echo, our feature flagging utility. Can you try running the ./scripts/update-echo script?
If that doesn't work, I might try running the ./scripts/flip-table script to attempt to reset things. I had to comment out L7-12 to skip the gradle step.

... other thoughts?

My next thought would be echo, our feature flagging utility. Can you try running the ./scripts/update-echo script?
If that doesn't work, I might try running the ./scripts/flip-table script to attempt to reset things. I had to comment out L7-12 to skip the gradle step.

ok... update-echo did not seem to alter anything
trying flip-table now

ok... update-echo did not seem to alter anything
trying flip-table now

flip-table seemed to get stuck on the android build - much to your point about the conditional and lines 7-12.
I commented them out as well and it clears Pods, node modules, packages etc etc etc...
Completed the build and running locally.
The iPhone simulator using XCode still does the same thing; that is ... it "launches" the app and rotated through some images (EchoNew.json). Ends in a crash and that nil error.
Hmm.

flip-table seemed to get stuck on the android build - much to your point about the conditional and lines 7-12.
I commented them out as well and it clears Pods, node modules, packages etc etc etc...
Completed the build and running locally.
The iPhone simulator using XCode still does the same thing; that is ... it "launches" the app and rotated through some images (EchoNew.json). Ends in a crash and that nil error.
Hmm.

I'll go ahead and close this.
We have https://artsyproduct.atlassian.net/browse/CX-531 to make some changes so that OSS contributors can run the app more easily.
If you have any specific issues or are still trying to run this, please re-open this and we will figure it out. Thanks!

authors: dblandin llwp pvinis


text:
fix(CX-1529): unable to edit credit card

The type of this PR is: Bugfix

This PR resolves CX-1529
Description
This PR fixes card input on android
https://user-images.githubusercontent.com/73339470/120336556-2481d380-c2fb-11eb-84f9-1699d43376f0.mov

PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have tested my changes on iOS and Android.
[x] I have added tests for my changes, or my changes don't require testing, or I have included a link to a separate Jira ticket covering the tests.
[x] I have added a feature flag, or my changes don't require a feature flag. (How do I add one?)
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a CHANGELOG.yml entry or my changes do not require one.

I think you forgot to add a short description of your changes and when we remove the patch to https://github.com/artsy/eigen/blob/master/HACKS.md


text:
[Relay] Migrate to latest API

As described in this doc https://github.com/facebook/relay/pull/1254

@alloy should this be replaced with an issue for moving to Relay Modern?

Yup 👍 Closing in favour of #616.

authors: alloy sarahscott

repo: artsy/emission


text:
@mzikherman: Point mobile hero units to MARTSY

This was just a simple oversight on my part when I refactored hero units to be randomized and use
GraphQL on mobile—whoops! Pointing to the correct platform enum now. Related to this thread.

Nice! I assume Metaphysics returns the right info for the right platform param?

authors: craigspaeth mzikherman

repo: artsy/force


text:
refactor: Update routes with file name for Relay

Updates our app routes files to include full file name, for the Relay compiler. (For output fragments we need unique file names.) Not having each named artistsRoutes, artworkRoutes, etc, is actually tech debt that we've been needing to fix for some time because its causing us problems differentiating between relay queries and where they're being executed. We've just never gotten around to fixing this.
Not fixing this has implications. For example, this came up a few days ago during an incident and led @iskounen on a bit of a goose chase:
https://artsy.slack.com/archives/CP9P4KR35/p1607534922411300

[RelayCache#set] Success {"queryId":"routes_ShowInfoQuery","variables":{"slug": slug}}

If we had this route file named showRoutes then there would have been no confusion here in our server logs during the incident, and things would have resolved fairly quickly.
While it would be nice for each routes file to just be named routes and update the query name to  be more specific, the thing is that relay, from a compiler level, requires that the file name be prefixed in the query; we can't update the query name without updating the filename.
Example error from ^:
ERROR:
Parse error: Error: RelayFindGraphQLTags: Operation names in graphql tags must be prefixed with the module name and end in "Mutation", "Query", or "Subscription". Got `conversationRoutes_ConversationQuery` in module `routes`. in "Apps/Conversation/routes.tsx"

Thanks for doing this

authors: damassi dzucconi


text:
Variables do not exist

Using latest HEAD here. This occurs for me when opening a java file and attempting completion. If you're interested, I can supply proper source files
javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_IsBuiltinType:
line    1:
E116: Invalid arguments for function index(b:J_PRIMITIVE_TYPES, a:name) >= 0
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_IsBuiltinType:
line    1:
E15: Invalid expression: index(b:J_PRIMITIVE_TYPES, a:name) >= 0
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo:
line    1:
E121: Undefined variable: b:j_cache
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo:
line    1:
E116: Invalid arguments for function has_key(b:j_cache, a:class)
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo:
line    1:
E15: Invalid expression: has_key(b:j_cache, a:class)
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line    6:
E121: Undefined variable: b:j_files
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line    6:
E116: Invalid arguments for function get(b:j_files, filename, {})
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line    6:
E15: Invalid expression: get(b:j_files, filename, {})
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line    7:
E121: Undefined variable: props
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line    7:
E116: Invalid arguments for function get(props, 'changedtick', -1) != b:changedtick
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line    7:
E15: Invalid expression: get(props, 'changedtick', -1) != b:changedtick
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line   29:
E121: Undefined variable: props
AAAline   29:
E15: Invalid expression: props
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line   30:
E121: Undefined variable: props
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..javacomplete#parseradapter#Parse:
line   30:
E15: Invalid expression: props.unit
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..java_parser#MakePos:
line    1:
E121: Undefined variable: b:idxes
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete..<SNR>146_CompleteAfterDot..<SNR>146_DoGetClassInfo..java_parser#MakePos:
line    1:
E15: Invalid expression: b:idxes[a:line] + a:col
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete:
line  229:
E121: Undefined variable: b:errormsg
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete:
line  229:
E116: Invalid arguments for function len(b:errormsg) > 0
Error detected while processing function javacomplete#Complete..javacomplete#complete#Complete:
line  229:
E15: Invalid expression: len(b:errormsg) > 0

Yeah, latest HEAD not stable enough. For production better use released one.

Yeah, I've rolled back to a release. Putting this up to help troubleshoot though

Thank you for that, of course. :+1:

Please, can you try with latest version?

Perfect! Thank you :+1:

authors: DonnieWest artur-shaik

license: Vim


text:
Add MagicNumber:ignoreLocalVariableDeclaration config

This config option wasn't correctly documented.
The generator didn't pick it up.
Hence, the default-detekt-config.yml file didn't include this option.

Codecov Report

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

@@            Coverage Diff            @@
##             master    #2123   +/-   ##
=========================================
  Coverage     80.62%   80.62%
  Complexity     2015     2015
=========================================
  Files           336      336
  Lines          5802     5802
  Branches       1057     1057
=========================================
  Hits           4678     4678
  Misses          563      563
  Partials        561      561

Impacted Files
Coverage Δ
Complexity Δ

...itlab/arturbosch/detekt/rules/style/MagicNumber.kt
89.61% <ø> (ø)
60 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

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

Good catch!

authors: arturbosch codecov-io schalkms

repo: arturbosch/detekt


text:
supported a loaded df

Please add support for a loaded df, as there are lots of option for loading a csv, the current pandas_ui() does not accept any other argument.

for my case, I need to specify the separtor

Noted. Thanks for your suggestion will include accepting DF instead of CSV files in the very next release.

authors: arunnbaba noklam


text:
Transform to denormalize specified properties from parents to children

The new SpreadProperties transform copies properties from a Document to its Elements.  This denormalization can be useful to provide efficient access to the properties from the retrieved documents at search time.  The current use is for 'title' and 'path' in examples/simple_ingest.py.  Its use is optional.
This supersedes the previous code in the PDF partitioner that inherited the path from parents.  A unit test is included.

I feel we should put this in the explode transformation, before explode, this is not needed.

@bohou-aryn, I think it's still optional if API users want this behavior.  Their UI could also fetch properties from the parent documents.  It could be better in some cases.

authors: alexaryn bohou-aryn

repo: aryn-ai/sycamore


text:
Cannot train on multiple GPUs

When running training on multiple GPUs I get:
2022-06-29 20:34:39 INFO     [training completed, 1241.1814272403717 sec in total]
Traceback (most recent call last):
  File "train01.py", line 11, in <module>
    trainer.train(monitor_validation=True)
  File "/home/johann/software/anaconda3/envs/tner/lib/python3.8/site-packages/tner/model.py", line 324, in train
    self.model.save_pretrained(self.args.checkpoint_dir)
  File "/home/johann/software/anaconda3/envs/tner/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1207, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'DataParallel' object has no attribute 'save_pretrained'

This happens with torch 1.12.0+cu113

I have fixed this shortly so please try to install the latest version of tner from the repo. I will add this to the next version.


text:
User multierror on validation

Closes #1

Pull Request Test Coverage Report for Build 231426148

10 of 11 (90.91%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+60.2%) to 60.156%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/api/server/users_handlers.go
6
7
85.71%

Totals

Change from base Build 231425142:
60.2%

Covered Lines:
308

Relevant Lines:
512

💛  - Coveralls

authors: asankov coveralls

repo: asankov/gira


text:
Conflicting neighbour events when they are not

Recently I've been testing package and found out that there's a bug with conflicting events.
All events within resource suddenly become conflicting and are rendered very narrowly.
Steps to reproduce:

create non conflicting events within one resource
add last non conflicting event with ends_at 00:00

   public function resources()
    {
        return collect([
            ['id' => '1', 'title' => 'Meal day'],
        ]);
    }

    public function events()
    {
        return collect([
            [
                'id' => 1,
                'title' => 'Breakfast',
                'starts_at' => Carbon::today()->setTime(8, 0),
                'ends_at' => Carbon::today()->setTime(9, 0),
                'resource_id' => '1',
            ],
            [
                'id' => 2,
                'title' => 'Lunch',
                'starts_at' => Carbon::today()->setTime(12, 0),
                'ends_at' => Carbon::today()->setTime(14, 0),
                'resource_id' => '1',
            ],
            [
                'id' => 3,
                'title' => 'Dinner',
                'starts_at' => Carbon::today()->setTime(18, 0),
                'ends_at' => Carbon::today()->setTime(0, 0),
                'resource_id' => '1',
            ],
        ]);
    }

I was experiencing with the behaviour and it looks as follows:
when ends_at is less than starts_at, it flips it and looks for conflicting events. In case with 'Dinner' example, it looks for conflicting events from 0:00 till 18:00 and finds other two. If I set 'ends_at' to '13:00', it will conflict with only one event which is 'Lunch'.
To me, there are two things to implement:

make 0:00 to be treated as 23:59 when checking neighbours
throw exception if ends_at is less than starts_at (except 0:00)

repo: asantibanez/livewire-resource-time-grid


text:
Basic File Validation missing? "Image, Mp4, Mp3" etc.,

Basic File Validation missing? "Image, Mp4, Mp3" etc.,

Hello guys!
I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back
Link to my repo: create issue there and we'll discuss it.

authors: rebootcode sergeyglazyrindev

repo: asaskevich/govalidator


text:
All playback fails

I'm submitting a ...

[ x ] bug report
[ ] feature request
[ ] support request

General infomration
Browsing works, video playback fails. ("License update not successful".)
Prerequisites

[x] Are you running the latest version?
0.14.2

Description
Steps to Reproduce
Select a show and try to watch it.
Context (Environment)
Brand new Vero 4k running OSMC 2017.09-2, kernel 14.29-37, Kodi 18.0-ALPHA1
Running dpkg -l | grep mediacenter-osmc prints
ii  vero3-mediacenter-osmc               17.8-118                           armhf        Media Center package for OSMC
But I am running Kodi 18-
Installation

[x] I installed the plugin via zip from the Releases page

Operating System

[x] Linux (x86/x64)
[ ] OSX (x86/x64)
[ ] Windows (x86/x64)
[ ] Linux (ARM)
[ ] Android

Debug log
https://gist.github.com/felixyz/9bfdf0e50b85a681cf1359a63f659c65

Currently a bug setting the correct ESN for Android. Fix will be pushed this evening.

Fixed in 0.12.5, you might need to clear (empty & save) the ESN field in your settings

Sorry, still not working for me:
21:52:55.783 T:4113760816 WARNING: Previous line repeats 36 times.
21:52:55.783 T:4113760816  NOTICE: VideoPlayer::OpenFile: http://localhost:57149/manifest?id=80087549
21:52:55.784 T:3697239024  NOTICE: Creating InputStream
21:53:00.622 T:3746427888   ERROR: Traceback (most recent call last):
21:53:00.623 T:3746427888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
21:53:00.624 T:3746427888   ERROR:     self.process_request(request, client_address)
21:53:00.624 T:3746427888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
21:53:00.624 T:3746427888   ERROR:     self.finish_request(request, client_address)
21:53:00.624 T:3746427888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
21:53:00.625 T:3746427888   ERROR:     self.RequestHandlerClass(request, client_address, self)
21:53:00.625 T:3746427888   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__
21:53:00.625 T:3746427888   ERROR:     self.handle()
21:53:00.625 T:3746427888   ERROR:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
21:53:00.626 T:3746427888   ERROR:     self.handle_one_request()
21:53:00.627 T:3746427888   ERROR:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
21:53:00.627 T:3746427888   ERROR:     method()
21:53:00.628 T:3746427888   ERROR:   File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/MSLHttpRequestHandler.py", line 41, in do_POST
21:53:00.629 T:3746427888   ERROR:     self.wfile.write(base64.standard_b64decode(b64license))
21:53:00.629 T:3746427888   ERROR:   File "/usr/lib/python2.7/base64.py", line 93, in standard_b64decode
21:53:00.630 T:3746427888   ERROR:     return b64decode(s)
21:53:00.630 T:3746427888   ERROR:   File "/usr/lib/python2.7/base64.py", line 73, in b64decode
21:53:00.630 T:3746427888   ERROR:     return binascii.a2b_base64(s)
21:53:00.630 T:3746427888   ERROR: TypeError: must be string or buffer, not bool
21:53:00.634 T:3697239024   ERROR: AddOnLog: InputStream Adaptive: License update not successful (no keys)
21:53:00.634 T:3697239024   ERROR: AddOnLog: InputStream Adaptive: Initialize failed (SingleSampleDecrypter)
21:53:00.636 T:3697239024   ERROR: CVideoPlayer::OpenInputStream - error opening [http://localhost:57149/manifest?id=80087549]
21:53:00.637 T:3697239024  NOTICE: CVideoPlayer::OnExit()

With 0.12.6.
Again, I'm running on a Vero 4K (osmc).
I must admit I don't know how to clear (empty & save) the ESN field. In which settings? Or from CLI?

Navigate to the addons settings & there to the "Expert" session.
Just click on that ESN field & remove all chars. Then reboot Kodi or your device (just for the sake of safety) & it should work again.

I get exactly the same error using 0.12.7. I am also using a Vero 4k. Complete stacktrace:
19:18:44.505 T:3696784368   ERROR: Traceback (most recent call last): 19:18:44.505 T:3696784368   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock 19:18:44.505 T:3696784368   ERROR:     self.process_request(request, client_address) 19:18:44.505 T:3696784368   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request 19:18:44.506 T:3696784368   ERROR:     self.finish_request(request, client_address) 19:18:44.506 T:3696784368   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request 19:18:44.506 T:3696784368   ERROR:     self.RequestHandlerClass(request, client_address, self) 19:18:44.506 T:3696784368   ERROR:   File "/usr/lib/python2.7/SocketServer.py", line 655, in __init__ 19:18:44.506 T:3696784368   ERROR:     self.handle() 19:18:44.506 T:3696784368   ERROR:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle 19:18:44.506 T:3696784368   ERROR:     self.handle_one_request() 19:18:44.506 T:3696784368   ERROR:   File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request 19:18:44.506 T:3696784368   ERROR:     method() 19:18:44.506 T:3696784368   ERROR:   File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/MSLHttpRequestHandler.py", line 41, in do_POST 19:18:44.506 T:3696784368   ERROR:     self.wfile.write(base64.standard_b64decode(b64license)) 19:18:44.506 T:3696784368   ERROR:   File "/usr/lib/python2.7/base64.py", line 93, in standard_b64decode 19:18:44.506 T:3696784368   ERROR:     return b64decode(s) 19:18:44.506 T:3696784368   ERROR:   File "/usr/lib/python2.7/base64.py", line 73, in b64decode 19:18:44.506 T:3696784368   ERROR:     return binascii.a2b_base64(s) 19:18:44.506 T:3696784368   ERROR: TypeError: must be string or buffer, not bool 19:18:44.547 T:4016042992   ERROR: AddOnLog: InputStream Adaptive: License update not successful (no keys) 19:18:44.547 T:4016042992   ERROR: AddOnLog: InputStream Adaptive: Initialize failed (SingleSampleDecrypter)
Clearing the ESN field and rebooting did not help for me. Any other idea how to fix this? Thanks a lot!

authors: asciidisco felixyz martinpfannemueller


text:
ditaa diagram making asciidocFX unresponsive [mac osx high sierra]

I have been having to comment out ditaa diagrams in my .adoc because it's causing the program to become unresponsive.   If I leave it commented out, then comment it back in to publish on the command line it works fine:
Here is the snippet of code:
.{short} Lifecycle Environment
[ditaa,file="images/lifecycle.png"]
--
              +-------------+            +-------------+
              |             |            +             +
              |             |--Promote-->+ NON-PROD    +
              |             |            + Lifecycle   +
              |             |            + Environment +
              | Library     |            +             +
   --Pubish-->| Lifecycle   |            +-------------+
              | Environment |
              |             |            +-------------+
              |             |--Promote-->+             +
              |             |            + PROD        +
              +-------------+            + Lifecycle   +
                                         + Environment +
                                         +             +
                                         +-------------+

--

I have it commented out for now so I can get my writing done.  Here are some details about the installation and the OS:
AsciidocFX version 1.5.7 (that was fixed for High Sierra)
OS: MacOS 11.13.1
rvm: 1.29.3
java version: 9.0.1
asciidoctor-diagram: 1.5.6
asciidoctor: 1.5.6.1
ruby: 2.4.1p111
I do this compile the doc: asciidoctor-pdf -r asciidoctor-diagram  $*.adoc
That works fine, using vim to uncomment the ditaa part prior to uncommenting it.
Scott

I tried it now with v1.5.8. Do you still face with this issue?

authors: gearboxscott rahmanusta

repo: asciidocfx/AsciidocFX


text:
bottom margin is very small, especially with footnotes

This is related to https://github.com/asciidoctor/asciidoctor/issues/1712.
The bottom margin of an Asciidoctor document displayed via the Chrome extension is pretty small. If the document contains footnotes, the bottom margin shrinks even more drastically. Example screenshots are
at
https://github.com/ds26gte/scratchpad/blob/master/chrome-adoc-without-footnotes.png
https://github.com/ds26gte/scratchpad/blob/master/chrome-adoc-with-footnotes.png

The padding below the footnotes should match the padding below the last section when there is no footer. Something like:
#footnotes:last-child {
  padding-bottom: 1.25em;
}

The reason the spacing is tight by default is to avoid extra space between the footnotes and the footer. When the footer is taken away (such as in the Chrome extension), the space is too small.
I don't necessarily agree that the space is too small when there are no footnotes. But, obviously, that's a personal preference / design choice. I'll give it some more thought.

We may decide to put the proposed style change in the default stylesheet in core. However, since that is copied into this extension, we could add a temporary fix between Asciidoctor core upgrades.

@mojavelinux There is an explicit rule on _asciidoc.scss:
#footnotes .footnote:last-of-type {
  margin-bottom:0
}

If I read you correctly we need a dynamic css rule to add extra padding/margin when footer is disabled (and keep padding/margin 0 when footer is enabled) ?

authors: Mogztter ds26gte mojavelinux


text:
Set counter for [env.*]

I'd like to set the counter used to number theorems, etc by something like
   [env.theorem, counter=43]

I can access the value 43 in the example above via attrs['counter].  so I'd lke to do something like
caption_num = parent.document.counter("#{env_ref_prefix}-number", attrs['counter'].to_i)

However, this doesn't work.
per https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/document.rb#L485. Note tha I use the real counter in https://github.com/asciidoctor/asciidoctor-latex/blob/master/lib/asciidoctor/latex/environment_block.rb#L159 as
https://github.com/asciidoctor/asciidoctor-latex/blob/master/lib/asciidoctor/latex/environment_block.rb#L159

If you allow an explicit counter, then I would just take the value as is and not try to pass it through the built-in counter feature. Passing the counter value to the counter method only serves as a seed, so it's probably not what you want.

authors: jxxcarlson mojavelinux

repo: asciidoctor/asciidoctor-latex


text:
ValueError in webapp

This does not reproduce. Resolving.

repo: ascoderu/lokole


text:
azm v0.1.16 (with fix for GetGraph bug)

Includes https://github.com/aserto-dev/azm/pull/56

Pull Request Test Coverage Report for Build 10820091216
Details

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

Files with Coverage Reduction
New Missed Lines
%

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

Totals

Change from base Build 10814997722:
-0.1%

Covered Lines:
1307

Relevant Lines:
4633

💛  - Coveralls

authors: coveralls ronenh

repo: aserto-dev/topaz


text:
Two AutoDLLPlugin's overwrite each other

Trying to utilize this plugin and found that when you add two AutoDLLPlugins to the webpack config the last one wins in creating a manifest in .cache.
To reproduce add two plugins, and attempt a build.

Hi, @cgatian
Thanks for reporting, I also encountered this bug a few days ago.
It's top priority. I'll let you know when it's fixed.

BTW, If you don't mind, I'd really like to know what was your use case for more one instance of the plugin.

@asfktz we were considering migration to this plugin instead of the webpack-dll-bundles-plugin as it hasn't received much attention in the last 6 months,
The setup this webpack starter has basically outlines what we were trying to do.  They create two DLL bundles, one for polyfills and a second for vendor.  My understanding is, since DLLs should only really be used during development creating two instances really has no benefit. (Please correct me if I'm wrong)

I've anticipated this issue in https://github.com/asfktz/autodll-webpack-plugin/pull/13 but does not have a fixture yet. Adding a fixture for this functionality would be a good start so we can test it thoroughly. :)

@cgatian turns out that using DLL in production is not a bad idea.
I forked your project to better understand your use case. I don't see more than one instance of DllBundlesPlugin in there.
I do see two bundles, polyfills and vendor, but that should be no problem with AutoDllPlugin.
I see that you have separate configs for each environment,
having one instance in each should not be a problem because they run separately.
But it will trigger a rebuild currently. it will be fixed soon.
I plan to fix the multiple instances bug anyway.
I noticed that when I replace DllBundlesPlugin with AutoDllPlugin:
new AutoDllPlugin({
        debug: true,
        inject: true,
        context: helpers.root(),
        filename: '[name]_[hash].js',
        path: './dll',
        entry: {
          polyfills: [
            'core-js',
            'zone.js/dist/zone.js',
            'zone.js/dist/long-stack-trace-zone'
          ],
          vendor: [
            '@angular/platform-browser',
            '@angular/platform-browser-dynamic',
            '@angular/core',
            '@angular/common',
            '@angular/forms',
            '@angular/http',
            '@angular/router',
            '@angularclass/hmr',
            'rxjs',
          ]
        }
 }),

An error is thrown on npm start
....

======================================================================================
 46% building modules 303/306 modules 3 active ...rc/app/+detail/+child-detail/index.ts================================== ng-router-loader ==================================
Importer:    /Users/asafkatz/dev/angular-starter/src/app/+barrel/barrel.routes.ts
Raw Request: ./+child-barrel#ChildBarrelModule
Replacement: function() { return import('/Users/asafkatz/dev/angular-starter/src/app/+barrel/+child-barrel/index')  .then( function(module) { return module['ChildBarrelModule']; } ); }
======================================================================================
2454ms building modules
9ms sealing
0ms optimizing
0ms basic module optimization
4ms module optimization
 75% advanced module optimization
/Users/asafkatz/dev/angular-starter/node_modules/autodll-webpack-plugin/node_modules/webpack/lib/ModuleReason.js:27
			if(!this.module._chunks.has(oldChunk))
                          ^
TypeError: Cannot read property 'has' of undefined
    at ModuleReason.rewriteChunks (/Users/asafkatz/dev/angular-starter/node_modules/autodll-webpack-plugin/node_modules/webpack/lib/ModuleReason.js:27:27)
    at DelegatedModule.rewriteChunkInReasons (/Users/asafkatz/dev/angular-starter/node_modules/autodll-webpack-plugin/node_modules/webpack/lib/Module.js:169:20)
    at Compilation.compilation.plugin (/Users/asafkatz/dev/angular-starter/node_modules/webpack/lib/optimize/RemoveParentModulesPlugin.js:82:15)
    at Compilation.applyPluginsBailResult1 (/Users/asafkatz/dev/angular-starter/node_modules/tapable/lib/Tapable.js:120:27)
    at Compilation.seal (/Users/asafkatz/dev/angular-starter/node_modules/webpack/lib/Compilation.js:574:14)
    at /Users/asafkatz/dev/angular-starter/node_modules/webpack/lib/Compiler.js:493:16
    at /Users/asafkatz/dev/angular-starter/node_modules/tapable/lib/Tapable.js:225:11
    at _addModuleChain (/Users/asafkatz/dev/angular-starter/node_modules/webpack/lib/Compilation.js:481:11)
    at processModuleDependencies.err (/Users/asafkatz/dev/angular-starter/node_modules/webpack/lib/Compilation.js:452:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)
EXIT RUNTIME
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-starter@6.0.0 webpack-dev-server: `node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js "--config" "config/webpack.dev.js" "--open" "--progress" "--profile" "--watch" "--content-base" "src/"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-starter@6.0.0 webpack-dev-server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/asafkatz/.npm/_logs/2017-07-07T14_13_04_021Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-starter@6.0.0 server:dev: `npm run webpack-dev-server -- --config config/webpack.dev.js --open --progress --profile --watch --content-base src/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-starter@6.0.0 server:dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/asafkatz/.npm/_logs/2017-07-07T14_13_04_053Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-starter@6.0.0 start: `npm run server:dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-starter@6.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/asafkatz/.npm/_logs/2017-07-07T14_13_04_086Z-debug.log

I plan to investigate it.

@asfktz yes they can be used in production in very clever scenarios.  However, I believe when you're actually using them in production youre going to want to be very strategic in how the DLLs are built.  Something I dont should be totally automated by a package, but on a case by case basis.
Thanks for taking a look. 👍

An error is thrown on npm start

@asfktz I think because autodll-webpack-plugin depends on webpack v3, angular-starterkit using webpack v2 will fail in running npm start. My private project (webpack v2.4.1) also fail in running npm start (execute webpack-dev-server). but by updating to v3, script succeed.
/Users/notaehwan/modusign-client/node_modules/autodll-webpack-plugin/node_modules/webpack/lib/ModuleReason.js:27
			if(!this.module._chunks.has(oldChunk))
			                       ^

TypeError: Cannot read property 'has' of undefined
    at ModuleReason.rewriteChunks (/Users/notaehwan/modusign-client/node_modules/autodll-webpack-plugin/node_modules/webpack/lib/ModuleReason.js:27:27)
    at DelegatedModule.rewriteChunkInReasons (/Users/notaehwan/modusign-client/node_modules/autodll-webpack-plugin/node_modules/webpack/lib/Module.js:169:20)
    at Compilation.compilation.plugin (/Users/notaehwan/modusign-client/node_modules/webpack/lib/optimize/RemoveParentModulesPlugin.js:82:15)
    at Compilation.applyPluginsBailResult1 (/Users/notaehwan/modusign-client/node_modules/tapable/lib/Tapable.js:120:27)
    at Compilation.seal (/Users/notaehwan/modusign-client/node_modules/webpack/lib/Compilation.js:570:14)
    at /Users/notaehwan/modusign-client/node_modules/webpack/lib/Compiler.js:488:16
    at /Users/notaehwan/modusign-client/node_modules/tapable/lib/Tapable.js:225:11
    at _addModuleChain (/Users/notaehwan/modusign-client/node_modules/webpack/lib/Compilation.js:477:11)
    at processModuleDependencies.err (/Users/notaehwan/modusign-client/node_modules/webpack/lib/Compilation.js:448:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Hi @taehwanno,
Thanks for the insight!
Interesting, even if I set webpack as a peerDependency of autodll-webpack-plugin like so:
"peerDependencies": {
    "webpack": ">= 2.0.0"
}

I still get this error on angular-starterkit.
But like in your case, upgrading to webpack v3 solves it.
I believe that the problem is somewhere else because AutoDll only depends on webpack for creating a separate compiler for the DLL and the plugin itself (the part that required by the user's config) does not require webpack at all.
I'll dive into it to see what I can do to fix it from my side.
@cgatian also, wanted to let you know that your original issue with the multiple instances is solved by 0.1.0

@taehwanno are you using awesome-typescript-loader?

are you using awesome-typescript-loader?

Nope. When I retry autodll-webpack-plugin with v0.2.1 in my private project, script succeeds without errors.

@taehwanno oh, that's good news (:

@cgatian is updating to webpack v3 an option for you?

I was trying this in webpack 3. Haven't tried since you released the new
version.
On Wed, Jul 12, 2017, 10:38 AM Asaf Katz notifications@github.com wrote:

@cgatian https://github.com/cgatian is updating to webpack v3 an option
for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/asfktz/autodll-webpack-plugin/issues/30#issuecomment-314789777,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABq8agypnYWP8QGKxxBUwt7vo3hugGzKks5sNNpIgaJpZM4OP6OR
.

@cgatian I already did it in my fork, so I created a PR for you to use if you like:
https://github.com/AngularClass/angular-starter/pull/1828

Just want to add that double instances of the plugin could also be relevant when using the multi compiler feature of Webpack. We use that for efficient SSR (universal) bundling. See also https://github.com/asfktz/autodll-webpack-plugin/issues/43
I would be fine to pass over some specific naming for the caching/output. I does the same already for webpacks new Cache-Loader:
{
    loader: "cache-loader",
    options: {
      cacheDirectory: resolve(ROOT, `.cache/loader-${CACHE_HASH}-${config.target}-${config.env}`)
    }
  }

authors: asfktz cgatian swernerx taehwanno viankakrisna

repo: asfktz/autodll-webpack-plugin


text:
ID Token Validation in OIDC flows.

Description:
In the oidc-sdk, its need to validate the ID Token as per the openid-connect spec [1]. Listing the points below for the ease of reference.

If the ID Token is encrypted, decrypt it using the keys and algorithms that the Client specified during Registration that the OP was to use to encrypt the ID Token. If encryption was negotiated with the OP at Registration time and the ID Token is not encrypted, the RP SHOULD reject it.
The Issuer Identifier for the OpenID Provider (which is typically obtained during Discovery) MUST exactly match the value of the iss (issuer) Claim.
The Client MUST validate that the aud (audience) Claim contains its client_id value registered at the Issuer identified by the iss (issuer) Claim as an audience. The aud (audience) Claim MAY contain an array with more than one element. The ID Token MUST be rejected if the ID Token does not list the Client as a valid audience, or if it contains additional audiences not trusted by the Client.
If the ID Token contains multiple audiences, the Client SHOULD verify that an azp Claim is present.
If an azp (authorized party) Claim is present, the Client SHOULD verify that its client_id is the Claim Value.
If the ID Token is received via direct communication between the Client and the Token Endpoint (which it is in this flow), the TLS server validation MAY be used to validate the issuer in place of checking the token signature. The Client MUST validate the signature of all other ID Tokens according to JWS [JWS] using the algorithm specified in the JWT alg Header Parameter. The Client MUST use the keys provided by the Issuer.
The alg value SHOULD be the default of RS256 or the algorithm sent by the Client in the id_token_signed_response_alg parameter during Registration.
If the JWT alg Header Parameter uses a MAC based algorithm such as HS256, HS384, or HS512, the octets of the UTF-8 representation of the client_secret corresponding to the client_id contained in the aud (audience) Claim are used as the key to validate the signature. For MAC based algorithms, the behavior is unspecified if the aud is multi-valued or if an azp value is present that is different than the aud value.
The current time MUST be before the time represented by the exp Claim.
The iat Claim can be used to reject tokens that were issued too far away from the current time, limiting the amount of time that nonces need to be stored to prevent attacks. The acceptable range is Client specific.
If a nonce value was sent in the Authentication Request, a nonce Claim MUST be present and its value checked to verify that it is the same value as the one that was sent in the Authentication Request. The Client SHOULD check the nonce value for replay attacks. The precise method for detecting replay attacks is Client specific.
If the acr Claim was requested, the Client SHOULD check that the asserted Claim Value is appropriate. The meaning and processing of acr Claim Values is out of scope for this specification.
If the auth_time Claim was requested, either through a specific request for this Claim or by using the max_age parameter, the Client SHOULD check the auth_time Claim value and request re-authentication if it determines too much time has elapsed since the last End-User authentication.

Need to test whether each of above points are covered by the SDK flow.
[1] - https://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation

If the ID Token is encrypted, decrypt it using the keys and algorithms that the Client specified during Registration that the OP was to use to encrypt the ID Token. If encryption was negotiated with the OP at Registration time and the ID Token is not encrypted, the RP SHOULD reject it.
Encrypted ID Tokens are not supporting ATM. Hence this point is NA as of now. Adding the support of encrypted ID Tokens are tracked with https://github.com/asgardio/asgardio-java-oidc-sdk/issues/3.

Verify the Issuer Identifier for the OpenID Provider exactly matches the value of the iss (issuer) Claim.
Verified manually.

The Client MUST validate that the aud (audience) Claim contains its client_id value registered at the Issuer identified by the iss (issuer) Claim as an audience. The aud (audience) Claim MAY contain an array with more than one element. The ID Token MUST be rejected if the ID Token does not list the Client as a valid audience, or if it contains additional audiences not trusted by the Client.

Verification for, "The Client MUST validate that the aud (audience) Claim contains its client_id value registered at the Issuer identified by the iss (issuer) Claim as an audience." , is in place at https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/src/354fd08849407cb5b1fe26026c01bba3e647c096/src/main/java/com/nimbusds/openid/connect/sdk/validators/IDTokenClaimsVerifier.java#lines-186. Tested manually and confirmed.

If the ID Token contains multiple audiences, the Client SHOULD verify that an azp Claim is present.

Verification is in place at https://github.com/ChamathNS/asgardio-java-oidc-sdk/blob/324e1c62bff52958b611527674cda6746fe531c2/io.asgardio.java.oidc.sdk/src/main/java/io/asgardio/java/oidc/sdk/OIDCManagerImpl.java#L249. Tested manually and confirmed.

If an azp (authorized party) Claim is present, the Client SHOULD verify that its client_id is the Claim Value.

Verification is in place at https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/src/368d830e49f0f0a30cee7ae80c6bedcdb8ebfa49/src/main/java/com/nimbusds/openid/connect/sdk/validators/IDTokenClaimsVerifier.java#lines-202. Tested manually and confirmed.

If the ID Token is received via direct communication between the Client and the Token Endpoint (which it is in this flow), the TLS server validation MAY be used to validate the issuer in place of checking the token signature. The Client MUST validate the signature of all other ID Tokens according to JWS [JWS] using the algorithm specified in the JWT alg Header Parameter. The Client MUST use the keys provided by the Issuer.

Verification is in place at https://bitbucket.org/connect2id/nimbus-jose-jwt/src/f35500971243460a1e044357f04202e626c4825a/src/main/java/com/nimbusds/jwt/proc/DefaultJWTProcessor.java#lines-383. Tested manually and confirmed.

The alg value SHOULD be the default of RS256 or the algorithm sent by the Client in the id_token_signed_response_alg parameter during Registration.
This rule needs to be handled by the IdP.

If the JWT alg Header Parameter uses a MAC based algorithm such as HS256, HS384, or HS512, the octets of the UTF-8 representation of the client_secret corresponding to the client_id contained in the aud (audience) Claim are used as the key to validate the signature. For MAC based algorithms, the behavior is unspecified if the aud is multi-valued or if an azp value is present that is different than the aud value.

The current time MUST be before the time represented by the exp Claim.

Verification is in place at https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/src/368d830e49f0f0a30cee7ae80c6bedcdb8ebfa49/src/main/java/com/nimbusds/openid/connect/sdk/validators/IDTokenClaimsVerifier.java#lines-224. Tested manually and confirmed.

The iat Claim can be used to reject tokens that were issued too far away from the current time, limiting the amount of time that nonces need to be stored to prevent attacks. The acceptable range is Client specific.

If a nonce value was sent in the Authentication Request, a nonce Claim MUST be present and its value checked to verify that it is the same value as the one that was sent in the Authentication Request. The Client SHOULD check the nonce value for replay attacks. The precise method for detecting replay attacks is Client specific.

Validation is in place at https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions/src/368d830e49f0f0a30cee7ae80c6bedcdb8ebfa49/src/main/java/com/nimbusds/openid/connect/sdk/validators/IDTokenClaimsVerifier.java#lines-248. Tested manually and confirmed.

If the acr Claim was requested, the Client SHOULD check that the asserted Claim Value is appropriate. The meaning and processing of acr Claim Values is out of scope for this specification.

If the auth_time Claim was requested, either through a specific request for this Claim or by using the max_age parameter, the Client SHOULD check the auth_time Claim value and request re-authentication if it determines too much time has elapsed since the last End-User authentication.

authors: ChamathNS darshanasbg

repo: asgardio/asgardio-java-oidc-sdk


text:
window_size = -1 gives error

when i give window size 256 or 416 it is fine but when i give -1 it gives an error

With a 1920x1080 png I cannot reproduce the error, can you give more details? (e.g., OOM, or runtime error)

Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running Add node. Name:'Add_20' Status Message: Add_20: left operand cannot broadcast on dim 3 LeftShape: {1,64,972,972}, RightShape: {1,64,973,973}
By the way thanks for the code!

@maylad31 Thanks for spotting the bug! I have fixed it. and you can upgrade to 0.1.6 to test.

repo: ashawkey/ddddsr


text:
{"id":"go.micro.client","code":500,"detail":"service student_service: not found","status":"Internal Server"}

go-micro v2, Use ETCD as the registry
Check that the service is registered with the ETCD。But the client cannot find the service

This should not an issue of go-micro, check your services for spelling errors or wrong config.

authors: YJiWei xpunch

repo: asim/go-micro


text:
Removes service name from circle.yml coveralls command

Coveralls is complaining about missing job_id the documentation says you can use either service_name and job_id or a token, will leave just the token to try to fix that.

Sorry didn't work out as expected.

repo: aspic/bot


text:
Just had my mind blown.

.Net Core looks sooo good, but it's difficult to absorb all in one go.
Thank you for making the EF lightweight.
Just installed VS2019 and created my first .Net Core project. What a clean, professional it looks too. It all looks so impressive.
I am not a great fan of HTML tag-based 'generators' like Razor. I prefer to work in JavaScript. On the other hand I am looking for productivity and flexibility when defining SPAs with complex logic. I am almost certain this is a new journey.

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

ID: ad8c13e7-78e6-cf9a-e7cb-3215df5fd1c4
Version Independent ID: a3c1d2a6-625a-3409-120d-8372230a8196
Content: Introduction to ASP.NET Core
Content Source: aspnetcore/index.md
Product: aspnet-core
Technology: aspnetcore
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Thanks for the comment.


text:
[Blazor] Add guidance on how to enable CSP on blazor server-side projects

We looked into enabling this on the templates but deemed it too hard.
Instead we want to offer some basic guidance on how to use CSP within a project to protect against XSS

Some notes
As part of the security model for blazor server-side we are exploring how feasible is to use CSP to protect against XSS. CSP is a general security mechanism that informs the browser of what are valid sources for different content items loaded on a page or actions taken by a component on a page. For example, CSP can limit the the sources for scripts, stylesheets, images, etc. or limit the origins to which outgoing requests can be sent through different methods.
CSP allows a developer to specify one or more policies that get applied to the document. These policies can be specified either on the Content-Security-Policy header or on the meta tag. A document needs to pass all specified policies to be correct/valid, this means policies don't combine, in any form, but that aspects of a policy can subsume aspects of other policies.
Policies are evaluated while the document is loading. The user-agent (browser) inspect every candiate source and determines if it meets the policy. When it does not, it simply blocks loading that element. For example, a policy might not allow third party scripts in a document. When a document contains a script (for example in the src attribute of a script tag) to a third party origin, the browser sees that it is not included on the policy and prevents it from loading.
CSP in the context of Blazor.

We can apply CSP to blazor to force users to white-list any potential source for XSS, like third party scripts, common in ad technology. In addition to CSP we want to use other things like SRI on the scripts in the page to prevent a roge script from injecting malicious code.
The way we should apply CSP in blazor is through the use of the meta tag on the host page in the templates. CSP on the meta tag doesn't support the full range of options but it supports the ones we need, and by having the policy in the template its easy for customers to modify and adapt to suit their needs.

Challenges with CSP

CSP, while incredibly powerfull is not something easy to undertand, so enabling it in our templates will require some documentation/guidance on how to create and test a good policy.
Errors apprear in the blowser console and are usually easy to understand. Chrome gives information about elements that don't comply with the policy and indicate how to modify the policy to allow for the blocked item.
Some of the techniques used in ASP.NET Core and blazor server-side are problematic with CSP. Specifically:

The way we craft the UI for disconneced scenarios causes CSP issues due to inline scripting.
The way we check for fallback sources for CSS also causes issues due to inline scripting.

The policy only works on browsers that support all included directives, for example. Edge doesn't support block-all-mixed-content

A minimal policy to use with our templates

We could enable a policy to use with blazor server-side (and any other template we care about) as follows:

<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content; upgrade-insecure-requests;">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src data: https://*; script-src https://stackpath.bootstrapcdn.com/ 'sha256-34WLX60Tw3aG6hylk0plKbZZFXCuepeQ6Hu7OqRf8PI=' 'self'; style-src https://stackpath.bootstrapcdn.com/ 'unsafe-inline' 'self';">

There are actually two policies (the document needs to comply with both):

The first policy relates to HTTPS, prevents loading mixed content and tries to upgrade HTTP requests to HTTPS automatically. This is important to guarantee the integrity of the scripts and stylesheets loaded in the page. (HTTP doesn't provide any integrity guarantee)
The second policy deals with the content and establishes the following:

default-src 'self': Unless specified otherwise, the only source valid for content is our same origin.
img-src: Images can be loaded from data urls and any https source. This is required for bootstrap to work.
script-src 'self' https://stackpath.bootstrapcdn.com/ 'sha256-34WLX60Tw3aG6hylk0plKbZZFXCuepeQ6Hu7OqRf8PI=';: Scripts can be loaded from our origin, the Bootstrap CDN or be an accepted inline script. The hash corresponds to the script inlined to perform fallback detection.
style-src https://stackpath.bootstrapcdn.com/ 'unsafe-inline' 'self': Stylesheets can be loaded from our origin, the Bootrap CDN or inlined. The inline piece is the most troublesome and its caused by how we craft the UI for the reconnect case. We should consider changing it to something else that doesn't require inline styling.

Compatibility

block-all-mixed-content: All but Edge/IE

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/block-all-mixed-content

upgrade-insecure-requests: All but Edge/IE

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/upgrade-insecure-requests

img-src: All but IE

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/img-src

script-src: All but IE

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src
https://www.caniuse.com/#feat=contentsecuritypolicy2

style-src: All but IE

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src

Conclusion
CSP is a good fit for blazor to protect the source and target origins for content, so it is good to prevent the leackage of circuit ids. That said, CSP is complex to handle to understand and requires browser support, which is spotty across browsers. For that reason, I think we should enable it in our templates but not use it as the sole mechanism to protect circuit ids, as we want to allow users to remove the policy if its causing issues with their apps.

On the off-chance you haven’t seen it before, it might be worth running the suggested policies though Google’s CSP validator. It complains about use of a host whitelist and a missing object-src. I understand that neither of those would be a high risk in this case but I just wanted to make the suggestion. Don’t feel obligated to respond if this is already something that’s been considered. 😄

@serpent5 Thanks that's a neat tool. The above policy is just an example and the result of me tinkering a bit. There is something more tightened that can likely be crafted.

Plz correct the labels if I guessed wrong (e.g., this is for Pre6).

@javiercn can you add the missing content here, so @guardrex can start working on this. I see you've got a lot covered here but also mentioned that some more need to be done here.

I can probably work out the draft from what's here. I feel confident that there's time to get this done before the holidays. :gift:🎅🦌
@javiercn Recommend that u add anything else that you think would be helpful. If your remarks ☝ cover it, then I'll take it from there.

authors: guardrex javiercn mkArtakMSFT serpent5


text:
Need to involve a function that is added at runtime, but getting a failed to compile error.

I have a asp.net core 3 react redux template based app.
I am using this app from a mobile app that knows how to inject javascript functions into the webview in order to interact between native C# code and the webview javascript code.
In order to do this I need a global method that the rest of the pages javascript can access that inside of it can then call the injected javascript from the mobile app.
Here is my global javascript. it is contained in a file called jsinteraction.js
export function invokeCSCode(data){
if (invokeCSharpAction)
invokeCSharpAction(data);
else
console.log('invokeCSharpAction not found');
}
the problem I am having is that when I run this web site and then connect to it from my mobile app I get what looks like an ESLint error and the whole page just shows that error. it says:
Failed to compile
./src/helpers/jsinteraction.js
Line 3:  'invokeCSharpAction' is not defined  no-undef
Line 4:  'invokeCSharpAction' is not defined  no-undef
Search for the keywords to learn more about each error.
This error occurred during the build time and cannot be dismissed.
The invokeCSharpAction won't exist during compile building of the app, but will once the mobile app has injected its code.
I thought using if (invokeCSharpAction) would be able to handle runtime detection.
I have also tried code I found in searching for it like this:
if (typeof invokeCSharpAction === function)
but I get the same error.
How do I do this?

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

ID: 7264db1b-55ec-e419-d2c4-bd4fe64922a2
Version Independent ID: 720995d2-006a-3573-4868-d253c8a2acc7
Content: Use the React-with-Redux project template with ASP.NET Core
Content Source: aspnetcore/client-side/spa/react-with-redux.md
Product: aspnet-core
Technology: aspnetcore-clientside
GitHub Login: @SteveSandersonMS
Microsoft Alias: scaddie

Hello! Thanks for contacting us. This sounds like a general question about using ASP.NET Core. While we try to look at and respond to all issues, for questions like this we recommend posting to a community support group like Stack Overflow with the asp.net-core tag.

authors: Rick-Anderson tpitman


text:
UriHelper cannot be used to navigate to non-Blazor URIs in server-side

Repro
Create a new server-side Blazor app (with auth).
Try to use IUriHelper.NavigateTo("Identity/Account/Login") (make a button).
It will go to the Not Found page instead of doing an actual navigation. However, making an <a href> with the same URL will navigate to the login page.
Using preview 6

Does the Router have a NotFoundContent set? We specifically choose to show you the NotFoundContent if the navigation was started programatically (via NavigateTo) and the route that could not be addressed.
The pivot here is that NavigateTo is meant for navigating within the component route-space. You could use NavigateTo("...", force) to force a browser redirect without the router being involved.

Ah sorry. I'm a blazor noob. Thanks for the help.

authors: pranavkm rynowak

repo: aspnet/AspNetCore


text:
Compat testing of popular libraries for 3.0

As part of 3.0, there have been a number of changes that may impact existing libraries that customers are using today. There of course also could be unintentional changes that end up breaking some of these libraries. It would be good to know about these sooner rather than later in order to help address the issues (e.g. fix the unintended break, send a PR to the library to make it work in 3.0, log an issue with the library with details, etc.).
To that end, we've compiled a list of popular libraries used by ASP.NET Core projects in (somewhat) descending popularity order. The list was constructed using a number of data sources including NuGet package download counts, VS telemetry, Twitter interactions, and team assumptions/knowledge. Any library that was determined to have usage by less than approx. 1% of the ASP.NET Core user base was excluded. Note that the library names used here are actually the assembly names which in some cases do not match the NuGet package name.
Work description
For each library in this list, the idea is to complete a basic "Hello World" scenario applicable for that library using the latest available version, and record one of the following outcomes:

No issue found, library works in an ASP.NET Core 3.0 project
Library needs to react to 3.0 change, issue logged on library project
Library needs to react to 3.0 change, PR sent to library project
Unintended ASP.NET Core change causes library issues, issue logged/PR sent to ASP.NET Core to fix the issue and restore compatibility with library

Library list

[ ] Swashbuckle.AspNetCore
[ ] AutoMapper
[ ] Serilog
[ ] Dapper
[ ] MessagePack
[ ] IdentityModel
[ ] NLog
[ ] Autofac
[ ] IdentityServer4
[ ] log4net
[ ] Polly
[ ] FluentValidation.AspNetCore
[ ] Npgsql
[ ] StackExchange.Redis
[ ] Microsoft.AspNetCore.Mvc.Versioning
[ ] RabbitMQ.Client
[ ] MongoDB.Driver
[ ] RestSharp
[ ] MySQL.Data
[ ] AWSSDK.Core
[ ] Hangfire.Core
[ ] MySQLConnector
[ ] MediatR
[ ] Npgsql.EntityFrameworkCore.PostgreSQL
[ ] Pomelo.EntityFrameworkCore.MySQL
[ ] Elasticsearch.Net
[ ] CsvHelper
[ ] Microsoft.Azure.ServiceBus
[ ] Oracle.ManagedDataAccess
[ ] NSwag.AspNetCore
[ ] protobuf-net
[ ] Microsoft.OData.Core
[ ] nodatime
[ ] MiniProfiler.AspNetCore
[ ] Ocelot
[ ] MySQL.Data.EntityFrameworkCore
[ ] Microsoft.AspNetCore.OData
[ ] Consul
[ ] ServiceStack.Text
[ ] Microsoft.Azure.Storage.Common
[ ] Microsoft.Azure.EventHubs
[ ] NWebsec.AspNetCore.Middleware
[ ] Confluent.Kakfa
[ ] SimpleInjector
[ ] MassTransit

Putting in area-infrastructure I guess? One problem we have in our "dispatching" logic is we don't have a great "cross-cutting" bucket to get it off the dispatch queue.

I hereby certify this as good.

@davidfowl I know you did a bunch of work here - should this issue be closed now?

Yes, actually @glennc modified the spread sheet and we ended up chasing down a bunch of deps.

authors: DamianEdwards Pilchie anurse davidfowl rynowak


text:
Blazor - control of repeated component

I may be asking a dumb question but i need to make sure i'm not missing something here.
In a certain list I have a component that is required to repeat itself in a foreach loop.
I need to control the component in each row seperately, when an operation occurs outside that specific component but in that row.
It can obviously achieved by creating a templated row component but I am trying to determine whether that can be done without creating additional components.
Some Code
@foreach (var data in pageModel.list)
{
    @code
    {
        callAttemptComponent callAttemptComponent1;
        statusSelectComponent statusSelectComponent1;
    }

         selectedListItem(data))">#@data.ID
         selectedListItem(data))">@data.fullName
        @data.phone
        @data.zipCode
        @data.areaName
        <tagsFormat tags="@data.wcms_tags" />
        @Helpers.DateFormat(data.creationDate, "short-date-time")

            <callAttemptComponent @ref="callAttemptComponent1" @key="@data.ID" leadID="@data.ID" count="@data.callAttemptsCount" btnPressed="@callAttemptEvent" />

            <statusSelectComponent @ref="statusSelectComponent1" @key="@data.ID" leadStatusList="@leadStatusList" leadID="@data.ID" statusID="@data.statusID" statusChanged="@statusChangedEvent" />

}

Thanks for contacting us, @aiqoo.
It's not really clear what your'e trying to do? Please describe the scenario and the problem you're facing in more details.

I don't think @code is supposed to be nested inside other things on a page or component, is it?

Thanks for the help
i want to initialize the callAttemptComponent
when status change inside statusSelectComponent
It is a simple and trivial thing when two components are present on a page using an event I change their state,,
But when I have a pair of components that should affect each other
When they are repeated in a loop I can not get control and change their state,
@code
The reason I put the @code in the loop its because I thought that it would be set in the scoop every run and that way I would gain control

I solved this by add an instance of component object to the list and then I assigned to each component a reference of its own.
The question is whether it has a price in terms of performance and speed.
And is there another way to make a connection between two components that are repeated in foreach?

Looks like allowing @code in another block is an issue, and I've filed a separate issue to handle that.
Coming back to @aiqoo 's question regarding performance, you'll have to measure it for yourself. We have a high-level issue for perf, but it's not specific to a single scenario: #10449

authors: aiqoo egil mkArtakMSFT


text:
Vertical Scroll On All Pages In Default Razor Project Using .Net Core 2.2 and Visual Studio 2017 Professional Version 15.9.13

Issue Description
I just noticed that there is a vertical scroll (shown on the right side) on all pages. I checked this on another machine and new project thinking i may have changed something and it still shows on project created using Core 2.2.
To confirm i created a another project on first machine this time using Core 2.1 and it does not shows the vertical scroll.
To Reproduce
Steps to reproduce the behavior:

Using this version of ASP.NET Core '2.2' and VS 2017 15.9.13
Create a web project using Asp.Net Core 2.2 and default Razor Project
Run the project

Expected behavior
There should be no scroll bar on a default project (no code or css changes done !)
Screenshots
If applicable, add screenshots to help explain your problem.

I think this was recently fixed. Some CSS style was too tall by 1px or something like that.

Assuming this is the same issue:

Original issue: https://github.com/aspnet/AspNetCore/issues/7305
Fixed in https://github.com/aspnet/AspNetCore/pull/8870

Thanks for contacting us, @satbirbaidwan.
This is fixed, as per @Eilon 's response above.
We won't be patching this for ASP.NET Core 2.2 release.

authors: Eilon mkArtakMSFT satbirbaidwan


text:
Performance regression: Json

A performance regression has been detected for the following scenarios:

Scenario
Environment
Date
Old RPS
New RPS
Change
Deviation

Json
Linux, h2, KestrelSockets
2019-09-13 06:44:18Z
402711
372805
-7.43 %
-2.04 σ

Before versions:
Microsoft.AspNetCore.App 3.0.0-rc2.19459.5
Microsoft.NetCore.App 5.0.0-alpha1.19404.5
After versions:
Microsoft.AspNetCore.App 3.0.0-rc2.19461.7
Microsoft.NetCore.App 5.0.0-alpha1.19404.5
Commits:
Microsoft.AspNetCore.App
https://github.com/aspnet/AspNetCore/compare/e090a0ff33f6aa4721c0678358075515dabe08ab...33120b6093eb5ee9ecf603f56e80a6a7d5a25f07
Logs

CentOS

authors: aspnet-hello sebastienros


text:
Scenarios are not running: BlazorBasic, BlazorFormInput, ConnectionClose, ConnectionClose, DbFortunesDapper ...

Some scenarios have stopped running:

Scenario
Environment
Last Run

BlazorBasic
Linux, Cloud, http, KestrelSockets
2019-10-31 20:52:47Z

BlazorFormInput
Linux, Cloud, http, KestrelSockets
2019-10-31 20:53:42Z

ConnectionClose
Linux, Cloud, http, KestrelSockets
2019-10-31 20:50:03Z

ConnectionClose
Linux, Cloud, https, KestrelSockets
2019-10-31 20:50:24Z

DbFortunesDapper
Windows, Cloud, http, KestrelSockets
2019-10-31 21:41:33Z

DbFortunesEf
Windows, Cloud, http, KestrelSockets
2019-10-31 21:42:20Z

DbFortunesRaw
Windows, Cloud, http, KestrelSockets
2019-10-31 21:40:46Z

DbMultiQueryDapper
Windows, Cloud, http, KestrelSockets
2019-10-31 21:31:39Z

DbMultiQueryEf
Windows, Cloud, http, KestrelSockets
2019-10-31 21:32:29Z

DbMultiQueryRaw
Windows, Cloud, http, KestrelSockets
2019-10-31 21:30:52Z

DbMultiUpdateDapper
Windows, Cloud, http, KestrelSockets
2019-10-31 21:36:40Z

DbMultiUpdateEf
Windows, Cloud, http, KestrelSockets
2019-10-31 21:37:28Z

DbMultiUpdateRaw
Windows, Cloud, http, KestrelSockets
2019-10-31 21:35:53Z

DbSingleQueryDapper
Windows, Cloud, http, KestrelSockets
2019-10-31 21:26:45Z

DbSingleQueryEf
Windows, Cloud, http, KestrelSockets
2019-10-31 21:27:36Z

DbSingleQueryRaw
Windows, Cloud, http, KestrelSockets
2019-10-31 21:25:59Z

EndpointPlaintext
Windows, Cloud, http, KestrelSockets
2019-10-31 21:03:25Z

Json
Windows, Cloud, http, KestrelSockets
2019-10-31 21:08:55Z

Json
Windows, Cloud, https, KestrelSockets
2019-10-31 21:15:56Z

Json
Windows, Cloud, https, HttpSys
2019-10-31 21:16:42Z

Json
Windows, Cloud, h2, KestrelSockets
2019-10-31 21:19:48Z

Json
Windows, Cloud, h2c, KestrelSockets
2019-10-31 21:20:35Z

Json
Windows, Cloud, http, IISInProcess
2019-10-31 21:49:04Z

JsonPlatform
Windows, Cloud, http, KestrelSockets
2019-10-31 21:07:52Z

MemoryCachePlaintext
Windows, Cloud, http, KestrelSockets
2019-10-31 21:21:21Z

MemoryCachePlaintextSetRemove
Windows, Cloud, http, KestrelSockets
2019-10-31 21:22:08Z

MvcDbFortunesDapper
Windows, Cloud, http, KestrelSockets
2019-10-31 21:43:59Z

MvcDbFortunesEf
Windows, Cloud, http, KestrelSockets
2019-10-31 21:44:46Z

MvcDbFortunesRaw
Windows, Cloud, http, KestrelSockets
2019-10-31 21:43:07Z

MvcDbMultiQueryDapper
Windows, Cloud, http, KestrelSockets
2019-10-31 21:34:11Z

MvcDbMultiQueryEf
Windows, Cloud, http, KestrelSockets
2019-10-31 21:35:02Z

MvcDbMultiQueryRaw
Windows, Cloud, http, KestrelSockets
2019-10-31 21:33:22Z

MvcDbMultiUpdateDapper
Windows, Cloud, http, KestrelSockets
2019-10-31 21:39:11Z

MvcDbMultiUpdateEf
Windows, Cloud, http, KestrelSockets
2019-10-31 21:40:00Z

MvcDbSingleQueryDapper
Windows, Cloud, http, KestrelSockets
2019-10-31 21:29:11Z

MvcDbSingleQueryEf
Windows, Cloud, http, KestrelSockets
2019-10-31 21:30:02Z

MvcDbSingleQueryRaw
Windows, Cloud, http, KestrelSockets
2019-10-31 21:28:23Z

MvcJson
Windows, Cloud, http, KestrelSockets
2019-10-31 21:09:42Z

MvcJson2k
Windows, Cloud, http, KestrelSockets
2019-10-31 21:11:16Z

MvcJsonInput2k
Windows, Cloud, http, KestrelSockets
2019-10-31 21:12:50Z

MvcJsonNet
Windows, Cloud, http, KestrelSockets
2019-10-31 21:10:29Z

MvcJsonNet2k
Windows, Cloud, http, KestrelSockets
2019-10-31 21:12:03Z

MvcJsonNetInput2k
Windows, Cloud, http, KestrelSockets
2019-10-31 21:13:37Z

MvcPlaintext
Windows, Cloud, http, KestrelSockets
2019-10-31 21:01:10Z

Plaintext
Windows, Cloud, http, KestrelSockets
2019-10-31 20:58:07Z

Plaintext
Windows, Cloud, http, HttpSys
2019-10-31 21:04:11Z

Plaintext
Windows, Cloud, https, KestrelSockets
2019-10-31 21:14:25Z

Plaintext
Windows, Cloud, https, HttpSys
2019-10-31 21:15:10Z

Plaintext
Windows, Cloud, http, IISInProcess
2019-10-31 21:45:34Z

Plaintext
Windows, Cloud, http, IISOutOfProcess
2019-10-31 21:46:24Z

PlaintextNonPipelined
Windows, Cloud, http, KestrelSockets
2019-10-31 20:58:53Z

PlaintextNonPipelined
Windows, Cloud, https, KestrelSockets
2019-10-31 21:17:30Z

PlaintextNonPipelined
Windows, Cloud, h2, KestrelSockets
2019-10-31 21:18:16Z

PlaintextNonPipelined
Windows, Cloud, h2c, KestrelSockets
2019-10-31 21:19:02Z

PlaintextNonPipelined
Windows, Cloud, http, IISInProcess
2019-10-31 21:47:22Z

PlaintextNonPipelined
Windows, Cloud, http, IISOutOfProcess
2019-10-31 21:48:13Z

PlaintextNonPipelinedLogging
Linux, Cloud, http, KestrelSockets
2019-10-31 20:51:08Z

PlaintextNonPipelinedLoggingNoScopes
Linux, Cloud, http, KestrelSockets
2019-10-31 20:51:52Z

PlaintextPlatform
Windows, Cloud, http, KestrelSockets
2019-10-31 20:55:29Z

ResponseCachingPlaintextCached
Windows, Cloud, http, KestrelSockets
2019-10-31 21:22:53Z

ResponseCachingPlaintextRequestNoCache
Windows, Cloud, http, KestrelSockets
2019-10-31 21:24:25Z

ResponseCachingPlaintextResponseNoCache
Windows, Cloud, http, KestrelSockets
2019-10-31 21:23:38Z

ResponseCachingPlaintextVaryByCached
Windows, Cloud, http, KestrelSockets
2019-10-31 21:25:12Z

StaticFiles
Windows, Cloud, http, KestrelSockets
2019-10-31 21:06:31Z

Logs

@sebastienros can you take a look?

authors: aspnet-hello javiercn


text:
No Individual User Accounts auth option in ASP.NET Core Web API template

I've done this solution to get the feature decribed at this link:
https://stackoverflow.com/questions/41061926/no-individual-user-accounts-auth-option-in-asp-net-core-web-api-template
But when I installed VS Preview as suggested side-by-side with VS 2017, I don't find this feature! Why? and how to solve please?
The situation for me is like this:
https://i.imgur.com/0LYUTRv.png

It will come just after 2.2 as part of the Identity Server integration, until then there's no support.

Do you mean it will be supported in core version 2.2 or it needs third party one as identity server 4?
Why did you close the issue before getting my answer?

@MasHero7 I was just about to ask why @blowdart @shanselman is closing the issues before they are resolved.
They need new managers to resolve the User Management - blowdart does not seem motivated I have posted many times showing how many people have been asking

@MasHero7 See https://github.com/aspnet/Identity/issues/2048

authors: MasHero7 blowdart papyr


text:
build failed for VS2017

I have downloaded the project from the repository and try to build in the local machine,
below is the error it is showing

can you let me know what may be the issue in my machine or any missing file in the framework?

My guess is it's using an older version of the .NET Core Sdk. I'd start by following the Building from Source instructions here. Feel free to reopen if you continue seeing the error after you've tried the instructions

authors: avinashkandukuri pranavkm