TSLint and ESLint both running on JS file (in non-TS project)

VSCode Version: Code - Insiders 1.8.0-insider (daa71ca002722c2778dc30bba151d7316e3c5e54, 2016-12-02T07:05:15.686Z)
OS Version: Darwin x64 16.1.0
Extensions:

Extension
Author
Version

material-icon-theme
PKief
1.1.4

code-settings-sync
Shan
2.3.8

sort-lines
Tyriar
1.1.0

html-css-class-completion
Zignd
1.0.3

Bookmarks
alefragnani
0.10.0

project-manager
alefragnani
0.12.2

one-monokai
azemoh
0.2.3

vscode-eslint
dbaeumer
1.1.0

githistory
donjayamanne
0.1.2

tslint
eg2
0.6.7

vscode-great-icons
emmanuelbeziat
1.1.26

Angular2
johnpapa
1.0.2

theme-karyfoundation-themes
karyfoundation
10.0.0

HTMLHint
mkaufman
0.0.3

vscode-stylefmt
mrmlnc
2.2.0

Theme-1337
ms-vscode
0.1.2

angular2-inline
natewallace
0.0.16

nonbreakingspace
smlombardi
0.0.1

vscode-icons
robertohuertasm
4.0.4

stylelint
shinnn
0.20.3

theme-tesla
smlombardi
5.3.4

bootstrap-3-snippets
wcwhitehead
0.0.8

change-case
wmaurer
1.0.0

Steps to Reproduce:

I have a project I've been working on for weeks in Insiders. This is a html/js/scss project -- no typescript.

Today I noticed some new errors reported in the right scrollbar and the status bar counter. For rules I had not set in ESLint config.
Then I noticed the status bar said both ESLint and TSLint were active:

In previous builds it only displayed ESLint.

@dbaeumer, I know you did some work on eslint recently to change the types of files it picks up. It this related?

No, this is actually tslint related. @smlombardi complains about that now TSLint and ESLint shows up where in previous releases only ESLint was correctly shown.
@egamma any changes that make TSLint activate on JS files ?

@dbaeumer tslint 4.0 supports to lint .js files https://palantir.github.io/tslint/2016/11/17/new-for-4.0.html so it is now also activated for .js files.

@egamma cool. But I think we need an option to disable this. If someone wants to use ESLint for JS and TSLint for TS we should only activate TSLint when TS files are active.
This might require TSLint adopting the latest LSP node libraries to have an easier way to control this.
I opened https://github.com/Microsoft/vscode-tslint/issues/149.
Closing as upstream since there is nothing VS Code can do to fix this.

@dbaeumer agreed and vscode-tslint should be consistent with vscode-eslint.


Added remove_storage helper to the Python API.

A pr for issue #637.
Added remove_storage for the zulip API, and storage.remove for the bot framework, I'm not sure if I did the tests the right way, need some feedback on it.
i intend to add storage.remove to the bot framework documentation if this pr is good.

LGTM.

@R0cker77 can you clean up the commit history for this PR?
Check out our GitHub guide and commit guidelines for more details.

Thanks for working on this @R0cker77!  A few notes:

I'd prefix the commit with zulip:, since that's the relevant subpackage.
Generally you need to post a comment in GitHub when you've resolved the last comments -- otherwise maintainers won't know to look at your PR again.

@timabbott Thank you for the feedback.
I added zulip : , prefix to commit, and changed the example to the correct form.
I’m eager to receive your feedback.


[AutoPR sqlvirtualmachine/resource-manager] SQL virtual machine: add java readme.

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6546

(message created by the CI based on PR content)


chore(revert): improved api docs (#1421)

This reverts commit b0f8839de2385f1bc5493509311fb49ded80a889, because it accidentally included two features in one. So I am gonna re-do them.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.192%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5259

Relevant Lines:
5562

💛  - Coveralls


my minecraft crashed when i created my modpack can someone look at the log and tell me what made it crash?

here are the logs
https://mclo.gs/SHHgte0

This is the issue tracker for the mclogs website itself. Please do not report Minecraft crashes here.


upsertGraph method

I'm proposing an update equivalent for insertGraph and eager operations that allows one to patch a model and all it's relations using a single method call. upsertGraph would

Update the root model
Go through all relations and

Remove related models that no longer exist
Add new related models
Update existing if some value has changed

Call updateGraph recursively for relations

This could be done in batches to some degree. For example we could

delete all removed models using a single delete where in operation per table
insert all new models using a single batch insert per table.

What do you think everyone? Please vote for this if you think this is a good idea. All comments and suggestions are welcome!

Sounds awesome? Any ideas how to check exactly if related models has changed values?

Nice one! I am trying to develop something like this. First idea was query object again by ID and DIF both json, and with relations names run the operations (delete, insert, update)

Any idea on when will be able to use it? Really needing it!

Next year. I leaving on a trip in a couple of weeks, and I won't be back until next year (I won't have internet access). And during the next couple of weeks, I won't have much time for objection.

Looking forward to this @koskimas .
Would this support filters?

This sounds great. You might want to call this upsertGraph rather than updateGraph (because update to the SQL pedant means change, not add, rows to the database).

@drew-r Yes, my current vision is that you can choose any combination of update/insert/delete. The implementation will be highly configurable since there are so many different use cases for this kind of operation.
@mceachen That's a good idea. Let's call it upsertGraph.

I've started writing this three times and ended up saying "**ck it, it's too hard" followed by git reset --hard. upsertGraph has soooo many problems to be solved and things to consider that I'm beginning to wonder if it can be implemented in a clean and useful way.
Problem 1
We would need to detect existing models from the fact that they already have id's present. There is no other meaningful way to determine if a model already exists in the database. For example checking that all properties are equal doesn't mean anything. There can easily be two rows with the exact same values. Well ok, we could just decide that existing models are detected from id field. Then what should this query do?
Person
  .query()
  .whereIn('id', [1, 2, 3, 4, 5, 6])
  .upsertGraph({
    id: 7,
    firstName: 'Jennifer'
    pets: [{
      {id: 1, name: 'fluffy'},
      {name: 'Coco'}
    }]
  })

We are updating multiple rows, but clearly the update graph is only meaningful for Jennifer. How about this then:
Person
  .query()
  .whereIn('id', [1, 2, 3, 4, 5, 6])
  .upsertGraph({
    firstName: 'Jennifer'
    pets: [{
      {id: 1, name: 'fluffy'},
      {name: 'Coco'}
    }]
  })

Now we could update 1, 2, 3, 4, 5 and 6 to have firstName='Jennifer' but what should we do with their pets? pets is a HasMany relation and we cannot relate the existing pet fluffy to more than one place.
Now we could decide that upsertGraph is special and ignores the where clause of the query. It always updates stuff by their id property. This doesn't fit well with rest of objection. For example this:
jennifer
  .$query()
  .upsertGraph({
    firstName: 'Bradley'
  })

What would this do? Based on what we have discussed here, this should create a new row Bradley since there is no id. But the query is an instance query for jennifer.
We could make usertGraph really special and just allow it to be used after static query and $relatedQuery and throw if there are any where conditions or other filters in the query since they would not work as expected.
Problem 2
If we detect existing models by id, then what should we do if the model doesn't exist in a relation? For example:
Person
  .query()
  .upsertGraph({
    id: 1,
    firstName: 'Jennifer'
    pets: [{
      {id: 1, name: 'fluffy'},
      {name: 'Coco'}
    }]
  })

what if Jennifer doesn't have a pet by id 1 related to it? Should we add it with a new id? Should we throw an exception? If we do either of these options we need to fetch all the models with id's before the actual upsert and check that they are related to correct people.
How about this then:
Person
  .query()
  .upsertGraph({
    firstName: 'Jennifer'
    parent: {
      id: 5
    }
  })

we need to insert Jennifer since it doesn't have an id, but then there is an existing parent by id 5. Should we relate the Person with id 5 for jennifer? What if it's already related to some other row? Assuming that's a HasOne relation relating it to Jennifer would make it doubly related and break the HasOne condition. Should we unrelate 5 from its previous owner? That would be confusing wouldn't it?
The problem list goes on. If I just pick a solution for each of these I will get 9000 issues about the way things work. If I make everything configurable, this will never be ready. Sigh... Maybe I'm overthinking the whole thing.

Would it simply the issue if it's very strictly defined/specced? I.e. be very defensive of it capabilities.
The problem I see with these type of high level functions is the magic (my opinion). They're great as an USP, but at the end of the day maintaining these dragons is hard (unmanageable?).
Problem 1
if id exists, I has to be an update - if not rows were updated, throw. Since it would throw, I would personally never run upsertGraph without transacting. Maybe that should be enforced as well.
Regarding pets relation as HasMany, personally I wouldn't mind objection throwing because that's faulty logically. Having a Model which depends on another (1) Model and trying assign it to multiple instead makes no sense practically.
Problem 2

If we detect existing models by id, then what should we do if the model doesn't exist in a relation?

I don't think it's irrational to throw. An id in object usually indicates an update - and I think it's too magical expecting objection to magically conclude an insert or update depending on X and Y. As a side effect, it's easy to document and explain/reason about as well e.g: "By passing an object with an id (specifically Model.idColumn) to upsertGraph, objection.js assumes to update the row, and expects appropriate value returned from database (e.g. num rows updated = 1). Objection will throw if this is not the case".

what if Jennifer doesn't have a pet by id 1 related to it?

I would personally assume, based on the example, that fluffy gets updated to relate to Jennifer, and Coco gets inserted and related to Jennifer. If the update returns 0 rows updated, throw.

we need to insert Jennifer since it doesn't have an id, but then there is an existing parent by id 5. Should we relate the Person with id 5 for jennifer? ... [etc]

I don't have brain to understand this one so I have no comment :(

Feedback:

There is already an option to insertGraph, so inserting a record along with relations is handled.
updating a model along with its relations can be divided to:
a. update model fields
b. upsert relations (the most common use case IMO)

2.b is the most common use case, that is not present in most ORMs. I myself am interested in that use case.
So, approach for 2.b)
2.b.1) keyed many-to-one relation
schema:
person (id, firstName) (relation owner)
pet(id, personId, name)
input:

keyed 1:N relation, owner is 1 side of relationship
{
firstName: 'Jennifer',
// one-to-many relation, so
pets: [{
// primary key set,
// pseudo code: recordExists ?  updateRecord : createRecord
id: 5,
// no foreignKey (personId) is set
// relate() the pet record to "person" record
name: "Zeus"
}]
}

I will continue with later (got to go) ...

Any news regarding this feature?
I agree with @fl0w . To make it manageable I think it will be important to make this feature strictly defined and opinionated. This will most likely results in a bunch of opinionated issues, but also a very useable feature!

 What has been said, cannot be unsaid (for the fourth time).

First alpha version is almost done. One more night of coding and I'll push this into a branch for the bravest of you to try and comment.

Awesome!

For **ck's sake! I just hit a brick wall with my design. I knew this would happen with this one. Complete rewrite... 😭

Hang in there and good luck!

I just pushed the first draft of the upsertGraph method to master. I documented the tests so that they can be used as a reference at this point. There is still alot of work to do, but it should already work for the most common use cases.
I would be very grateful if some of you tested this for their own use cases and provide any feedback and suggestion.

Well done!
I've found chai-subset to be helpful in my objection integration tests, so you don't have to do stuff like this. Also, kudos to writing out all the TODO test cases at the bottom.

@mceachen Thanks for the tip! I'll switch over to chai.

I was brave to test!
Having an issue with unrelate not working (?)
     User
        .query(trx)
        .insertGraph({
        id: 'test-id',
        name: 'name-000',
        logoURL: 'logo-000',
        profile: {
          email<EMAIL_ADDRESS>          address: {
            streetAddress: 'test-street-addr'
          }
        }
      })

Address has another field called `extendedAddress`. I decide to update that field (but I want to still keep `streetAddress`

User
        .query(trx)
        .upsertGraph({
        id: 'test-id',
        name: 'name-111',
        logoURL: 'logo-111',
        profile: {
          email<EMAIL_ADDRESS>          address: {
            extendedAddress: 'extended-street-addr'
          }
        }
      }, { unrelate: true })

// the streetAddress gets removed

I guess `unrelate` is only for relations?

Also an option to only do an update operation only and throw if it's trying to update an id that doesnt exist

@theogravity Thank yoy for testing this!! yes, unrelate only works for relations. merge option for object columns could be a good idea! I'll write it down. It could be a bit difficult to implement, so that propably won't be the first thing I'll implement. I'm pretty sure worse bugs and missing features will be found soon 😀
Option to throw if nothing gets updated (invalid id, or id not found in relation) is an excellent idea! I'll do that next. Currently those either silently fail (root) or get related (relations). Maybe that should even be the default?

Default.
For patching I noticed there was no validation if the id is missing (via patch and fetch by id) - would be great if it could make sure the id was present instead of having to do a manual check for it

Would it be ok to validate only those fields which are patched and ignore required attributes validation altogether? I don't know how easy that is to implement with our validation lib though and still be allowing custom validators...

Maybe there should be a separate required patch attributes field, but based on what I know on how patchAndFetchId works, that phase would be way too late

@theogravity please create a separate issue for the patchAndFetchById issue. This issue is only about upsertGraph.

@theogravity upsertGraph now throws if an invalid id is given somewhere in the graph by default. The original relate behaviour can be enabled by giving a relate: true option.

Thanks, I'll give it a try at work tomorrow, although my use-case is mainly patching compared to updating.

It works! It was able to associate the user id in the profile.


duplicate docs links in website for doc

https://docs.openservicemesh.io/ has 2 links for same (https://docs.openservicemesh.io/) location do we need 2 links?

@flynnduism Do you think the link in the upper left (the "Open Service Mesh" and image) should go to the same place as "Home", to https://openservicemesh.io?

Yes home/OSM root makes more sense, rather than to the Docs home


Cultural and technological exchange between the Wikimedia and open-source ecosystems

Reasons for making this change
Submitting a new proposal

I'm enthusiastic about this proposal. The "why innovative" section correctly points out a persistently barely tapped opportunity that the proposal would help with:

This project matches the strengths of the Wikimedia platform to the OSS sector, and brings resources of the OSS sector into the Wikimedia platform. Although Wikipedia was established in 2001, and despite deep ideological values alignment in the Open Movement, the software sector has few partnership precedents with Wikimedia. There should be more cultural exchange between OSS and Wikimedia, and this proposal is innovative for presenting actionable ways to collaborate along these lines.

Further, my sense is that more/better info abut OSS in Wikimedia projects (particularly Wikidata) would lower the barrier to better global characterizations of OSS, in part by providing richer, accessible, consistent, cross-referenceable facts about notable OSS projects and their developers/organizations that otherwise aren't available or require lots of expensive curation that is not shared across research questions, and therefore is not gathered in the first place.

Merged, proposal discussion here: https://github.com/PlaintextGroup/oss-virtual-incubator/discussions/39


Update gist in GitHub when user press a keybind / save

Is your feature request related to a problem? Please describe.
So I realize when I use an autosave (afterDelay), its keep updating to Github. Sending request every second (depends on your delay). And then, I realize I hit the rate limit of the gistpad API. And I can't update anymore at that time.
Describe the solution you'd like
So like vscode formatter, Maybe just update it when the user actually save it (like ctrl s) or add a command, and attach a keybind for it (just like format document) instead of check if it saves or not

Closing this as a duplicate of #276. We'll introduce a seperate save behavior from VS Code, to provide the user with more control. Thanks!


Adjustpumpparams bugfix

fixes a bug in adjustpumpparams().

Hey guys I'll give this simple one until next week and if it hasn't been merged I'll go ahead and assume that's a good thing to do.

everything seems legit. gtm


Add CODEOWNERS file

Description
Add a CODEOWNERS file. Doc here: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

I will also use this PR to fix any issues with CI that might crop up

Codecov Report

Merging #19 (243b47b) into main (3c68708) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 243b47b differs from pull request most recent head b639f67. Consider uploading reports for the commit b639f67 to get more accurate results


Switching between track types in Artist/tracks causes blank screen on feature-react-update

Probably something to do with the params.type not propagating through

sorry I don't understand what do you mean.

Sorry. This is embarrassing, I've sent this to the wrong repository. Feel free to delete

no problem


Update reading-data-csv-and-txt.md

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #39748

#43611 was already opened, but anyway
Please read the comments on an issue before contributing to it, and follow the guidelines to open a PR. Your PR is not linked to the issue because of it. Also, is there a particular reason for which you decided on only one file?

Closing in favour of a more comprehensive PR: https://github.com/freeCodeCamp/freeCodeCamp/pull/43618


Stop using hashes for cache dir

This switches the cache paths to be derived from the repo's actual path
instead of hashes to be more human discoverable. This uses the clone's
path, relative to your $HOME (if it's contained within home), and
replicates the structure in ~/.cache/git-pile.
In the case your repo is in a submodule, it uses the path to the
submodule checkout where previously the hash actually would have been
based on a git internal path.
Since only a single worktree is used even if you have multiple usable
worktrees for a given repo, it adds a symlink in ~/.cache/git-pile
from the sub-worktree checkout path, to the main clone directories path
in ~/.cache/git-pile. This way you don't have to think about whether
or not you're in the primary worktree or not when navigating in the
cache.

this doesn't currently work correctly with submodules. if you submit a PR for a repo in a submodule, and then for the containing repo, the repos aren't mirrored correctly

I like the idea of this but am not sure what to do about submodules. closing for now


feat: add basic draft schemas (checks, projects and commons)

I hereby confirm that I followed the code guidelines found at engineering guidelines
⚙ Affected Components

[ ] Commands
[ ] Modules
[x] Services
[ ] SDK
[x] Tests

📝 Notes for the Reviewer

Add basic schemas to validate YML files (projects, checks, groups and alerts)
Update project schema (remove account properties and put the other properties at the same indentation level)
Add schema validations to parse module
Add test cases for schemas and templates

👀 Most of this data is duplicated from Public API schemas, we should find a way to extract or share that info across our projects

Resolves #53

🏗 New Dependency Submission
+ joi

@ndom91 can you finish the review 🙏 ?


Npm init

Updated package.json - project is published to npm with the name usfca-data-table.

To reduce the diff, should this PR be chained onto James'?

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-87.0%) to 0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-87.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-87.0%) to 0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-87.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls


java.lang.NoSuchMethodError: No static method zzic

I/ActivityManager( 1065): Start proc 2799:com.ahead_mobile.debug/u0a61 for activity com.ahead_mobile.debug/com.ahead_mobile.MainActivity
D/AndroidRuntime( 2799): Shutting down VM
E/AndroidRuntime( 2799): FATAL EXCEPTION: main
E/AndroidRuntime( 2799): Process: com.ahead_mobile.debug, PID: 2799
E/AndroidRuntime( 2799): java.lang.NoSuchMethodError: No static method zzic(Ljava/lang/String;)Z in class Lcom/google/android/gms/common/util/zzw; or its super classes (declaration of 'com.google.android.gms.common.util.zzw' appears in /data/app/com.ahead_mobile.debug-1/base.apk)
E/AndroidRuntime( 2799):    at com.google.firebase.FirebaseOptions.<init>(Unknown Source)
E/AndroidRuntime( 2799):    at com.google.firebase.FirebaseOptions.fromResource(Unknown Source)
E/AndroidRuntime( 2799):    at com.google.firebase.FirebaseApp.zzeh(Unknown Source)
E/AndroidRuntime( 2799):    at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)
E/AndroidRuntime( 2799):    at android.content.ContentProvider.attachInfo(ContentProvider.java:1696)
E/AndroidRuntime( 2799):    at android.content.ContentProvider.attachInfo(ContentProvider.java:1671)
E/AndroidRuntime( 2799):    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)
E/AndroidRuntime( 2799):    at android.app.ActivityThread.installProvider(ActivityThread.java:4999)
E/AndroidRuntime( 2799):    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4594)
E/AndroidRuntime( 2799):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4534)
E/AndroidRuntime( 2799):    at android.app.ActivityThread.access$1500(ActivityThread.java:151)
E/AndroidRuntime( 2799):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
E/AndroidRuntime( 2799):    at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2799):    at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 2799):    at android.app.ActivityThread.main(ActivityThread.java:5254)
E/AndroidRuntime( 2799):    at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 2799):    at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 2799):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime( 2799):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
W/ActivityManager( 1065):   Force finishing activity 1 com.ahead_mobile.debug/com.ahead_mobile.MainActivity
E/EGL_emulation( 1083): tid 1083: eglCreateSyncKHR(1209): error 0x3004 (EGL_BAD_ATTRIBUTE)

+1

is it fixed

How was it fixed?

+1

I'm on RN0.33 and ran into this issue as well. I resolved it by updating my app/build.gradle to use a newer version of play-services-auth. The docs use 9.2.1. I swapped it for the following:
compile 'com.google.android.gms:play-services-auth:9.4.0'

@wkrause13 it works thanks

Got a similar issue, builds are failling on all our machines : java.lang.NoSuchMethodError: No static method zzb.
This happened as soon as I updated to Google Play Services 33, I could reproduce this on 3 different machines (one was running OSX, Linux flavors on the others).
Pretty sure the Firebase migration introduced some breaking changes.

compile "com.google.android.gms:play-services-base:+"   compile 'com.google.android.gms:play-services-maps:+'
in react-native-maps/android/build.gradle resolved my problem

If anyone else is facing this, to make it work with Play Services 33, I had to bump to 9.6.1 in build.gradle:
compile 'com.google.android.gms:play-services-auth:9.6.1'
Bear in mind that all of the Google services should use the same version.

still facing this error. any suggestions which version to use?

I don't use firebase in my project but i am getting this issue too!
Does anyone have any idea about this?

Finally found this and it worked for us: https://github.com/rebeccahughes/react-native-device-info/issues/187#issuecomment-315435365
Quoted below:

I've manage to solve this by adding

compile 'com.google.firebase:firebase-core:11.0.2'

inside android/app/build.gradle

dependencies {
    compile 'com.google.firebase:firebase-core:11.0.2' // <--- add this one here (@mansarip)
    compile project(':react-native-device-info')
    compile project(':react-native-vector-icons')
    compile project(':react-native-linear-gradient')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
}

and of course, at the bottom of the file :

apply plugin: 'com.google.gms.google-services'

the problem is with the firebase dependencies ....
this is a version compatibility issue
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.firebaseui:firebase-ui-database:1.0.1'

testCompile 'junit:junit:4.12'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'

}
mine was a problem with firebase-ui version 1.2.0
then i have changed it with 1.0.1 that matches the other versions of firebase.
for more visit this page....
https://github.com/firebase/FirebaseUI-Android

In an effort to clean the issues up, this is being closed. Please open a new issue if you're still experiencing a problem.

@note89 @avishayhajbi @anbarasuthresnathan @nathanael540 @wagng @michaelknoch
Hey I got same issue. Make sure your graddle-wrapper version should be 4.4, gradle version should be 3.1.2 and play-service-auth version should be 15.0.0. If it is not then follow three steps to upgrade.

Update Distribution Url to 4.4 in android/app/gradle/wrapper/gradle-wrapper.properties File.
Update Build Gradle Version to 3.1.2 in android/build.gradle File.
Update compile 'com.google.android.gms:play-services-auth:15.0.0' in android/app/build file

P.S : I'm using React-native Google Signin version v0.10.0.


Transactional Template Email is not getting delivered in the Firebase cloud function.

I am integrating SendGrid email in the Firebase cloud function.
I have authenticated the domain in SendGrid console

Below are two ways I'm trying.
import mail from '@sendgrid/mail';
mail.setApiKey(process.env.SENDGRID_API_KEY);

Working example:

               console.log('Sending Email2 example');
                const msg2 = {
                to<EMAIL_ADDRESS>                from<EMAIL_ADDRESS>                subject: 'Hello world',
                text: 'Hello plain world!',
                html: '
Hello HTML world!
',
                };
                await mail.send(msg2);

                console.log('Sending Email2 example');

               This email is getting delivered in my mailbox.

Not working:

           console.log('Sending Email1 example');
                const msg1 = {
                    to<EMAIL_ADDRESS>                    from<EMAIL_ADDRESS>                    templateId: 'd-58ce8e494aac482595ff1197eeb2697e',
                    dynamicTemplateData: {
                        subject: 'Testing Templates',
                        name: 'Some One',
                        city: 'Denver',
                    },
                    };
                await  mail.send(msg1).then(() => console.log('Mail1 sent successfully'))
                 .catch(error => {
                   console.error(JSON.stringify( error));

                   if (error.response) {
                     console.error(JSON.stringify( error.response.body))
                   }
                 });

This is the same example as mentioned here
https://github.com/sendgrid/sendgrid-nodejs/blob/main/docs/use-cases/transactional-templates.md
Below is screen shot of the console.

Below is sc

what I am doing wrong here?
The first one is working fine but the second email is not getting delivered.
When I send emails through a dynamic template I get success as a response but emails do not get delivered.
also if I provide wrong templateId in that case also I am getting a success response, I wonder how it's possible.
Here is my  ts config
 {
  "compilerOptions": {
    "module": "commonjs",
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "outDir": "lib",
    "sourceMap": true,
    "strictNullChecks": false,
    "strict": false,
    "target": "es2017",
    "resolveJsonModule": true,
    "esModuleInterop": true
  },
  "compileOnSave": true,
  "include": [
    "src"
  ]
}

and package.json
  {
    "name": "functions",
    "scripts": {
      "lint": "tslint --project tsconfig.json",
      "build": "tsc",
      "serve": "npm run build && firebase emulators:start --only functions",
      "shell": "npm run build && firebase functions:shell",
      "start": "npm run shell",
      "deploy": "firebase deploy --only functions",
      "logs": "firebase functions:log"
    },
    "engines": {
      "node": "10"
    },
    "main": "lib/index.js",
    "dependencies": {
      "@google-cloud/pubsub": "^2.1.0",
      "@sendgrid/mail": "^7.2.6",
      "axios": "^0.19.2",
      "firebase-admin": "^8.9.0",
      "firebase-functions": "^3.11.0",
      "grpc": "^1.24.3"
    },
    "devDependencies": {
      "tslint": "^5.12.0",
      "typescript": "^3.2.2",
      "firebase-functions-test": "^0.1.6"
    },
    "private": true
  }

Hello @geecat ,
It looks like you have it setup properly to me; however, I was unable to reproduce locally.
I used the same HTML templates as you and here is the code I used:
const sgMail = require('@sendgrid/mail');
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
const msg = {
    to<EMAIL_ADDRESS>    from<EMAIL_ADDRESS>    templateId: 'd-mytemplate-id',
    dynamicTemplateData: {
      subject: 'Testing Templates',
      name: 'Some One',
      city: 'Denver',
    },
};
(async () => {
  try {
    await sgMail.send(msg);
  } catch (error) {
    console.error(error);

    if (error.response) {
      console.error(error.response.body)
    }
  }
})();

For the emails that get sent successfully but don't see them delivered, do you see them in your email activity view?
With best regards,
Elmer

Hi Elmer,
Thanks for replying.
I changed the SendGrid import to Typescript way and
I deleted all the key API key and created a new one and it started working.
I tried multiple ways of integrating the send mail and all are working fine now.

Integrating sendgrid mail client
import mail from '@sendgrid/mail';   const API_KEY = functions.config().sendgrid.key;   mail.setApiKey(API_KEY);

Calling https://api.sendgrid.com/v3/mail/send with post option.
`
const sendEmail = async (toEmail, toName, templateId) =>  {
try{
const bearerKey = "Bearer ".concat(API_KEY.toString());
console.log('Mail sent iitiated', 'Bearer '+process.env.SENDGRID_API_KEY, API_KEY,bearerKey)
let options = {
headers:
{ 'content-type': 'application/json',
authorization: bearerKey }};
let data = {
personalizations: [
{
to: [
{
email: toEmail,
name: toName
},
],
}
],
from: {
email<EMAIL_ADDRESS>name: "Name"
},
template_id : templateId
};
await axios.post('https://api.sendgrid.com/v3/mail/send', data,options);
console.log('Mail sent successfully')
}catch(e){
console.error('Error sending in email');
}

};`
Both of them are working now.
I can not see those emails in the email activity view?
I have one question
why do I get a success response when I send the wrong template id?

I'm glad to hear you were able to get things working! And thanks for sharing your results!
Here is what I get when I use the wrong template ID: (I'm using the same code as above, I just removed a character from the temaplateId string)
ResponseError: Bad Request
    at node_modules/@sendgrid/client/src/classes/client.js:133:29
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  code: 400,
  message: 'Bad Request',
  response: {
    headers: {
      server: 'nginx',
      date: 'Tue, 29 Sep 2020 21:05:24 GMT',
      'content-type': 'application/json',
      'content-length': '866',
      connection: 'close',
      'access-control-allow-origin': 'https://sendgrid.api-docs.io',
      'access-control-allow-methods': 'POST',
      'access-control-allow-headers': 'Authorization, Content-Type, On-behalf-of, x-sg-elas-acl',
      'access-control-max-age': '600',
      'x-no-cors-reason': 'https://sendgrid.com/docs/Classroom/Basics/API/cors.html'
    },
    body: { errors: [Array] }
  }
}
{
  errors: [
    {
      message: "The template_id must be a valid GUID, you provided 'd-baddb3551a76483598ece251aa7faea'.",
      field: 'template_id',
      help: 'http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.template_id'
    },
    {
      message: 'The subject is required. You can get around this requirement if you use a template with a subject defined or if every personalization has a subject defined.',
      field: 'subject',
      help: 'http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.subject'
    },
    {
      message: 'Unless a valid template_id is provided, the content parameter is required. There must be at least one defined content block. We typically suggest both text/plain and text/html blocks are included, but only one block is required.',
      field: 'content',
      help: 'http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.content'
    }
  ]
}

@thinkingserious When you delete a character the template id is not a valid  GUID, hence you are getting error.
If you just replace the character with something else request will be accepted and no mail will be sent.

Issue here: https://github.com/sendgrid/sendgrid-nodejs/issues/778
SendGrid does not verify the template ID on the mail-send call to reduce backend complexity/response times.

@childish-sambino Thank you for clarification.
Since my issue is resolved. I am closing this.


Content: Explain Asset directory

We dont mention at all where to put assets

All projects from 1-0-0 onwards come with an Assets directory including empty subfolders for Shaders, Textures and Models which will be filled with files when its necessary per chapter
Assets/**/* is also being copied to $(OutDir) in each project


Udp connection not close (reopen #174)

hi
This is an issue reopen from 174,  as state before the code below will leave some socket unreleased in the task/thread/process
let pc = peer_connection.clone();
peer_connection
        .on_peer_connection_state_change(Box::new(move |s: RTCPeerConnectionState| {
            info!("Peer Connection State has changed: {}", s);
            let is_failed = s == RTCPeerConnectionState::Failed;
            let pc1 = pc.clone();
            Box::pin(async move {
                if is_failed {
                    pc1.close().await.ok();
                }
            })
        }))
        .await;

So I try to make it async way, as it did get fixed, for some time
    let (box_sdr, mut box_rcvr) = tokio::sync::mpsc::channel::<VCError>(1);
    peer_connection
        .on_peer_connection_state_change(Box::new(move |s: RTCPeerConnectionState| {
            info!("Peer Connection State has changed: {}", s);
            let is_failed = s == RTCPeerConnectionState::Failed;
            if is_failed {
                info!("Peer Connection has gone to failed");
            }
            let box_sdr = box_sdr.clone();
            Box::pin(async move {
                if is_failed {
                    box_sdr.send(VCError::biz("Connection failed", 10)).await;
                }
            })
        }))
        .await;

    let peer_connection = peer_connection.clone();
    rt::spawn(async move {
        loop {
            let box_result = box_rcvr.try_recv();
            if box_result.is_ok() {
                tokio::time::sleep(Duration::from_secs(8)).await;
                peer_connection.close().await;
                break;
            }
            tokio::time::sleep(Duration::from_secs(4)).await;
        }
    });

But when the task went heavy and cpu get big burden, say, 50 rtc jobs delivering large bitrate stream, I found the issue reappear from time to time. Leaving udp sockets unreleased.
I have one audio tranceiver channel, one video tranceiver channel and a data channel initialized from client side,
the task get notified(started) after data channel is established. Every event handler of the peer_connection are independent, which means they are not chained. After some log working, I am pretty sure all the data I created are dropped. So once more I need some help here, just like the error before, maybe there's some cons I need to watch out?
Maybe there's other part I neglected? Hope you could help.

It seems I found the reason myself, when cpu got heavily loaded, it seems to be very slow attaching the event handler to the peer connection, as a result, many task got dropped even before a data channel, which I used as the start notifier, got established. So when facing this intensive job, I need to make sure all the peers, even drop in the midway, need to be closed.
Let me know if I need correction.

Hey, thanks for reporting this issue. Can you provide some more details?

Does on_peer_connection_state_change get called correctly?
Does the line that actually calls close on the peer connection run?
Does close return a non-Err response?
If you run with memory leak detection are there any leaks detected?

I have two theories about this:

There's a reference cycles or something else that causes the socket to be kept open and even after closing the peer connection it never gets freed because the required Drop implementation never runs
The load causes tokio task starvation and the task that is supposed to close the peer connection never runs.

Of the two 1 seems much more likely as a cause.  I'm not super familiar with the ICE agent stuff but I'd start debugging there(i.e. ensure that the struct that holds the socket is actually dropped properly).

Hey, thanks for reporting this issue. Can you provide some more details?

Does on_peer_connection_state_change get called correctly?
Does the line that actually calls close on the peer connection run?
Does close return a non-Err response?
If you run with memory leak detection are there any leaks detected?

I have two theories about this:

There's a reference cycles or something else that causes the socket to be kept open and even after closing the peer connection it never gets freed because the required Drop implementation never runs
The load causes tokio task starvation and the task that is supposed to close the peer connection never runs.

Of the two 1 seems much more likely as a cause. I'm not super familiar with the ICE agent stuff but I'd start debugging there(i.e. ensure that the struct that holds the socket is actually dropped properly).

Hi, thank you for the theories, I am working on the debugging
Here's the short answer for your question:
Does on_peer_connection_state_change get called correctly?
Since I am working on the debugging, I am using every means possible to try to adjust code, for
now, <on_peer_connection_state_change> may not trigger when timeout to establish connection(10 secs), and I still found socket unreleased.
Does the line that actually calls close on the peer connection run?
yes, for that, I am sure, here's my "not so pretty" code list below, which aim to start all the streamer after all candidates are collected and data channel is established. When timeout happens, all the streaming work below will not trigger and function shall return. So at this point, I need to close the peer connection(<on_peer_connection_state_change> is coded below).
rt::spawn(async move {
        let timeout = tokio::time::sleep(Duration::from_secs(10));
        tokio::pin!(timeout);
        tokio::select! {
            _ = timeout.as_mut() =>{
                return error_log!(target:&token.to_string(),"Timeout awaiting candidate gathering finish, now quitting");
            }
            _ = notify.notified() => {
                info!(target: &token.to_string(),"Got all the candidate");
            }
        };
            let timeout = tokio::time::sleep(Duration::from_secs(10));
            tokio::pin!(timeout);
            tokio::select! {
                _ = timeout.as_mut() =>{
                    match peer_connection.connection_state(){
                        RTCPeerConnectionState::Failed =>{
                            info!(target: &token.to_string(),"Forcing peer connection close when timeout fetching datachannel, current state {}", peer_connection.connection_state());
                            info!(target: &token.to_string(),"Forcing peer connection close status {:#?}", peer_connection.close().await);
                            info!(target: &token.to_string(),"Forcing peer connection close when timeout fetching datachannel, current state {}", peer_connection.connection_state());
                            return error_log!(target:&token.to_string(),"Timeout awaiting start command for start up green thread");
                        },
                        _=> continue
                    };
                }
                _ = dc_rcv.recv() => {
                    info!(target: &token.to_string(),"Got the data channel");
                }
            };

[Rolling] 2022-05-27T17:29:50.543278+08:00 - INFO - 195989740 - Forcing peer connection close when timeout fetching datachannel, current state failed
[Rolling] 2022-05-27T17:29:50.545733+08:00 - INFO - 195989740 - Forcing peer connection close status Ok(
    (),
)
[Rolling] 2022-05-27T17:29:50.545772+08:00 - INFO - 195989740 - Forcing peer connection close when timeout fetching datachannel, current state closed

Does close return a non-Err response?
as log shows above, it returns ok;
If you run with memory leak detection are there any leaks detected?
Not yet, but I did moniter memory for every feature added, I will try to run the test these days. Althrough I use ffmpeg a tool,
I am pretty sure all the unsafe instance are freed.
Btw, let me know if I could share my code with your so that we could inspect.

I did some digging. Here's what I think happens:
Ultimately the socket is held within CandidateBase which implements Candidate. Instance of Candidate are stored within an Arc e.g. in local_candidates in AgentInternal and probably elsewhere too. Thus, for the socket to be freed correctly CandidateBase must be freed, chances are that with a lot of Arcs this isn't happening correctly somewhere.
To investigate you can add an OnDrop to CandidateBase that logs. We expect that you should see this log message when the peer connection is closed

leak detection

hi kOnserv, thanks again for this hint. I am digging now, here's some progress I found.
Firstly, as you just print above, the CandidateBase did not drop. But AgentInternal did get dropped.
So I guess it should not be the agent issue.
And according to my log, it seems there's CandidatePair dropped event prior to every normally dropped socket
Closing candidate udp6 host :::49300
Candidate udp6 host :::49300 closed
Closing candidate udp4 host <IP_ADDRESS>:49509
Candidate udp4 host <IP_ADDRESS>:49509 closed
Closing candidate udp4 srflx <IP_ADDRESS>:49910
Candidate udp4 srflx <IP_ADDRESS>:49910 closed
Dropping udp6 host :::49300
token 986931319, is_stop false
Closing candidate udp4 host <IP_ADDRESS>:49501
[AVIOContext @ 0x10b61c640] Statistics: 4216101 bytes read, 2 seeks
[libopus @ 0x10c1c9a00] Ignoring attempt to flush encoder that doesn't support it
Candidate udp4 host <IP_ADDRESS>:49501 closed
Closing candidate udp4 srflx <IP_ADDRESS>:49625
Candidate udp4 srflx <IP_ADDRESS>:49625 closed
Closing candidate udp6 host :::49990
Candidate udp6 host :::49990 closed
Dropping udp6 host :::49990
Dropping internal agent Some(3236548177)
Dropping internal agent Some(1376896282)
Dropping internal agent Some(573185719)
Dropping candidate pair <IP_ADDRESS>:49792
Dropping udp4 host <IP_ADDRESS>:49792
Dropping candidate pair <IP_ADDRESS>:50061
Dropping udp4 prflx <IP_ADDRESS>:56764
Dropping udp4 srflx <IP_ADDRESS>:50061
Dropping internal agent Some(3474514891)
Dropping internal agent Some(961005883)
Dropping candidate pair <IP_ADDRESS>:50078
Dropping udp4 host <IP_ADDRESS>:50078
Dropping candidate pair <IP_ADDRESS>:49883
Dropping udp4 prflx <IP_ADDRESS>:57244
Dropping udp4 srflx <IP_ADDRESS>:49883
Dropping candidate pair <IP_ADDRESS>:49509
Dropping udp4 host <IP_ADDRESS>:49509
Dropping candidate pair <IP_ADDRESS>:49910
Dropping udp4 prflx <IP_ADDRESS>:61850
Dropping udp4 srflx <IP_ADDRESS>:49910

Additionally, here's the port not released
vccplayer 12698 robin   54u     IPv4 0xd75407aecfb384bd        0t0                 UDP <IP_ADDRESS>:49501
vccplayer 12698 robin   55u     IPv4 0xd75407aecfb387cd        0t0                 UDP *:49625

I just got this far, I will update you as soon as I got news

Amazing work on all this digging @shiqifeng2000, thank you so much for this!
I do think your fix should work and alleviate the issue as you have described, however I feel like a better fix might be to resolve the retain cycles by ensuring we don't use Arc everywhere instead relying on Weak for non-owning pointers. I'm not sure exactly which objects should own the relevant pieces of state, but the ideal would be that simply dropping the peer connection works as a side effect of these Weak pointers no longer being upgradable.
Since you've been digging in this code do you have thoughts on where ownership should lie?
I think we could be okay with your fix for now if you wanna send a PR.

Well I am just a consumer and maybe my fix is not the best way for this repo. Arc and Weak pointer are better and should be align better to your coding pattern, so maybe it should be best to left to you to fix them.
As for ownership, please just make sure when peer_connection close, all the under-going async process are cancelled, all spawned threads released and all fields or substances related are dropped. That's all.

To be honest I'm also mostly a consumer although I've made several contributions to the project, but I'm not super familiar with this code path. That said, I had a look and there's RTCSctpTransport::notify_tx which is notified when RTCSctpTransport::stop is called. I think using tokio::select! with self.notify_tx.notified() as  one of the branches should work to detect the stop condition.
Could you try this patch?
diff --git a/src/sctp_transport/mod.rs b/src/sctp_transport/mod.rs
index fb27b26..a1b8342 100644
--- a/src/sctp_transport/mod.rs
+++ b/src/sctp_transport/mod.rs
@@ -64,7 +64,7 @@ pub struct RTCSctpTransport {
     pub(crate) dtls_transport: Arc<RTCDtlsTransport>,

     // State represents the current state of the SCTP transport.
-    state: AtomicU8, //SCTPTransportState,
+    state: AtomicU8, // RTCSctpTransportState

     // SCTPTransportState doesn't have an enum to distinguish between New/Connecting
     // so we need a dedicated field
@@ -145,15 +145,26 @@ impl RTCSctpTransport {

         let dtls_transport = self.transport();
         if let Some(net_conn) = &dtls_transport.conn().await {
-            let sctp_association = Arc::new(
-                sctp::association::Association::client(sctp::association::Config {
-                    net_conn: Arc::clone(net_conn) as Arc<dyn Conn + Send + Sync>,
-                    max_receive_buffer_size: 0,
-                    max_message_size: 0,
-                    name: String::new(),
-                })
-                .await?,
-            );
+            let sctp_association = loop {
+                tokio::select! {
+                    _ = self.notify_tx.notified() => {
+                        // It seems like notify_tx is only notified on Stop so perhaps this check
+                        // is redundant.
+                        // TODO: Consider renaming notify_tx to shutdown_tx.
+                        if self.state.load(Ordering::SeqCst) == RTCSctpTransportState::Closed as u8 {
+                            return Err(Error::ErrSCTPTransportDTLS);
+                        }
+                    },
+                    association = sctp::association::Association::client(sctp::association::Config {
+                        net_conn: Arc::clone(net_conn) as Arc<dyn Conn + Send + Sync>,
+                        max_receive_buffer_size: 0,
+                        max_message_size: 0,
+                        name: String::new(),
+                    }) => {
+                        break Arc::new(association?);
+                    }
+                };
+            };

             {
                 let mut sa = self.sctp_association.lock().await;
diff --git a/src/sctp_transport/sctp_transport_state.rs b/src/sctp_transport/sctp_transport_state.rs
index f27f29e..67378ea 100644
--- a/src/sctp_transport/sctp_transport_state.rs
+++ b/src/sctp_transport/sctp_transport_state.rs
@@ -2,6 +2,7 @@ use std::fmt;

 /// SCTPTransportState indicates the state of the SCTP transport.
 #[derive(Debug, Copy, Clone, PartialEq)]
+#[repr(u8)]
 pub enum RTCSctpTransportState {
     Unspecified,

Hey @shiqifeng2000 did you get a chance to test this, if not do you have an example that replicates the problem and I can try

Hey @shiqifeng2000 did you get a chance to test this, if not do you have an example that replicates the problem and I can try

Hi,  @k0nserv, so you are using a notifier instead of timeout, that's clever, I tried with your code above and test dozens of rounds and it works as well.

That's great, could you send a PR with this change please?

That's great, could you send a PR with this change please?

gladly, working on it

Closing this as I believe it was resolved


Added test(s) for the sct_deepgmseg script.

Prerequisites
The script sct_deepgmseg does not have any form of tests. Add a new test in the testing folder that can at the minimum do integrity test on the script.

integrity tests are now implemented


Add support for GHC 9.4

Will fix #14. Currently doesn't build.

I don't think that this is going to be worth the effort.


Configuration option to exclude files/patterns

I've searched the issue tracker and didn't see any issue that exactly matched my question... #1228 is certainly related but given the breadth of discussion there I figured it might be easier to open a new discussion - apologies in advance for the clutter!
Proposal
Sphinx/JB1 has the exclude_patterns option in the project configuration to enable ignoring certain files/patterns at build time. AFAICT there is not (yet) equivalent functionality in the myst.yml configuration.
Additional notes
For many cases, I think there are ways this could be worked around by reorganizing directory structures; however IME with JB1 this is a very handy configuration option!

Hi @rossbar, perhaps the exclude frontmatter field (myst.yml) is what you're looking for?

Closing this as answered :)


Tests1

These are the modifications required to make tests run again, there are some absent generic types usage in AnimationTest, proguard config is updated, an ApplicationLogger was added to same package because it's absent in gdx 1.9.4 version.

you will be trying 1.9.5 release to see whats wrong with regex ?

I've already tried it overriding the entire class "BitmapFont" and changing regexp by: ".*file="?([^"]+)"?"
The file is loaded correctly but now there are some parsing errors on processing default.fnt file that did not arise on 1.9.4 version..


Detailed Report with Mapped Permissions

Hi,
Presently the tool does not provide the detailed item wise / folder wise / sub folder wise permissions mapped. Without this, it will be difficult to cross-verify the permission mapped between on-premise File Server vs Migrated Document Libraries. Any help is much appreciated.

thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


Consider implementing range and discrete rules for all primitive types

For example, currently it is not possible to pass int values to randomBuilder.randomFrom() and randomBuilder.randomFromRange() methods.

Fixed in #62


Cannot read property 'red' of undefined

doing
const COLORS = {
	"error": [
		chalk.red,
		chalk.bold.red,
		chalk.bold.italic.red
	],
	"info": chalk.blue,
	"warn": chalk.keyword('orange'),
	"debug": chalk.keyword('purple')
}
console.log(COLORS.info('error') + ' ' + 'beep');

errors

that is the wrong way to resolve it, you need to import it like import chalk from chalk

@pjalsGit
If my understanding is right, since chalk is exported in module.exports = chalk;  , in order to import like import chalk from chalk, you should enable esModuleInterop otherwise you should import like import * as chalk from 'chalk' or const chalk = require('chalk').

@sindresorhus
Hi, sorry for mentioning in the closed issue.
Is meta-tweaks a temporary branch for the next release?
I think users who uses import chalk from 'chalk' and disable esModuleInterop would face the same problem and get the runtime error if they upgrade to the latest from the version before 4.1.0.
In order to avoid confusion, add code below would help:
module.exports = chalk;
module.exports.chalk = chalk;  //  <-
module.exports.default = chalk;  // <-

If make sense, I'll send pr to meta-tweak branch


Bug:

<!--

Thank you for taking the time to report an issue. Your feedback is valuable in
improving our project. Please fill out the following details to help us
understand and address the problem you're facing.
By providing this information, you help us understand the context in which the
issue is occurring.
Instructions: Fill in the requested details. You can delete any unused headers
and feel free to add any additional information that might be relevant to your
specific project.
Once you've filled out the necessary information, feel free to submit the issue,
and we'll work on addressing it as soon as possible.
Thank you for contributing to the project!
-->
Before You Begin
Before proceeding, please make sure to follow these steps:

[ ] I have checked for similar issues in the project's issue tracker.
[ ] I have searched closed issues to see if a similar problem was reported
before.

Issue Details
Start by creating a descriptive title for the issue. This helps us understand
the problem quickly.
Description
Explain the issue you're facing in as much detail as possible. Include any
relevant information that can help us reproduce the problem.
Expected Behavior
Describe what you expected to happen when using the project (e.g., the app,
package, or program).
Actual Behavior
Explain what actually happened, including any error messages, crashes, or
unexpected behavior. Screenshots are helpful if applicable.
System Information
Please provide the following additional information about your system or
environment:

Operating System (OS):
OS Version:
Browser (if applicable):
Browser Version (if applicable):
Project Version (if applicable):

🥹✨🫂💋🤏🏻🙂😔😉👍🌚😂😭🤭🫢💔🫣🦦💎🫤🤨🥺🕷👇🏻🙂↕😑🫦😅👀🤨🥲😅😁🫠🙂↔🫨❤🔥🙊🙈🙉🫰🏻🫴🤌🫀

🙂↔❤🔥🫀🫦🤌🫨🫴🫠🫰🏻😁🙉😅🙈🥲🙊🤨👀🦦😑🫣🙂↕💔👇🏻🫢🕷🥺🫤💎💋🥹😶🌫


arrow and overflow doesn't work together

Hi, it seems that when enabling overflow, the arrow stops working.
is it possible to fix so both will work simultaneously?

Hi @udah1 ,
css overflow on menu confines everything inside it, so the arrow div cannot be positioned outside. If you need arrow and overflow to work together, use a MenuGroup and apply overflow on the group.
Here is an example: https://codesandbox.io/s/overflow-arrow-qkvjz

Thanks @szhsin. That looks great, but still not working for me.
I see that the overflow property is not working.
it seems the styles don't get dynamically changed for the menu and sub menus, while in examples they do.
(for example, max-height: 158px; overflow: auto; on the rc-menu__group item.
any ideas why it might happen?

)

while in your sample:

Hi @szhsin, I have a problem with ADA on the example you gave.
When opening the menu, I hear "menu with zero items".
This seems to be due to the group menu div which is coming between the "ul" and the "il's".
any resolution for that?

Looks like the wrapping group has some impacts on screen reader.
You might try to override the roles like this:
    <Menu
      overflow="auto"
      position="anchor"
      role="presentation"
      arrow
      menuButton={<MenuButton>Open menu</MenuButton>}
    >
      <MenuGroup takeOverflow role="menu">
        {new Array(40).fill(0).map((_, i) => (
          <MenuItem key={i}>Item {i + 1}</MenuItem>
        ))}
      </MenuGroup>
    </Menu>


Add support for QNX 7.1 build

Add support for QNX 7.1 build.
Build instruction:
# Source the QNX environment script
source <path-to-qnxsdp-env.sh>/qnxsdp-env.sh

# Clone the repo
git clone https://github.com/chachoi/tinyxml2.git && cd tinyxml2/build_qnx

# Build and install
make -j 4 install

To build xmltest, set BUILD_TESTING to ON in build_qnx/common.mk.
Headers will be installed to ${QNX_TARGET}/usr/include
Libraries will be installed to ${QNX_TARGET}/${CPUVARDIR}/usr/lib
xmltest will be installed to ${QNX_TARGET}/${CPUVARDIR}/usr/bin/tinyxml2_tests
To run xmltest, simply move tinyxml2_tests folder and the tinyxml2 library to a QNX target:
scp $QNX_TARGET/aarch64le/usr/lib/libtinyxml2* root@<target-ip-address>:/usr/lib
scp -r $QNX_TARGET/aarch64le/usr/bin/tinyxml2_tests root@<target-ip-address>:/var

And ssh into the QNX target and run xmltest:
ssh root@<target-ip-address>
cd /var/tinyxml2_tests
./xmltest

All 465 tests pass on QNX currently.

I'm sorry, but there's no way to maintain this toolchain. I've been pulling out more unusual build systems; I don't want to add more.


Add Support to the DataGrid Control for Complex Layout Rendering. Wit…

Pull Request
📖 Description
Currently the FluentDataGrid has problem to collect all the columns if the rendering structure is nested with some wrapper component. The Target of this PR is to unbound the Grid from internal rendering logic of blazor by using the well known apis.
On bigger projects the dev always try to wrap components to integrate there own extensions an logics.
🎫 Issues
I found no issue for this topic
👩💻 Reviewer Notes
Reviewer can check the updated DataGrid example page. There is now a Example which generate the columns in a nested way
📑 Test Plan
I think the wohle DataGrid Control need to be tested. I have dont only the minimal change to dont intercept other functions but i am not sure about side effects
✅ Checklist
General

[ ] I have added tests for my changes.
[x] I have tested my changes.
[x] I have updated the project documentation to reflect my changes.
[x] I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

[ ] I have added a new component
[ ] I have added Unit Tests for my new component
[x] I have modified an existing component
[ ] I have validated the Unit Tests for an existing component

@microsoft-github-policy-service agree

I agree with @dvoituron. This is not something that we want to merge at the moment.
I don't think that we have had any issues being created on what you have put in the description. So not sure if there is a problem we are solving with this or if it is more refactoring for the refactoring.
I'll close this PR now. We do appreciate the effort but for the next time perhaps first open a discussion item to see if what you have in mind is something we and the users need/want.

Sorry for the late response, I’ve been pretty busy.
It’s absolutely fine if you don’t want to merge the PR—I understand it might look like a critical change for you. The reason I didn’t create an issue for it is that sometimes it’s easier to create a PR and discuss it directly rather than working from an abstract issue. After all, we’re all developers. 😊
The problem I described in the PR description does exist, so perhaps this PR can serve as a starting point when the issue becomes a higher priority.
Thanks for reviewing my PR! I really appreciate all the work you’re doing to build this great component library.


[PE-D][Tester C] Command is case-insensitive

Typing Add and add represent the same intention from the user. Not allowing command to be capitalized and just mentioning Unknown command will cause confusion

Labels: severity.Low type.FeatureFlaw
original: hazzle23/ped#11

Behaviour is clearly documented in UG and as expected


Set hostname in cloud-config?

Previously, hostname property was allowed/set in cloud-config section to set the server hostname upon booting. Now this property is not allowed anymore, and machineName can be used for this if it is set only (this means that the default value of machineName will not be used to set the hostname if nothing is provided).
EDIT: on my last test the hostname is always localhost, so it seems that machineName is not used anymore to set the hostname? In fact after a reboot I have something like rancher-XXXXX as a hostname...
I tried to set machineName to something else: machineName: node-{{ trunc 4 .MachineID }} but in that case the automated installation is not executed, and MachineInventories is not created in Rancher Dashboard either. No error in the operator logs, I can see that Rancher Dashboard is contacted but nothin more.
We need a way to be able to set the hostname as setting machineName to something else doesn't seems to work (sounds like the clusterName property in Rancher, maybe machineName should be always auto-generated in readonly?). Maybe DHCP can bue used to set a hostname, but lot of customers may need to be able to force a hostname with a fixed IP.

I tried to set machineName to something else: machineName: node-{{ trunc 4 .MachineID }} but in that case the automated installation is not executed, and MachineInventories is not created in Rancher Dashboard either. No error in the operator logs, I can see that Rancher Dashboard is contacted but nothin more.

Changing the machineName shouldn't hang the installation.. the bare minimum here and the first step is to improve logging (and try to figure out what happened).
How the hostname "should be" set should also be reviewed: after reboot, Rancher Manager hostname takes over in any case (rancher-XXXXX). How the hostname is expected to be managed is not clear as today. Making this clear is part of the things to address in this issue.

After adding an installed node to a cluster I finally have the hostname set to the value of machineName, so it's still clearly used to set the hostname.

see also #97

see also #97

Manually tested and it works! But is there any plan to be able to set a custom hostname? Something like the hostname property in cloud-config like we had before?

latest patch from @mjura fixes this I think, now the hostname is set properly on bootstrap and it also survive reboots: https://github.com/rancher/elemental-operator/pull/106

latest patch from @mjura fixes this I think

But how the hostname can be configured to something different than rancher-XXXX? The latest patches seem to "only" fix the persisent across reboot (which is good of course ;-)).

Ah this is only possible via MachineName for now, not manually. MachineName takes precedence over everything else, even if you set a hostname in cloud-init. You could do it and it would be used on each reboot as yip would set it but why would you do that? You only want one source for the hostname and this are cattle, so it should be autogenerated via the bootstrap methods.
@mjura patch fixes the hostname name change for rancher-XXXX to only set what machineinventory wants.
Changing the hostname against what the k8s inventory sets could bring also a lot of issues.

I consider this issue done.
If new evidence appears, please open a new issue.

maybe an improvement would be to set the hostname to elemental-XXXX instead of rancher so we know we are setting the initial hostname ourselves and dont blame rancher :rofl:

I don't understand something: we can't set the hostname to something else, for example my-own-name-XXXX? If so this could be an issue for some users. Where I worked before only "valid" hostname was allowed ("valid" means codified hostname).


up protocolbuffers to v1.27.1

https://github.com/octomation/go-service/blob/dae240e402822ee56f2320444ec2da54cc5046a1/tools/go.mod#L15
https://github.com/protocolbuffers/protobuf-go/releases/tag/v1.27.1

done


Use a separate --remote_instance_name for main and release branches

One possible reason that CI can be flakey, and bazel can sometimes refuse to die is that we are sharing the same (action) caches between the branches and this is causing some issues
Theoretically, in an ideally hermetic world with no bazel bugs this should not be a problem, but i suspect especially switching between different bazel versions as the branches do, it is
We could resolve this (if it is indeed an issue) by separating the RBE for main and release branches with per version/target branch --remote_instance_name

this is on 1.22 branch - interesting that it happened on the wasm/emscriptem build - i have said for a while that i think there is a hermeticity problem there
cc @mpwarres @PiotrSikora

meanwhile, over on main ...

ERROR: /source/test/extensions/bootstrap/wasm/BUILD:50:24: Linking test/extensions/bootstrap/wasm/wasm_integration_test failed: (Exit 34): Remote Execution Failure:
Failed Precondition: failed to populate working directory: failed to download inputs: blobs not found: rpc error: code = NotFound desc = downloading blobs as part of a batch resulted in 1 missing blobs, including blob hash:"4a7a9b84da433c1966f0b540ceccba2eedac4caff4def072efaa702a7cccfa25" size_bytes:1123376:
  Unrecognized error detail: type_url: "type.googleapis.com/google.devtools.remotebuildbot.CommandStatus"
value: "\b\""

https://dev.azure.com/cncf/envoy/_build/results?buildId=128975&view=logs&j=d1f76054-8f79-554b-6f4a-11d6a63b8e00&t=266e17e3-d213-54b5-deef-0dcee01da137&l=177

i think this is probably related, and seems to provide a bit more info ...
     ^
4 warnings generated.
FATAL: bazel ran out of memory and crashed. Printing stack trace:
java.lang.OutOfMemoryError: Java heap space
	at com.google.devtools.build.lib.remote.merkletree.MerkleTree.lambda$build$2(MerkleTree.java:258)
	at com.google.devtools.build.lib.remote.merkletree.MerkleTree$$Lambda$843/0x0000000100831840.visitDirectory(Unknown Source)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:219)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:213)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:213)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:213)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:213)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:213)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:213)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:213)
	at com.google.devtools.build.lib.remote.merkletree.DirectoryTree.visit(DirectoryTree.java:197)
	at com.google.devtools.build.lib.remote.merkletree.MerkleTree.build(MerkleTree.java:249)
	at com.google.devtools.build.lib.remote.merkletree.MerkleTree.build(MerkleTree.java:218)
	at com.google.devtools.build.lib.remote.RemoteExecutionService.buildInputMerkleTree(RemoteExecutionService.java:406)
	at com.google.devtools.build.lib.remote.RemoteExecutionService.buildRemoteAction(RemoteExecutionService.java:454)
	at com.google.devtools.build.lib.remote.RemoteSpawnRunner.exec(RemoteSpawnRunner.java:185)
	at com.google.devtools.build.lib.exec.SpawnRunner.execAsync(SpawnRunner.java:245)
	at com.google.devtools.build.lib.exec.AbstractSpawnStrategy.exec(AbstractSpawnStrategy.java:146)
	at com.google.devtools.build.lib.exec.AbstractSpawnStrategy.exec(AbstractSpawnStrategy.java:108)
WARNING: Waiting for server process to terminate (waited 5 seconds, waiting at most 60)
WARNING: Waiting for server process to terminate (waited 10 seconds, waiting at most 60)
WARNING: Waiting for server process to terminate (waited 30 seconds, waiting at most 60)
INFO: Waited 60 seconds for server process (pid=169) to terminate.
WARNING: Waiting for server process to terminate (waited 5 seconds, waiting at most 10)
WARNING: Waiting for server process to terminate (waited 10 seconds, waiting at most 10)
INFO: Waited 10 seconds for server process (pid=169) to terminate.
FATAL: Attempted to kill stale server process (pid=169) using SIGKILL, but it did not die in a timely fashion.
~/envoy-filter-example/bazel-testlogs ~/envoy-filter-example
cp: cannot stat '': No such file or directory
##[error]Bash exited with code '1'.
Finishing: Run CI script bazel.compile_time_options

https://dev.azure.com/cncf/envoy/_build/results?buildId=133889&view=logs&j=e969334a-0e55-5c18-ac96-8b546753391e&t=b5329a9e-93c7-5412-9f4c-6f8d659e1b57&l=4918
im wondering if it could be that having multiple versions of bazel building similar trees is creating over-sized DAGs and causing bazel to crash in this case - may be a clue to other issues that seem to crop up with release ci
either way i think the solution is to one way or another separate out the action caches for the branches as we have (now successfully) for the bazel-remote local cache


coral(housekeeping) - Topic/Connector details: Rename "Documentation" to "Readme" and add description

Description

"Documentation" (topic, connector...) should be renamed to "Readme"
Add a description to:

Empty Doc banner (info what this is about etc)
View with existing docs (also explanation what this is about)

Needs input from Harshini.
Relevant screens:

I wonder if the description above is too lengthy. I can try to make it more concise if you find it long.

I'll make you a screenshot then we can check how it looks!

@harshini-rangaswamy  This is how the screens would look like:

If there is no readme yet

If user clicks add/edit readme

If user sees an existing readme

WDYT?

(I can't place the description closer to the headline, as the headline and button are one component form the DS and they have their own spacing)

WDYT?

I think it looks good. Maybe two small changes, remove the word expand (the more I read, I feel it is not required), and topic changes instead of topic evolves (to keep it simple).
The line would then be: Edit the readme to update the information as the topic changes.

(I can't place the description closer to the headline, as the headline and button are one component form the DS and they have their own spacing)

I understand.

Awesome, thank you ✨


Release 0.5.0 (or 0.4.1)

Can we please merge https://github.com/docker/go-units/pull/36 and release v0.4.1 (or v.0.5.0)?
Commits since v0.4.0 (at the moment this is just PR #40): https://github.com/docker/go-units/compare/v0.4.0...master

@thaJeztah PTAL (or do you think there is something else needed to be done for the next release? If yes, I am happy to help)

I pushed v0.5.0 https://github.com/docker/go-units/releases/tag/v0.5.0


Re organize the Drawer menu

@ThierryThevenet Can you please provide more details?

Waiting to figma screen

https://www.figma.com/file/gNQ9POVTHhxZQbzRQl6Qks/Altme?node-id=3759%3A9567&t=5cKX7bw2lpLe7CW1-1
do not implement today RED point

Size: XL


cwac-cam2 will be discontinued ?

Hello!
I've seen that the library cwac-cam2 will be discontinued in the coming weeks. You even recommend the use of other libraries, like CameraKit-Android.
This issue is just to make sure if this will really happen.
Is that correct?

In the future, please follow the instructions for getting support.
Yes, it will really happen.
The biggest difference between this library and alternatives like Fotoapparat and CameraKit-Android is that this library comes with "out of the box" activities, and those libraries do not. I am preparing a replacement for cwac-cam2 that will provide an API akin to that of cwac-cam2 and activities, but where the actual camera work is managed by your choice of Fotoapparat and CameraKit-Android. Once that replacement cwac-cam2 library is released, I will discontinue work on this library.


nixos/dovecot: do not run auth service under root

According to https://doc.dovecot.org/configuration_manual/service_configuration/#auth PAM lookups are done by auth-workers, so the auth process typically doesn’t need permissions to do anything
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Then the password shouldn't be owned by root? I'm also using a static password file but owned by dovecot2 (the default user auth service runs under)

Then this probably needs a simple-nixos-mailserver PR, I didn't create this file myself.


It works only in specific regions

I tried to use it on my pc and some remote servers. It doesn't work in most regions, nothing gets downloaded, but it says that it's finished. So far it only worked for me when i used vpn to connect to specific regions, only Ukraine and Sweden worked with my vpn. When i tried to make remote server in Sweden, it still didn't work without vpn, even though i connected it from Sweden to Sweden.

I stopped working on this project about a year ago, but I'll start it again soon.


Windows Error 1921 - 0x80070781 - The name of the file cannot be resolved by the system

I just installed Windows 10 Pro Fall Creators Update but I can not enable WSL. I have tried it in 3 different ways:

Turn Windows Features on or off

PowerShell as Administrator
Windows PowerShell
Copyright (C) Microsoft Corporation. Todos los derechos reservados.
PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature : El sistema no puede resolver el nombre del archivo.
En línea: 1 Carácter: 1
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...  + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
  + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

Cmd as Administrator
C:\WINDOWS\system32>Dism /online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All
Herramienta Administración y mantenimiento de imágenes de implementación
Versión: 10.0.16299.15
Versión de imagen: 10.0.16299.19
Habilitando características
[==========================100.0%==========================]
Error: 1921
El sistema no puede resolver el nombre del archivo.
El archivo de registro de DISM se encuentra en C:\WINDOWS\Logs\DISM\dism.log

Thanks in advance

I have exactly the same issue on Windows 10 Education (Pro Fall Creators Update installed)
Turn WSL Windows Features on:

Powershell:
PS C:\WINDOWS\system32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature : Der Dateiname konnte durch das System nicht zugeordnet werden.
In Zeile:1 Zeichen:1

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...

  + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
  + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

Try DISM.exe /Online /Cleanup-image /Restorehealth, them retry.

Same problem.  Just updated to Fall Creator's update after doing an lxrun /uninstall and turning off WSL and Developer Mode.  Now I can't turn WSL on at all.  I get 0x80070781 error code regardless of which of the three methods described above I use.  I tried 0xbadfca11's suggestion without success.
Not sure if it matters, but when I did the update, I had storage settings set to install apps to a different drive than the boot drive.  I found instructions that indicate this could cause trouble:
https://msdn.microsoft.com/en-us/commandline/wsl/install_guide

Rolled back to update 1703, re-enabled Developer Mode but was not able to re-enable Windows Subsystem for Linux (Beta).  Same behavior and I get the same error message.  So, whatever is causing the problem survived the rollback and has now broken WSL regardless of update version.  Used Windows 10 Update Assistant to roll forward to update 1709 again.  Still no joy.  Ironically, WSL was the whole reason I installed the update.

I'm having the same problem.

Finally, I had to reinstall Windows from scratch. That way I made it work for me. Thank you all.

that cant be the only way can it ?

More info in %WINDIR%\Logs\CBS\CBS.log
First error
2017-10-25 16:50:56, Error                 CSI    0000001d (F) c0000280 [Error,Facility=(system),Code=640 (0x0280)] #209055# from Windows::Rtl::SystemImplementation::DirectFileSystemProvider::SysCreateFile(flags = (AllowFileNotFound|AllowSharingViolation|0x00000100), handle = {provider=NULL, handle=0, name= ("null")}, da = (SYNCHRONIZE|FILE_READ_ATTRIBUTES), oa = @0xea208fb318->OBJECT_ATTRIBUTES {s:48; rd:NULL; on:[34]'??\C:\WINDOWS\System32\lxss\en-US'; a:(OBJ_CASE_INSENSITIVE)}, iosb = @0xea208fb378, as = (null), fa = 0, sa = (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE), cd = FILE_OPEN, co = (FILE_DIRECTORY_FILE|FILE_SYNCHRONOUS_IO_NONALERT|0x00004000), eab = NULL, eal = 0, disp = Invalid)
[gle=0xd0000280]
2017-10-25 16:50:56, Error                 CSI    0000001e@2017/10/25:13:50:56.181 (F) onecore\base\wcp\sil\merged\ntu\ntsystem.cpp(2938): Error c0000280 [Error,Facility=(system),Code=640 (0x0280)] originated in function Windows::Rtl::SystemImplementation::DirectFileSystemProvider::SysCreateFile expression: (null)
[gle=0x80004005]
and first error 0x80070781
2017-10-25 16:50:56, Error                 CSI    00000028 (F) HRESULT_FROM_WIN32(1921) #194218# from Windows::COM::CPendingTransaction::IStorePendingTransaction_Analyze(...)[gle=0x80070781]
2017-10-25 16:50:56, Error                 CSI    00000029 (F) HRESULT_FROM_WIN32(1921) #192659# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_Commit(Flags = 47, pSink = NULL, disp = 0, coldpatching = false)[gle=0x80070781]
2017-10-25 16:50:56, Error                 CSI    0000002a (F) HRESULT_FROM_WIN32(1921) #192658# 1927146 us from Windows::ServicingAPI::CCSITransaction_ICSITransaction::Commit(flags = 0x0000002f, pSink = NULL, disp = 0)
[gle=0x80070781]

I deleted the "C:\WINDOWS\System32\lxss" folder and tried again.
It works.
Thanks to @x893 !

Had the same problem with adding optional feature .NET Framework 3.5 after the upgrade to 1709. I had it enabled before the upgrade, but the upgrade for some reason removed it.
Error in CBS.log
2017-10-26 07:45:21, Error                 CSI    00000796 (F) c0000280 [Error,Facility=(system),Code=640 (0x0280)] #565888# from Windows::Rtl::SystemImplementation::DirectFileSystemProvider::SysCreateFile(flags = (AllowFileNotFound|AllowSharingViolation|0x00000100), handle = {provider=NULL, handle=0, name= ("null")}, da = (SYNCHRONIZE|FILE_READ_ATTRIBUTES), oa = @0x9ea3fac38->OBJECT_ATTRIBUTES {s:48; rd:NULL; on:[77]'??\C:\Program Files (x86)\MSBuild\Microsoft\Windows Workflow Foundation\v3.5'; a:(OBJ_CASE_INSENSITIVE)}, iosb = @0x9ea3fac98, as = (null), fa = 0, sa = (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE), cd = FILE_OPEN, co = (FILE_DIRECTORY_FILE|FILE_SYNCHRONOUS_IO_NONALERT|0x00004000), eab = NULL, eal = 0, disp = Invalid)
C:\Program Files (x86)\MSBuild\Microsoft\Windows Workflow Foundation\v3.5 was a symlink to a non-existing folder. Removed that and after that the installation worked with no problem.

Deleting the "C:\WINDOWS\System32\lxss" folder also works for me.

That did the trick

i fixed my problem, even though i had deleted the "lxss" folder there was still a symbolic link to a folder that used to be there.
i used "Junction Link Magic" , This showed me the symbolic link location
i simply ran as Administrator "rmdir {Location from "Junction Link Magic"}"
hope this helps some you you people out.
Nick

sorry link to program
link

Hope helpfull for lxss developer to fix installer.

Thanks guys used your tips to install Windows media player so I can run it once to get Microsoft Hyperlapse pro working on my Windows 10.
use junction link magic to identify symbolic links
find cmd and open as admin
rmdir the symbolic links that dont work
run optionalfeatures.exe from the cmd window
click media player and install

The same thing. i cannot fix my problem, check this out:

i have the same proble with the update and  using user in microsoft store i cant install or download from the store

I have the same problem with the update and using a user in Microsoft store I can't install or download from the store

Deleting the "C:\WINDOWS\System32\lxss" folder also works for me.

I can't seem to find the lxss folder in system32 and it is still not working

I had a broken symlink. Look for errors in C:\Windows\Logs\CBS\CBS.log when enabling the feature for hints.


playerBreakBlock event

[Enter feedback here]
In the playerBreakBlock event, the content obtained from event.block.typeId represents the block after destruction, which is usually air. However, I wish to obtain the ID of the block that was actually destroyed, such as dirt.

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

ID: 03ba6239-bea0-d390-3969-a6c6d700aa30
Version Independent ID: 03ba6239-bea0-d390-3969-a6c6d700aa30
Content: minecraft/server.PlayerBreakBlockAfterEvent Class
Content Source: creator/ScriptAPI/minecraft/server/PlayerBreakBlockAfterEvent.md
Service: minecraft-bedrock-edition
GitHub Login: @JakeShirley
Microsoft Alias: jashir

可以用event.brokenBlockPermutation.type.id获取被破坏方块的id，之前几个版本的文档写明了block是空气方块


why use add operation in TimeBlock layer

In the tensorflow implementation, the temporal_conv_layer result is the product of conv and sigmoid.
“ return (x_conv[:, :, :, 0:c_out] + x_input) * tf.nn.sigmoid(x_conv[:, :, :, -c_out:]) ”
could you explain why the add operation is used here?
temp = self.conv1(X) + torch.sigmoid(self.conv2(X))
out = F.relu(temp + self.conv3(X))

Same question as you

Yeah, no GLU .

I have the same question? Why addition rather than multiplication?


DMR: Technical Design

AS A Developer
I WANT a technical design covering all the components, technologies, platforms and programming languages used within a project
SO THAT I would have a clear understanding of the technical stack within which I can operate

[ ] Client requests to Chatbot
[ ] Chatbots
[ ] CentOps
[ ] DMR
[ ] Classifier
[ ] CI
[ ] CD

Was merged to main branch as an initial draft to keep working on.


Untranspiled modules are consumed over transpiled ones in Next5

[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior
When consuming packages with both transpiled and untranspiled modules, as defined in their package.json with main: pointing to the transpiled version and module: pointing to the untranspiled one, Next5 picks up the module: entry. I'm expecting Next to pick the main entry.
Current Behavior
Next5 picks up the module: entry.
Steps to Reproduce (for bugs)

Install a package that has both main: and module: defined in a package.json. For example:

main: 'dist/index.js'
module: `src/index.js`

Check that Next.js picks up src/index.js instead of dist/index.js

Context

Your Environment

Tech
Version

next
5.0.0

node
8.9.4

OS
macOS 10.13.2

browser
Firefox 58.0.2

etc

Sounds like an issue with webpack rather than with Next. We don't resolve modules in package.json, webpack / Node's require does.

@kenips What you are describing is how it is meant to work. Webpack and other bundlers prefer a module entry because ESM allows far more efficient bundling with tree shaking, etc.
Note that a module entry is not meant to point to untranspilled source. It is meant to point to distribution files, transpiled to have ESM syntax instead of CJS.
If a package incorrectly has module: src/index.js` you should raise an issue with that project.

@jaydenseric thanks for explaining 🙏


Why can't I use it? Is there something wrong

Is there a misunderstanding somewhere? GetClient retrieves data from the server. According to the example code, I cannot obtain the data. I request help. Thank you
"dependencies": {
		"@apollo/client": "^3.9.10",
		"@apollo/experimental-nextjs-app-support": "^0.10.0",
		"@headlessui/react": "^1.7.18",
		"@heroicons/react": "^2.1.3",
		"@next/bundle-analyzer": "^14.1.4",
		"@popmotion/popcorn": "^0.4.4",
		"@serprex/react-motion": "^0.6.3",
		"@successtar/cogo-toast": "^5.0.6",
		"@tailwindcss/forms": "^0.5.7",
		"cross-env": "^7.0.3",
		"dayjs": "^1.11.10",
		"graphql": "^16.8.1",
		"lodash": "^4.17.21",
		"mup-disk": "^0.2.0",
		"next": "14.1.4",
		"react": "^18",
		"react-dom": "^18",
		"react-markdown": "^9.0.1",
		"react-scroll": "^1.9.0",
		"react-spinners": "^0.13.8"
	},

./app/utils/apolloClient.js
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client';
import { registerApolloClient } from '@apollo/experimental-nextjs-app-support/rsc';

export const { getClient } = registerApolloClient(() => {
	return new ApolloClient({
		cache: new InMemoryCache(),
		link: new HttpLink({
			// this needs to be an absolute url, as relative urls cannot be used in SSR
			uri: 'http://localhost:3006/graphql',
			// you can disable result caching here if you want to
			// (this does not work if you are rendering your page with `export const dynamic = "force-static"`)
			// fetchOptions: { cache: "no-store" },
		}),
	});
});

./app/page.jsx
import { gql } from '@apollo/client';
import { getClient } from '@/app/utils/apolloClient';

const userQuery = gql`
	query {
		order(id: "1") {
			data {
				id
			}
		}
	}
`;

export default async function Home() {
	const { data } = await getClient().query({ query: userQuery });
	return
official home
;
}

result error:
 ✓ Compiled in 145ms (775 modules)
 ⨯<EMAIL_ADDRESS>(39:0) @ new ApolloError
 ⨯ ApolloError: fetch failed
    at new Promise (<anonymous>)
    at Array.forEach (<anonymous>)
null
 ⨯<EMAIL_ADDRESS>(39:0) @ new ApolloError
 ⨯ ApolloError: fetch failed
    at new Promise (<anonymous>)
    at Array.forEach (<anonymous>)
null
 ⨯<EMAIL_ADDRESS>(39:0) @ new ApolloError
 ⨯ ApolloError: fetch failed
    at new Promise (<anonymous>)
    at Array.forEach (<anonymous>)
digest: "3173386294"
null

The order interface on the backend is correct, and using apollo sandbox can retrieve data normally

@eugle have you solved this issue? I have the same one now

@dChunikhin please open a new issue with a thorough description of the problem you are experiencing. Chances are that @eugle had a different problem from you - "fetch failed" can have a thousand different reasons.


Convert Tokenizer to a Class

Love this project, solid work! Would be better DX and more maintainable codebase if LlamaTokenizer was a class though!🙏

Done in https://github.com/belladoreai/llama-tokenizer-js/commit/93ed89d6f252148448a8d9270c277e6202801b10


Improve 401 Error Logging

Closes https://github.com/scitran/core/issues/188
Adds additional logging to 'Invalid OAuth2 Token' logging. Discussion about additional changes that could be made can be found in the issue linked above.

LGTM.
@rentzso / @gsfr, if ya'll have some python vodoo to throw our way - Megan ran into a dict that resisted serialization, so she added a util func. A quick sanity check for our benefit in case there's a better way to accomplish this?

@nagem What's the offending value? And how were you trying to serialize? Simply, str(d)?

I'm still not sure exactly what is causing json.dumps to fail because when I use the str_from_dict method I added, none of the headers are changed to the error text. Here were the two ways I tried initially:
Code:
log.debug('Attempting to json dump dict')
log.debug(json.dumps(self.request.headers))

Log:
uwsgi_1          | 2016-03-16 19:22:53      scitran.api                  base.py    33:DEBU Attempting to json dump dict
uwsgi_1          | 2016-03-16 19:22:53             root               webapp2.py  1552:ERRO <webob.headers.EnvironHeaders object at 0x7f41303cef10> is not JSON serializable
uwsgi_1          | Traceback (most recent call last):
uwsgi_1          |   File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 1535, in __call__
uwsgi_1          |     rv = self.handle_exception(request, response, e)
uwsgi_1          |   File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 1529, in __call__
uwsgi_1          |     rv = self.router.dispatch(request, response)
uwsgi_1          |   File "./api/api.py", line 143, in dispatcher
uwsgi_1          |     rv = router.default_dispatcher(request, response)
uwsgi_1          |   File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 1278, in default_dispatcher
uwsgi_1          |     return route.handler_adapter(request, response)
uwsgi_1          |   File "/usr/local/lib/python2.7/dist-packages/webapp2.py", line 1101, in __call__
uwsgi_1          |     handler = self.handler(request, response)
uwsgi_1          |   File "./api/base.py", line 34, in __init__
uwsgi_1          |     log.debug(json.dumps(self.request.headers))
uwsgi_1          |   File "/usr/lib/python2.7/json/__init__.py", line 243, in dumps
uwsgi_1          |     return _default_encoder.encode(obj)
uwsgi_1          |   File "/usr/lib/python2.7/json/encoder.py", line 207, in encode
uwsgi_1          |     chunks = self.iterencode(o, _one_shot=True)
uwsgi_1          |   File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode
uwsgi_1          |     return _iterencode(o, 0)
uwsgi_1          |   File "/usr/lib/python2.7/json/encoder.py", line 184, in default
uwsgi_1          |     raise TypeError(repr(o) + " is not JSON serializable")

Code:
log.debug('Attempting to cast dict as string')
log.debug(str(self.request.headers))

Log:
uwsgi_1          | 2016-03-16 19:24:49      scitran.api                  base.py    33:DEBU Attempting to cast dict as string
uwsgi_1          | 2016-03-16 19:24:49      scitran.api                  base.py    34:DEBU <webob.headers.EnvironHeaders object at 0x7f30b00f4e10>

Here str(d) helpfully tells me it's an EnvironHeaders object

TL;DR: log.debug(json.dumps(self.request.headers.items())) or simply log.debug(str(self.request.headers.items())).
Ok, so we know that self.request.headers is a webob.headers.EnvironHeaders object, but json only knows how to serialize simple objects like list and dict.
The key to debugging this is getting a handle on one of these objects in an IPython shell, which has tab completion that greatly eases exploration.
import json, webapp2, webob.headers
req = webapp2.Request.blank('')
h = webob.headers.EnvironHeaders(req.environ)
json.dumps(h.items())

Thanks @gsfr, the str(dict.items()) works just fine. I should really make the IPython shell a more integral part of my daily dev process.
PR updated - removed str_from_dict. Will merge unless anyone else has any comments.

:+1:
Happy to help get you set up. @kofalt, you too.


ExchangeManager: temporary propagates SecureSessionMgrDelegate events…

Problem
#4451 Need a solution to get correct generated SecureSessionHandle for each new connection
Changes
Before fully migrated to messaging layer, there are lots of components depending on SecureSessionMgrDelegate events. Allow these components continuing receives these events to keep it compatible. Once we have fully migrated to the messaging layer, we can safely use mechanism provided by messaging layer to replace there events.

@pan-apple can you take a peek?
@kghost can you restyle please? :)

@pan-apple can you take a peek?
@kghost can you restyle please? :)

Instead of setting multiple clients as the delegate of SecureSessionMgr, now only ExchangeMgr is the delegate of SecureSessionMgr, I think this change is good.
But this temporary fix still not able to address the issue I hit. Now only device controller can receive the generated session handle.
mDeviceController->OnNewConnection(session, mgr);
I think this could solve the client which use device controller API, not not other clients, such as Echo app.

Instead of setting multiple clients as the delegate of SecureSessionMgr, now only ExchangeMgr is the delegate of SecureSessionMgr, I think this change is good.
But this temporary fix still not able to address the issue I hit. Now only device controller can receive the generated session handle.
mDeviceController->OnNewConnection(session, mgr);
I think this could solve the client which use device controller API, not not other clients, such as Echo app.

This is the limitation of current device controller API, it is not able to dispatch the event to multiple receivers. The problem will be solved by Channel API.
If your testing code doesn't need the device controller you can set the event receiver to your class, I'll change the variable name to reduce confusions.

This is the limitation of current device controller API, it is not able to dispatch the event to multiple receivers. The problem will be solved by Channel API.
If your testing code doesn't need the device controller you can set the event receiver to your class, I'll change the variable name to reduce confusions.

This is the limitation of current device controller API, it is not able to dispatch the event to multiple receivers. The problem will be solved by Channel API.
If your testing code doesn't need the device controller you can set the event receiver to your class, I'll change the variable name to reduce confusions.

Current logic only allow the last registered one to receive session event.
CHIP_ERROR ExchangeManager::Init(SecureSessionMgr * sessionMgr, SecureSessionMgrDelegate * secureSessionEventReceiver)
Since there is only one mSecureSessionEventReceiver in exchangeManager, if IM register as the secureSessionEventReceiver over device controller API, the BDX and Echo are blocked for good. If BDX and Echo also register as the secureSessionEventReceiver, then IM will no longer to receive the session event.
I think we might need to use a list of secureSessionEventReceivers instead of single one to serve for all active protocols.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@woody-apple would you please check and help merging this one ? Pankaj have already approved this one.

Instead of using a temporary solution, we should find a more better solution instead.


Fix file extensions in template examples

Each template example was set to .njk file extension instead of the corresponding template file extension.

Ah, sorry I think the current code is accurate! All of those template examples are using a Nunjucks Eleventy Layout template file at _includes/mylayout.njk

Ah, sorry I think the current code is accurate! All of those template examples are using a Nunjucks Eleventy Layout template file at _includes/mylayout.njk

Thanks Zach, that makes sense. I've created a new issue and pull request to address the confusion I had experienced first look at this documentation.
https://github.com/11ty/11ty-website/issues/1522