text:
Organization members page has crowded UI

Description
When viewing the organization's members page as an admin, there are too many buttons in one row, causing the UI to look very bunched and crowded. This PR proposes putting the edit/delete buttons that only appear for organization admins onto a separate row below, and removes the 'min-width' set for bubble type labels (admin/maintainer) which caused the maintainer label to overflow.
Issue
SEAB-4362
Please make sure that you've checked the following before submitting your pull request. Thanks!

[ ] Check that your code compiles by running npm run build
[ ] If this is the first time you're submitting a PR or even if you just need a refresher, consider reviewing our style guide
[ ] Do not bypass Angular sanitization (bypassSecurityTrustHtml, etc.), or justify why you need to do so
[ ] If displaying markdown, use the markdown-wrapper component, which does extra sanitization
[ ] Do not use cookies, although this may change in the future
[ ] Run npm audit and ensure you are not introducing new vulnerabilities
[ ] Do due diligence on new 3rd party libraries, checking for CVEs
[ ] Don't allow user-uploaded images to be served from the Dockstore domain

Before changes:

After:


text:
Feature/seab 415/tos banner for logged out users

Added dismissible banner to alert logged out users of TOS and privacy policy.

Kudos to the screen shot!

How did you manage to attach the gif?

@coverbeck Does not handle that case. You would have to accept it if you logged back out. Seems less annoying for the user to set the local storage on login/register, so I can change it if others agree.

@agduncan94 you can actually just drag the file into the box. Does not accept .mp4 files though.

with material icon/button

source: gharchive/pull-request

authors: NatalieEO agduncan94 coverbeck

license_type: permissive

license_source: bigquery


text:
Doctrine\Common metadata drivers reuse

This PR is strictly related with https://github.com/doctrine/common/pull/98 and tests won't pass until the doctrine-common submodule points to a merged version of it (will do so later, so please don't merge now ).
Basically, I just stripped any code duplicate of what already available in dcom master under Doctrine\Common\Persistence\Mapping\Driver.
Tests are OK on my environment when using the new commons submodule.

I removed the driver as @stof pointed out that it is impossible to keep BC.
Will keep the AbstractFileDriver until I get feedback.
Same applies to the SimplifiedXmlDriver and SimplifiedYamlDriver.

@Ocramius you removed the interface but forgot to remove the implements Driver in all drivers, meaning they are broken (btw, you should run the testsuite. the PHP Fatal error would have been detected)

and if you don't want to setup the testsuite locally (which would be a bad news), you can at least activate travis-ci in your fork to run it.

I run the suite before every commit... Just forgot to remove the file :)

I've also rewritten SimplifiedYamlDriver and SimplifiedXmlDriver to use the new SimplifiedFileLocator, which could eventually be moved to Doctrine\Common

This will need some changes by merging master again. Please let me know when/if I should work on it.

source: gharchive/issue

authors: Ocramius stof

license: mit


text:
Escape colons in DoctrineNamespaceCacheKey[]

Using the redis cache driver, I want to be able to use doctrine: as my namespace, as this will turn doctrine into a folder thus keeping redis browsable. However, as the colon is not escaped, this key stops working:  DoctrineNamespaceCacheKey[doctrine:]

@Dadibom can you report this on doctrine/cache please?
Also, not sure if this shouldn't simply be reported as redis issue...

authors: Dadibom Ocramius


text:
Integer keys with a value of 0 are not saved

class Foo {
	public
		/** @Int */
		$bar
	;
}

$foo = new Foo;
$foo->bar = 0;
$dm->persist($foo);
$dm->flush(); //Foo { }

$foo = new Foo;
$foo->bar = 1;
$dm->persist($foo);
$dm->flush(); //Foo { bar: 1 }

Closing the issue for now, @Bilge2 feel free to reopen if it's still happening

repo: doctrine/mongodb-odm


text:
Version 6.2.0 release

Changed

Added support for version v2.1-22.4.00.00 of the DocuSign ESignature API.
Updated the SDK release version.

AppVeyor build and test pass.

authors: AppVeyorBot eleanorharris

repo: docusign/docusign-esign-csharp-client

license: MIT

license_source: github-api


text:
Dutch/Flamish Translation Update

Changed Typo Saldi to Saldo.
Added translation to most of the type="unfinished" might have missed some.

Should i remove the Class type="unfinished" on the edited lines or should the reviewer do that?

Thank you ❤

Changed Typo Saldi to Saldo.

I think "Saldi" is technically correct because it's plural, but I guess "Saldo" makes it more recognizable for anyone that isn't an accountant and okay for the context it's used in, so let's keep your version.

Should i remove the Class type="unfinished" on the edited lines or should the reviewer do that?

I'll do a review myself later today - I only saw some minor things at a glance - so to save you having to go over it many times, can just do it after that.

just learned something new then haha

sounds good to me!

i just saw a lot of unfinished translation, would you like me to translate those, but keep te class unfinished to it?

If you want to translate more, feel free to remove type="unfinished" straight for each that you propose - based on what we did the past few days, we'll turn this around pretty quickly, so no need to keep the unfinished tag - we'll just finish it 😁

oke will do the rest tomorrow, just updated right now!

Just updated! Feeling more confident that everything is translated haha

Have done one more update, looked over the file and saw some missing parts, sorry for the multiple updates, should have done it in 1 go haha

just did the update on your review also thanks mom! <3

I squashed your commits for you as agreed above. Awaiting CI for final ACK.
Thank you for this!!!

no problem at all! if there is anything that i see i'm capable of, i'd love to help!

authors: Maniixer patricklodder

repo: dogecoin/dogecoin


text:
Coding Challenge code related

Reviews:
This PR introduces the main logic of the exercise. The structure is modular, adhering to clean architecture principles, with separation between domain, platform, and application layers.
cmd

contains application executable.

features

contains behavior tests.

domain

contains the business logic and definitions.

platform

encapsulates the application's platform-level services and functionality.

platform\app

Initializes the application locator (presumably a dependency injection container).

platform\cli

contains CLI implementation.

platform\helpers

contains utility functions for reducing boilerplate and simplifying tests.

platform\service

contains implementation of gRPC, REST services.

platform\reader and platform\storage

contains implementation of use case-specific readers and storage.

Lines Of Code

Language
Files
Lines
Code
Comments
Blanks
Complexity
Bytes

Gherkin Specification
3 (+2)
61 (+55)
49 (+45)
0
12 (+10)
3 (+3)
3.1K (+2.9K)

Go
43 (+20)
1791 (+927)
1272 (+653)
161 (+80)
358 (+194)
176 (+103)
40.7K (+22.2K)

Go (gen)
6 (+3)
874 (+272)
655 (+190)
104 (+26)
115 (+56)
79 (+20)
34.1K (+8.3K)

Go (test)
9 (+5)
937 (+509)
693 (+349)
45 (+34)
199 (+126)
37 (+20)
22.8K (+12.6K)

Integration Test Coverage
total:											(statements)			77.4%
changed lines: (statements) 77.7%, coverage is less than 90.0%, consider testing the changes more thoroughly
Coverage of changed lines

File
Function
Coverage

Total

77.7%

internal/domain/model/geolocation.go

68.6%

internal/domain/model/geolocation.go:35
DecodeGeolocation
92.4%

internal/domain/model/geolocation.go:68
IsValid
57.6%

internal/domain/usecase/GeolocationByIP.go

100.0%

internal/domain/usecase/GeolocationByIP.go:25
NewGeolocationByIPExposer
100.0%

internal/domain/usecase/GeolocationByIP.go:34
ExposeGeolocationByIP
100.0%

internal/domain/usecase/GeolocationDataProcessor.go

78.7%

internal/domain/usecase/GeolocationDataProcessor.go:36
NewParseGeolocationData
100.0%

internal/domain/usecase/GeolocationDataProcessor.go:133
succeed
100.0%

internal/domain/usecase/GeolocationDataProcessor.go:140
failed
100.0%

internal/domain/usecase/GeolocationDataProcessor.go:44
Process
75.3%

internal/platform/app/init.go

72.2%

internal/platform/app/init.go:103
NewServiceLocator
100.0%

internal/platform/app/init.go:240
setupStorage
100.0%

internal/platform/app/init.go:244
setupUsecaseDependencies
100.0%

internal/platform/app/init.go:357
GeoStorage
100.0%

internal/platform/app/init.go:256
setupServices
96.2%

internal/platform/cli/vio.go

69.2%

internal/platform/cli/vio.go:45
NewCliApp
79.7%

internal/platform/reader/filesystem.go

81.8%

internal/platform/reader/filesystem.go:24
NewFileSystem
100.0%

internal/platform/reader/filesystem.go:32
ReadGeolocationData
84.4%

internal/platform/service/grpc.go

88.2%

internal/platform/service/grpc.go:38
NewVioService
100.0%

internal/platform/service/grpc.go:56
RegisterService
100.0%

internal/platform/service/grpc.go:63
GeolocationByIPExposer
88.9%

internal/platform/service/rest.go

87.5%

internal/platform/service/rest.go:46
RegisterServiceHandler
100.0%

internal/platform/service/rest.go:28
NewVioRESTService
96.2%

internal/platform/storage/geolocation.go

78.9%

internal/platform/storage/geolocation.go:25
NewGeolocation
100.0%

internal/platform/storage/geolocation.go:53
FindGeolocationByIP
98.2%

internal/platform/storage/geolocation.go:35
SaveGeolocation
85.7%

cmd/vio/doc.go

no coverage

cmd/vio/main.go

no coverage

cmd/viod/doc.go

no coverage

cmd/viod/main.go

no coverage

internal/domain/model/doc.go

no coverage

internal/domain/usecase/doc.go

no coverage

internal/domain/usecase/mocks/geolocation_by_ip_finder.go

no coverage

internal/domain/usecase/mocks/geolocation_data_reader.go

no coverage

internal/domain/usecase/mocks/geolocation_data_storage.go

no coverage

internal/platform/cli/doc.go

no coverage

internal/platform/helpers/doc.go

no coverage

internal/platform/helpers/sample.go

no coverage

internal/platform/reader/doc.go

no coverage

internal/platform/service/doc.go

no coverage

internal/platform/storage/doc.go

no coverage

Coverage diff with base branch
Missing base coverage file

Unit Test Coverage
total:												(statements)						50.0%
changed lines: (statements) 45.3%, coverage is less than 90.0%, consider testing the changes more thoroughly
Coverage of changed lines

File
Function
Coverage

Total

45.3%

cmd/vio/main.go

0.0%

cmd/vio/main.go:10
main
0.0%

cmd/viod/main.go

0.0%

cmd/viod/main.go:17
main
0.0%

internal/domain/model/geolocation.go

77.1%

internal/domain/model/geolocation.go:35
DecodeGeolocation
97.8%

internal/domain/model/geolocation.go:68
IsValid
57.6%

internal/domain/usecase/GeolocationByIP.go

80.0%

internal/domain/usecase/GeolocationByIP.go:25
NewGeolocationByIPExposer
100.0%

internal/domain/usecase/GeolocationByIP.go:34
ExposeGeolocationByIP
83.3%

internal/domain/usecase/GeolocationDataProcessor.go

85.1%

internal/domain/usecase/GeolocationDataProcessor.go:36
NewParseGeolocationData
100.0%

internal/domain/usecase/GeolocationDataProcessor.go:133
succeed
100.0%

internal/domain/usecase/GeolocationDataProcessor.go:140
failed
100.0%

internal/domain/usecase/GeolocationDataProcessor.go:44
Process
83.5%

internal/domain/usecase/mocks/geolocation_by_ip_finder.go

33.9%

internal/domain/usecase/mocks/geolocation_by_ip_finder.go:21
EXPECT
0.0%

internal/domain/usecase/mocks/geolocation_by_ip_finder.go:26
FindGeolocationByIP
0.0%

internal/domain/usecase/mocks/geolocation_by_ip_finder.go:61
FindGeolocationByIP
0.0%

internal/domain/usecase/mocks/geolocation_by_ip_finder.go:65
Run
0.0%

internal/domain/usecase/mocks/geolocation_by_ip_finder.go:72
Return
0.0%

internal/domain/usecase/mocks/geolocation_by_ip_finder.go:77
RunAndReturn
0.0%

internal/domain/usecase/mocks/geolocation_by_ip_finder.go:84
NewGeolocationByIPFinder
0.0%

internal/domain/usecase/mocks/geolocation_data_reader.go

39.7%

internal/domain/usecase/mocks/geolocation_data_reader.go:20
EXPECT
0.0%

internal/domain/usecase/mocks/geolocation_data_reader.go:25
ReadGeolocationData
0.0%

internal/domain/usecase/mocks/geolocation_data_reader.go:61
ReadGeolocationData
0.0%

internal/domain/usecase/mocks/geolocation_data_reader.go:65
Run
0.0%

internal/domain/usecase/mocks/geolocation_data_reader.go:72
Return
0.0%

internal/domain/usecase/mocks/geolocation_data_reader.go:77
RunAndReturn
0.0%

internal/domain/usecase/mocks/geolocation_data_reader.go:84
NewGeolocationDataReader
0.0%

internal/domain/usecase/mocks/geolocation_data_storage.go

34.1%

internal/domain/usecase/mocks/geolocation_data_storage.go:21
EXPECT
0.0%

internal/domain/usecase/mocks/geolocation_data_storage.go:26
SaveGeolocation
0.0%

internal/domain/usecase/mocks/geolocation_data_storage.go:51
SaveGeolocation
0.0%

internal/domain/usecase/mocks/geolocation_data_storage.go:55
Run
0.0%

internal/domain/usecase/mocks/geolocation_data_storage.go:62
Return
0.0%

internal/domain/usecase/mocks/geolocation_data_storage.go:67
RunAndReturn
0.0%

internal/domain/usecase/mocks/geolocation_data_storage.go:74
NewGeolocationDataStorage
0.0%

internal/platform/app/init.go

33.3%

internal/platform/app/init.go:103
NewServiceLocator
0.0%

internal/platform/app/init.go:240
setupStorage
0.0%

internal/platform/app/init.go:244
setupUsecaseDependencies
0.0%

internal/platform/app/init.go:256
setupServices
0.0%

internal/platform/app/init.go:357
GeoStorage
0.0%

internal/platform/cli/vio.go

0.0%

internal/platform/cli/vio.go:45
NewCliApp
0.0%

internal/platform/helpers/sample.go

46.5%

internal/platform/helpers/sample.go:22
LoadSampleData
92.1%

internal/platform/helpers/sample.go:93
LoadAllSampleData
0.0%

internal/platform/reader/filesystem.go

81.8%

internal/platform/reader/filesystem.go:24
NewFileSystem
100.0%

internal/platform/reader/filesystem.go:32
ReadGeolocationData
84.4%

internal/platform/service/grpc.go

20.6%

internal/platform/service/grpc.go:38
NewVioService
100.0%

internal/platform/service/grpc.go:56
RegisterService
100.0%

internal/platform/service/grpc.go:63
GeolocationByIPExposer
0.0%

internal/platform/service/rest.go

43.8%

internal/platform/service/rest.go:46
RegisterServiceHandler
100.0%

internal/platform/service/rest.go:28
NewVioRESTService
98.5%

internal/platform/storage/geolocation.go

89.5%

internal/platform/storage/geolocation.go:25
NewGeolocation
100.0%

internal/platform/storage/geolocation.go:53
FindGeolocationByIP
96.4%

internal/platform/storage/geolocation.go:35
SaveGeolocation
94.3%

cmd/vio/doc.go

no coverage

cmd/viod/doc.go

no coverage

internal/domain/model/doc.go

no coverage

internal/domain/usecase/doc.go

no coverage

internal/platform/cli/doc.go

no coverage

internal/platform/helpers/doc.go

no coverage

internal/platform/reader/doc.go

no coverage

internal/platform/service/doc.go

no coverage

internal/platform/storage/doc.go

no coverage

Coverage diff with base branch
Missing base coverage file

repo: dohernandez/vio


text:
is there a carousel Prop for TS?

Hello,
I created a Model and want to add CarouselProps like this:
export interface CarouselRotate extends "CarouselProps" {

}

But I dont find the Type or Interface.

authors: dohooo shop-fluencer

repo: dohooo/react-native-reanimated-carousel


text:
[BUG] Typescript bindings generation order is random

Describe the bug
Every time we generate typescript bindings, the order of models in models.gen.ts is changed.
It makes it impossible to review the generated models.
And is terrible to track changes and update the client after contract changes.
To Reproduce
Build dojo-starter multiple times and compare the bindings.
If there was no change in the models, they should not be updated.
# clone dojo-starter
$ git clone https://github.com/dojoengine/dojo-starter
Cloning into 'dojo-starter'...
$ cd dojo-starter

# build once and backup the bindings
$ sozo build --typescript
   Compiling dojo_starter v1.0.2 (/Users/roger/Dev/Realms/dojo-starter/Scarb.toml)
    Finished `dev` profile target(s) in 4 seconds
$ cp bindings/typescript/models.gen.ts bindings/typescript/models.gen-0.ts

# build again multiple times and compare...
$ sozo build --typescript
   Compiling dojo_starter v1.0.2 (/Users/roger/Dev/Realms/dojo-starter/Scarb.toml)
    Finished `dev` profile target(s) in 4 seconds
$ diff bindings/typescript/models.gen.ts bindings/typescript/models.gen-0.ts
33a34,40
> // Type definition for `dojo_starter::models::Vec2` struct
> export interface Vec2 {
> 	fieldOrder: string[];
> 	x: BigNumberish;
> 	y: BigNumberish;
> }
>
47,53d53
< // Type definition for `dojo_starter::models::Vec2` struct
< export interface Vec2 {
< 	fieldOrder: string[];
< 	x: BigNumberish;
< 	y: BigNumberish;
< }
<
68a69
> 		Vec2: Vec2,
71d71
< 		Vec2: Vec2,
100a101,105
> 		Vec2: {
> 			fieldOrder: ['x', 'y'],
> 			x: 0,
> 			y: 0,
> 		},
110,114d114
< 		Vec2: {
< 			fieldOrder: ['x', 'y'],
< 			x: 0,
< 			y: 0,
< 		},

Expected behavior
The generated sources should be deterministic and historically accurate.

I see #2816 is ordering the models
but contracts.gen is still completely random

@MartianGreed should be at the contract level + events. (models are ok)

authors: glihm rsodre

repo: dojoengine/dojo


text:
feat: introduce the sozo verify command + execute "--walnut" flag enabled

This PR includes:

Introducing the sozo verify which verifies contracts in Walnut. Existing verification workflow during migration is removed.
execute --walnut flag is now enabled.

Summary by CodeRabbit
Release Notes

New Features

Introduced a new Verify command for verifying workspaces.
Added functionality for conditional usage of the WalnutDebugger.

Improvements

Enhanced error messages for contract address retrieval.
Simplified the verification process with a new walnut_verify function.

Bug Fixes

Improved handling of transaction results in the WalnutDebugger.

Chores

Added a new dependency for dojo-utils to support workspace functionalities.

Hey @glihm. Here are the answers (and some questions):

Yes we did, Walnut backend will handle everything correctly.
Can you provide any details regarding the migration date? We will prepare to do required changes on Walnut side as well.

@glihm I've pushed fixes after your comments. Pls take a look, thanks !

@glihm Thanks for great suggestions, I went to this direction - so now we have sozo walnut verify command. Please take a look, thanks!


text:
After updating to 2021.2 EAP, the background color of the autocomplete candidate box is incorrect

IntelliJ IDEA 2021.2 EAP (Community Edition)
Build #IC-212.3116.43, built on May 27, 2021
Runtime version: 16+36-202103192335 amd64
VM: OpenJDK 64-Bit Server VM by AdoptOpenJDK
Windows 10 10.0
GC: ZGC
Memory: 16384M
Cores: 32
Registry: ide.intellij.laf.enable.animation=true, debugger.watches.in.variables=false, ide.tooltip.initialDelay=0, ide.balloon.shadow.size=0
Non-Bundled Plugins: amadeus.maho (212.3116.43), io.acari.DDLCTheme (15.1.0)
Kotlin: 212-1.4.32-release-IJ3116.43

This is what it looks like now.

This is what it looked like before.

Thank you for bringing this to my attention!
It was localized to all the light themes, and the current theme that I am using is dark. Which is why I didn't catch this before releasing.

@Unthrottled

It is currently turning nearly white, is it possible to regain the previous behavior?

@NekoCaffeine Oh yeah, I forgot that you use a custom editor scheme
You can plop
<option name="LOOKUP_COLOR" value="FFE0F0"/>

In the <colors> portion of your icls file.
I'll add the deprecated "CompletionPopup.background" back in a bit, so that doesn't happen for other users.

Okay, I'll try it later.

Aight, I put the change in that makes it such that you shouldn't have to modify your icls file now. You can still add it though, that way if the CompletionPopup.background ever gets removed from platform, you'll still have a consistent lookup window.

Tested and found no problems.

authors: NekoCaffeine Unthrottled

repo: doki-theme/doki-theme-jetbrains


text:
Add MangaWorld for Italian Manga

Description
This beautiful app can't find Italian manga
Desired Behavior
It's possible to add https://www.mangaworld.ac ? this is an Italian site with a lot of manga translated in Italian
Additional Context
No response
Code of Conduct

[ ] I agree to follow Teemii's Code of Conduct

https://www.mangaworld.ac

repo: dokkaner/teemii


text:
Add more support to Xml Comments?

I am relatively new to GitHub, so I am not sure if this is already in the works for the next version or not.
I noticed these are the ones supported currently:

Action summary -> Operation.summary
Action remarks -> Operation.description
Parameter summary -> Parameter.description
Type summary -> Schema.descripton
Property summary -> Schema.description (i.e. on a property Schema)

I think it would be great to add support to other tags (e.g. <example>, <see>, <seealso>, etc) especially for a property schema. This would help show some examples of how to fill in the property (provided by <example>), with the option of going to a URL (provided by <see>) to see what values are available.
I currently have this apply as a custom implementation of ISchemaFilter, but I think it would be nice to incorporate it natively in the ApplyXmlTypecomments.cs and the likes.

Hi Team, is there any workarounds for a seealso, so that the user can jump to a model schema definition from the description of the endpoint in the documentations ui?

I haven't found any way to provide example to endpoint users. This function would be the most valuable for me

@TonySulaiman How did you apply the custom implementation of ISchemaFilter? I'm trying to figure out how to display  and add a URL with  to link endpoints

Once we have a custom implementation of ISchemaFilter, applying it would be in the EnableSwagger.
            var swaggerEnabledConfiguration = configuration.EnableSwagger("swagger/docs/{apiVersion}", c =>
            {
                c.SchemaFilter<ShowUrl>();
                // Some other configurations here
            }
//--snip--
        private sealed class ShowUrl : ISchemaFilter
        {
            // Custom Implementation here
        }

@TonySulaiman Specifically, how were you able to implement showing the URL in ISchemaFilter?

If you search for the file ApplyXmlTypeComments.cs in this repository, it shows taking  tag to be put in the description. I pretty much used the same methodology in the Apply method of the ShowUrl class to take <see> tag to be put in the description with "{url}" so that it becomes a clickable link.

I am also looking forward to this improvement.
///
/// Source here
///

authors: TonySulaiman emsiu giovanniramos iamkarlson tenbits

repo: domaindrivendev/Swashbuckle


text:
.NET core for 4.6

We are using .Net core 1.0 and compiling to 4.61  and Swashbuckle.SwaggerUi says it is not supported.

Which version of SB are you using? For .NET Core, there's a pre-release version of SB - 6.0.0-beta901.

authors: bklooste domaindrivendev


text:
doesn't work on IOS

Hello,
Do you know why it doesn'twork on IOS , I mean it is not possible to login to https://domfarolino.com/angular2-login-seed/ using an IPAD !
Thanks ;-)

I have no problem on my iPhone 6+ on either Safari or Chrome. Can you post a screenshot of what you see and or console output my hooking iPad up to a computer with safari so you can debug mobile? It might give a useful error.

Hi Dom,
I can't see what's happening on my Ipad2 mini because I don't have a Mac to debug it. However I have just installed chrome on my Ipad (just to see if it comes from safari..) but I got the same problem I got with safari. A screenshot wouldn't help because nothing happens it stucks on login page. I'll try to find a Mac to debug it and give the error messages.
Thanks

What version of Safari is it on your iPad
On Sun, Dec 25, 2016 at 7:43 PM cissecedric notifications@github.com
wrote:

Hi Dom,
I can't see what's happening on my Ipad2 mini because I don't have a Mac
to debug it. However I have just installed chrome on my Ipad (just to see
if it comes from safari..) but I got the same problem I got with safari. A
screenshot wouldn't help because nothing happens it stucks on login page.
I'll try to find a Mac to debug it and give the error messages.
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/domfarolino/angular2-login-seed/issues/19#issuecomment-269143922,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJOKqVEEHP5iiW9cPQCkb7HF7YR6xa-xks5rLw3HgaJpZM4LVeQy
.

--
Sent from my iPhone

version/9.0 Mobile/13G36 Safari/601.1
ios 9.3.5
Thanks,

authors: cissecedric domfarolino


text:
Playing Spotify on cast device

Try to play Spotify on cast device (Google home mini) but music does not start. It was already working but not anymore...
In the log I got a timeout:
2021-01-02 11:19:25,664 - ERROR - Google_Home_Mini_Julia: Failed to play spotify track Traceback (most recent call last): File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 302, in playSpotify await utils.run_blocking(functools.partial(sp.launch_app)) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 29, in run_blocking return await asyncio.get_event_loop().run_in_executor(pool, function) File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/opt/fhem/.local/lib/python3.7/site-packages/pychromecast/controllers/spotify.py", line 89, in launch_app "Timeout when waiting for status response from Spotify app"

Hi,
does it work on other googlecast devices? Do you have the same sp_dc and sp_key values for all your googlecast devices?

Hi,
does it work on other googlecast devices? Do you have the same sp_dc and sp_key values for all your googlecast devices?

I´ve got the same values for all devices. Its not working on Google Home Google Home Mini and Chromecast Devices.
Readings are changing but does not start to play, List of a device:
Internals:
CASTNAME   Bureau
DEF        googlecast 'Bureau'
FUUID      5f7ff470-f33f-7f5e-d8fb-4ac803b892f29f91
IODev      local_pybinding
NAME       Google_Home_Mini_Bureau
NR         1137
PYTHONTYPE googlecast
STATE      online
TYPE       PythonModule
READINGS:
2021-01-02 14:05:58   app_id          CC32E753
2020-12-30 11:34:54   cast_type       audio
2021-01-02 03:52:51   connection      connected
2021-01-02 14:05:58   display_name    Spotify
2021-01-02 14:05:58   icon_url        https://lh3.googleusercontent.com/HOX9yqNu6y87Chb1lHYqhKVTQW43oFAFFe2ojx94yCLh0yMzgygTrM0RweAexApRWqq6UahgrWYimVgK
2020-12-30 11:34:54   ignore_cec      0
2020-12-30 21:09:31   mediaAlbum
2020-12-30 21:09:31   mediaArtist
2020-12-30 21:09:31   mediaContentId
2020-12-30 21:09:31   mediaContentType
2020-12-30 21:09:31   mediaCurrentPosPercent
2020-12-30 21:09:31   mediaCurrentPosition
2020-12-30 21:09:31   mediaDuration
2020-12-30 21:09:31   mediaImageHeight
2020-12-30 21:09:31   mediaImageUrl
2020-12-30 21:09:31   mediaImageWidth
2020-12-30 21:09:31   mediaPlayerState UNKNOWN
2020-12-30 21:09:31   mediaStreamType UNKNOWN
2020-12-30 21:09:31   mediaTitle
2020-12-30 11:34:54   model_name      Google Home Mini
2020-12-30 12:31:33   mute            0
2020-12-30 11:34:54   name            Bureau
2021-01-02 14:05:58   session_id      astertwer-rterte-41ff-reter-wertwertwer
2021-01-01 02:04:33   spotify_user    my .username(my@email.com)
2021-01-02 03:52:51   state           online
2021-01-02 14:05:58   status_text     Spotify
2021-01-02 14:05:58   transport_id    adsads-asdda-asdasd-rr-rew
2020-12-30 11:34:54   uuid            wre-7397-rwe-ea12-rwerwer
2021-01-01 16:08:27   volume          10
args:
Google_Home_Mini_Bureau
PythonModule
googlecast
Bureau
argsh:
Attributes:
DbLogExclude .*
IODev      local_pybinding
alias      Bureau
favorite_1 http://wdr-1live-live.icecast.wdr.de/wdr/1live/live/mp3/128/stream.mp3
favorite_2 https://radios.rtbf.be/pure-128.mp3
favorite_3 http://spoonradio.ice.infomaniak.ch/spoonradio-hd.mp3
favorite_4 http://radios.rtbf.be/classic21-128.mp3
favorite_5 https://open.spotify.com/playlist/37i9dQZF1DX0zmsulfyDdq
group      GoogleCast
icon       gassistant
room       77_GoogleCast,33_Bureau
spotify_sp_dc SP_DC_kasöopfgdogsdoiasopd
spotify_sp_key SP_KEY_skpoerwo-b12a-412e3b444e1e
userattr   Status Status_map favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 strPythonModuleDevices strPythonModuleDevices_map structexclude
webCmd     playFavorite:play:pause:stop:volume

I´ve got the same values for all devices. Its not working on Google Home Google Home Mini and Chromecast Devices.
Readings are changing but does not start to play, List of a device:
Internals:
CASTNAME   Bureau
DEF        googlecast 'Bureau'
FUUID      5f7ff470-f33f-7f5e-d8fb-4ac803b892f29f91
IODev      local_pybinding
NAME       Google_Home_Mini_Bureau
NR         1137
PYTHONTYPE googlecast
STATE      online
TYPE       PythonModule
READINGS:
2021-01-02 14:05:58   app_id          CC32E753
2020-12-30 11:34:54   cast_type       audio
2021-01-02 03:52:51   connection      connected
2021-01-02 14:05:58   display_name    Spotify
2021-01-02 14:05:58   icon_url        https://lh3.googleusercontent.com/HOX9yqNu6y87Chb1lHYqhKVTQW43oFAFFe2ojx94yCLh0yMzgygTrM0RweAexApRWqq6UahgrWYimVgK
2020-12-30 11:34:54   ignore_cec      0
2020-12-30 21:09:31   mediaAlbum
2020-12-30 21:09:31   mediaArtist
2020-12-30 21:09:31   mediaContentId
2020-12-30 21:09:31   mediaContentType
2020-12-30 21:09:31   mediaCurrentPosPercent
2020-12-30 21:09:31   mediaCurrentPosition
2020-12-30 21:09:31   mediaDuration
2020-12-30 21:09:31   mediaImageHeight
2020-12-30 21:09:31   mediaImageUrl
2020-12-30 21:09:31   mediaImageWidth
2020-12-30 21:09:31   mediaPlayerState UNKNOWN
2020-12-30 21:09:31   mediaStreamType UNKNOWN
2020-12-30 21:09:31   mediaTitle
2020-12-30 11:34:54   model_name      Google Home Mini
2020-12-30 12:31:33   mute            0
2020-12-30 11:34:54   name            Bureau
2021-01-02 14:05:58   session_id      astertwer-rterte-41ff-reter-wertwertwer
2021-01-01 02:04:33   spotify_user    my .username(my@email.com)
2021-01-02 03:52:51   state           online
2021-01-02 14:05:58   status_text     Spotify
2021-01-02 14:05:58   transport_id    adsads-asdda-asdasd-rr-rew
2020-12-30 11:34:54   uuid            wre-7397-rwe-ea12-rwerwer
2021-01-01 16:08:27   volume          10
args:
Google_Home_Mini_Bureau
PythonModule
googlecast
Bureau
argsh:
Attributes:
DbLogExclude .*
IODev      local_pybinding
alias      Bureau
favorite_1 http://wdr-1live-live.icecast.wdr.de/wdr/1live/live/mp3/128/stream.mp3
favorite_2 https://radios.rtbf.be/pure-128.mp3
favorite_3 http://spoonradio.ice.infomaniak.ch/spoonradio-hd.mp3
favorite_4 http://radios.rtbf.be/classic21-128.mp3
favorite_5 https://open.spotify.com/playlist/37i9dQZF1DX0zmsulfyDdq
group      GoogleCast
icon       gassistant
room       77_GoogleCast,33_Bureau
spotify_sp_dc SP_DC_kasöopfgdogsdoiasopd
spotify_sp_key SP_KEY_skpoerwo-b12a-412e3b444e1e
userattr   Status Status_map favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 strPythonModuleDevices strPythonModuleDevices_map structexclude
webCmd     playFavorite:play:pause:stop:volume

I just found out that my sp_dc and sp_key changed... I dont know since when, but i started my 3 month trial for premium when i realized thta it works with the binding... perhaps that changed the values?

I just found out that my sp_dc and sp_key changed... I dont know since when, but i started my 3 month trial for premium when i realized thta it works with the binding... perhaps that changed the values?

The keys should remain for 1 year active. You just need to take them once and they don't need to be from the machine running FHEM/fhempy.
Have you tried to set the new ones? Does it work with them?

The keys should remain for 1 year active. You just need to take them once and they don't need to be from the machine running FHEM/fhempy.
Have you tried to set the new ones? Does it work with them?

Yes for now it works again. No Idea why it didnt work before. I perforemed a restart after renewing the keyfiles... i am asking myself, if i could use on each cast device another key file, if  i create a family account and link the different devices with different accounts, so my two daughters could listen to their own music at the same time...

Yes for now it works again. No Idea why it didnt work before. I perforemed a restart after renewing the keyfiles... i am asking myself, if i could use on each cast device another key file, if  i create a family account and link the different devices with different accounts, so my two daughters could listen to their own music at the same time...

Of course, just log in with the account you want to use and set the proper sp_dc/key attributes.
Somebody on the forum had the same issue, that he had to set the attributes again. Maybe they are invalidated as soon as another login happens via Spotify Web.

Of course, just log in with the account you want to use and set the proper sp_dc/key attributes.
Somebody on the forum had the same issue, that he had to set the attributes again. Maybe they are invalidated as soon as another login happens via Spotify Web.

I'm going to close this one, feel free to reopen if it happens again.

I'm going to close this one, feel free to reopen if it happens again.

Will try the family after my 3 month free and keep you up to date ;-) Thx :-)

Will try the family after my 3 month free and keep you up to date ;-) Thx :-)

authors: dominikkarall jfmennedy

repo: dominikkarall/fhempy


text:
Switch to oasis

Jan,
OK, I fixed my problem (linking, also some syntax issues).  With this PR
(a) switch to oasis
so that (b) tests can be run automatically with "make test", once
ocaml setup.ml -configure --enable-tests
has been run (running "make test" without having done this, prompts the user with the command, so nothing to remember ;-)
I've reproduced your rocks_version.ml logic in a perl script that runs before each build.
Hope you'll find this to your liking; if not, let me know, and I'll maintain it privately.

Hi Chet,
What advantage does switching to oasis give me (that I couldn't easily get with minor changes to the current system)?
Having "make test" do what you describe shouldn't be hard in the current system either...
I would rather not introduce a build system of which I don't know too much (don't have any oasis experience), and the extra dependency on perl is also something I would rather avoid.
So currently I'm inclined to decline the pull request, but feel free to try to convince me otherwise.
kr, Jan

On Wednesday, 4 May 2016 00:39:17 PDT Jan Doms wrote:

What advantage does switching to oasis give me

Jan,
I'm glad you asked this question.  It's crystallized something for me:
I can't defend Oasis anymore.  Here's what I believe about it:
Oasis build specifications are more -declarative- than ocamlbuild.
They're simpler and easier-to-write.
But this must be weighed against the fact that Oasis is
(a) buggy
(b) incomplete
(c) poorly documented
(d) with very, very hard-to-understand code
So it's pretty difficult to figure out what the heck it's doing, and
why something doesn't work.  For instance, oasis-generated _tags files
are sufficiently messed-up, that I wrote my own Perl script to
generate them.
Truth is, if I weren't in the middle of this project, I might just
write my own build-tool, from scratch.  Oasis frustrates me -that-
much.
Or maybe I'll switch to omake -- not sure.  But oasis is really,
really frustrating.

authors: chetmurthy domsj

repo: domsj/orocksdb


text:
Internal Service Error on Ubuntu and RPi3

Describe The Problem
Cannot login to dashboards on either a Ubuntu or a RPi install. Ubuntu install was installed with fresh WireGuard install, RPi install had an already configured WireGuard setup.
Attempting to login with the dashboard with the default username admin and password admin results in an internal server error:
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Expected Error / Traceback
For Ubuntu:
[2022-01-24 11:47:39,116] ERROR in app: Exception on /auth [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "dashboard.py", line 704, in auth
    password = hashlib.sha256(data['password'].encode())
TypeError: 'NoneType' object is not subscriptable'

For RPi:
[2022-01-24 11:41:35,080] ERROR in app: Exception on /auth [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "dashboard.py", line 704, in auth
    password = hashlib.sha256(data['password'].encode())
TypeError: 'NoneType' object is not subscriptable

Sidenote: Are my user permissions bad? I see the traceroute says fail on /auth is that for my authentication or is that on wg-dashboard? This error is the same across two distros so it must be something consistent with either wg-dashboard or my network.
To Reproduce
I did a fresh install of both wg-dashboard and wireguard into their default directories running them with ./wgd.sh start. I then tried to access them via the ip and port with default credentials. Upon entering credentials I am greeted with an internal server error.
OS Information:

OS: Ubuntu 20..04.1

Python Version: 3.8.10

OS: Linux 5.10.63-v7+

Python Version: 3.7.3

Sample of your .conf file
Ubuntu:
[Interface]
Address = 10.0.0.1/24
SaveConfig = true
ListenPort = 51820
PrivateKey = ABCD
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o wlp0s20f3 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o wlp0s20f3 -j MASQUERADE

RPi:
[Interface]
Address = 10.100.0.1/32
ListenPort = 47111
PrivateKey = ABCD
DNS = 192.168.50.25

PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

[Peer]
#x360
PublicKey = ABCD
PresharedKey = ABCD
AllowedIPs = 10.100.0.2/32, fd08:4711::2/128, 192.168.0.0/24

If any more information is required please let me know! I know I'm prone to making simple errors sometimes lol

Hi, i'm sorry that you encountered problems. Would you mind telling me which browser did you used?

All good! Problems happen especially with homebrew stuff, no sweat 👍
I'm using the Brace browser (chromium based I think). I just tried Firefox and got the same result:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "dashboard.py", line 704, in auth
    password = hashlib.sha256(data['password'].encode())
TypeError: 'NoneType' object is not subscriptable

I may have misunderstood the order of operations for this dashboard so I will attempt to clarify my thoughts:
Does there need to be an initial peer set up to connect to the WG tunnel? I assumed one could do a fresh WG install without any peers, connect to the dashboard from any PC on their LAN, and then create peers that way.
If you need clarification let me know, when I translate thoughts-to-words I usually tend to overcomplicate, sorry!

This is weird. I will check on the front-end code, it seems like when you click Sign In, it did not send the password to the server, so it caused the issue. I will get back to you as soon ass possible ;)

Does there need to be an initial peer set up to connect to the WG tunnel? I assumed one could do a fresh WG install without any peers, connect to the dashboard from any PC on their LAN, and then create peers that way.

As for this, you don't need to configure initial peers to have it work, as long as you have an initial configuration, then you can add peers with the dashboard ;)

This is weird. I will check on the front-end code, it seems like when you click Sign In, it did not send the password to the server, so it caused the issue. I will get back to you as soon ass possible ;)

Thanks so much! I really appreciate it.

Does there need to be an initial peer set up to connect to the WG tunnel? I assumed one could do a fresh WG install without any peers, connect to the dashboard from any PC on their LAN, and then create peers that way.

As for this, you don't need to configure initial peers to have it work, as long as you have an initial configuration (empty configuration with no peers), then you can add peers with the dashboard ;)

Ok cool so my brain is working correctly, thank goodness haha

Hmmm.. I've test couple of times on my side with different browser and they all works well. Could you briefly tell me how did you sign in? I will continue to look into the code to see if anything that is causing the trouble ;)

Hmmm.. I've test couple of times on my side with different browser and they all works well. Could you briefly tell me how did you sign in? I will continue to look into the code to see if anything that is causing the trouble ;)

Sure; I navigated into the IP of the host using the default port, entered admin into the username space and admin into the password space and then hit sign in. After doing that I get the server internal error.

Hmm.. Do you mind help me to debug something? I made a GIF on what i'm looking for. Basically I want to know if the browser did send the username and password to the server.

Yeah sure! Be back in a few minutes.

Thank you!!

Got the following out. Could if be my windows firewall blocking the submission...? Will test that out with port cleared from windows firewall side.

Hmm but if that's the case, you won't even able to open the webpage. Is this a screenshot from Brave?

Yup its a screenshot from Brave, I'll do the same sequence in chrome and post the result.

It seems like, you did a "Form" post, instead of a ajax post... So basically your webpage file is from an older version, and the server (python codes) is from a new version. Do you mind updating the server and try it out? You can follow this https://github.com/donaldzou/WGDashboard#update-method-2 to update the dashboard

Attempted update, got return that it was latest image, attempted login again and got same error.

This got me thinking... Did you disabled Javascript on your browser?

GOT IT
Holy moly this one is extremely unique to me. I recently set up some blocklists on my Pi-Hole and one of them was blocking
code.jquery.com
(blocked cds.s5x3j6q5.hwcdn.net)

After adding that to the whitelist the login works perfectly.
Thanks so much for your help @donaldzou! Sorry this took so long and ended up being such a niche use-case.

Ahah nice!! I would consider to move all dependencies to local. But the reason is flask running on HTTP 1.1, and it need to wait for resources 1 by 1, so would cause longer loading time. By using CDN can have faster loading speed on scripts and CSS libraries. I will close this issue now, if you have any more questions please let me know!!

authors: Gyrohammer donaldzou

repo: donaldzou/WGDashboard


text:
🛑 Blog of Dongdong is down

In f5fafb2, Blog of Dongdong (https://ddw2019.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog of Dongdong is back up in cbd7f34 after 21 minutes.


text:
setting an array element with a sequence.

hi,
when I run train.py at _, step, loss = sess.run([model.update, model.global_step, model.loss],feed_dict=train_feed_dict) I have error ValueError: setting an array element with a sequence.
Can u help me how fix this?

they work, all trouble had been that I use not the original (from pull request) code after sess.run


text:
typings and tsd

How far are these type definitions from being published to DefinitelyTyped?
Thanks!

There is still quite some work to do, especially for the more complex but also less frequently used functions. We could publish it, but I'm not sure if that is a good idea. It's still in a sort of alpha stage.

Added extra external type definition in 1f34042ea566d64214d7c01534ad805604e9cff2
This repo is now added to typings/registry

Thanks a lot for all the hard work :+1:

You're welcome.

authors: donnut remojansen

repo: donnut/typescript-ramda


text:
Handle network error

When I tested with Airplane mode, getProduct never resolved/rejected the promise. Fix this by handling the delegate properly.

Thank you for the PR. Have you tested this? If so will publish to new npm version.

authors: dooboolab wasedaigo

repo: dooboolab/react-native-iap


text:
Add reportUserProfile support

This PR adds reportUserProfile method with predefined and custom attributes. Also, a bug in activation cofig fixed on iOS.

UPDATE: gradle config updated:

to allow a library user to define Android SDK version (it is usually placed in rootProject.ext, see example in RN community https://github.com/react-native-community/react-native-svg/blob/master/android/build.gradle)
bump target SDK version to the minimum required by Google witch is 26 for now (https://developer.android.com/distribute/best-practices/develop/target-sdk)

repo: doochik/react-native-appmetrica


text:
Integrate gemini 1

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Other information:

FYI the native gemini integration in llmclient has been fixed today.

authors: curiosityz dosco

repo: dosco/llm-client


text:
Urql 4 now have more strict generics for passing variables

Which packages are impacted by your issue?
@graphql-codegen/typescript-vue-urql
Describe the bug
Recent Urql major version update now have more strict type requirements for passing variable into useQuery generic.
Now it forces variables property to be required in passing object if any variable is not optional, and that breaks code generated by typescript-vue-urql:
export function useUsersQuery(
  options: Omit<Urql.UseQueryArgs<never, UsersQueryVariables>, "query"> = {} // ERROR: Property 'variables' is missing in type '{}' but required in type 'Omit<UseQueryArgs<never, Exact<{ id: string; }>>, "query">'.
) {
  return Urql.useQuery<UsersQuery>({ query: UsersDocument, ...options }); // ERROR: Property 'variables' is optional in type ...skipped... but required in type 'MaybeRefObj$1<{ query: DocumentInput<UsersQuery, AnyVariables>; variables: AnyVariables; }>'
}

Your Example Website or App
https://the-guild.dev/graphql/codegen
Steps to Reproduce the Bug or Issue

Go to https://the-guild.dev/graphql/codegen
Provide the following schema:

schema {
  query: Query
}

type Query {
  user(id: String!): User
}

type User {
  id: String!
  username: String!
  email: String!
}

Provide the following operations:

query users($id: String!) {
  user(id: $id) {
    id
    username
  }
}

Provide the following config:

generates:
  components.ts:
    plugins:
      - typescript-vue-urql

Expected behavior
That is pretty easy to fix, however:
export function useUsersQuery(
  options: Omit<Urql.UseQueryArgs<never, UsersQueryVariables>, "query">
//---------------------------------------------------------------------^^ Removing default object here
) {
  return Urql.useQuery<UsersQuery, UsersQueryVariables>({ query: UsersDocument, ...options });
//---------------------------------^^^^^^^^^^^^^^^^^^^ Passing variables type explicitly
}

Screenshots or Videos
No response
Platform

OS: Linux
NodeJS: [e.g. 18.14.0]
graphql version: [e.g. 16.3.0]
@graphql-codegen/typescript-vue-urq version: 2.3.6
@urql/core version 4.0.4

Codegen Config File
No response
Additional context
No response

For further reference, this issue has been also reported as issue #9421 in repo dotansimha/graphql-code-generator

The relevant change in urql is reported here: https://github.com/urql-graphql/urql/pull/2607

I have the same problem and I hope this problem will be solved as soon as possible.

This was fixed, but it stopped working again!

Released @graphql-codegen/typescript-vue-urql@3.2.0

authors: TimoStolz lucastraba mlesin productdevbook saihaj


text:
Fix closing of multiline comment blocks

Now it's impossible to fix **/ multiline comment ending to be them linted correctly

Thanks @yamaha252 !

repo: dotansimha/graphql-code-generator


text:
Android Sample will crash on first run when there is no previously saved state

On first run the Bundle passed to the MainActivity is null, app crashes, as apparently before a saved state can be generated.
Thus subsequent runs will continue to crash as apparently the base cant be called with a null Bundle
Crashlog
MvvmCross.Exceptions.MvxException
Message=Problem navigating to ViewModel DeviceListViewModel
Source=mscorlib
StackTrace:
at MvvmCross.ViewModels.MvxAppStart`1[TViewModel].NavigateToFirstViewModel (System.Object hint) [0x00080] in //MvvmCross/ViewModels/MvxAppStart.cs:85
at MvvmCross.ViewModels.MvxAppStart.StartAsync (System.Object hint) [0x000c0] in //MvvmCross/ViewModels/MvxAppStart.cs:45
at MvvmCross.ViewModels.MvxAppStart.Start (System.Object hint) [0x00000] in //MvvmCross/ViewModels/MvxAppStart.cs:30
at MvvmCross.Forms.Platforms.Android.Views.MvxFormsAppCompatActivity.RunAppStart (Android.OS.Bundle bundle) [0x0001d] in //MvvmCross.Forms/Platforms/Android/Views/MvxFormsAppCompatActivity.cs:114
at MvvmCross.Forms.Platforms.Android.Views.MvxFormsAppCompatActivity.OnCreate (Android.OS.Bundle bundle) [0x0002a] in //MvvmCross.Forms/Platforms/Android/Views/MvxFormsAppCompatActivity.cs:106
at BLE.Client.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x00017] in C:\Git\dotnet-bluetooth-le\Source\BLE.Client\BLE.Client.Droid\MainActivity.cs:19
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x00010] in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-33/mcw/Android.App.Activity.cs:2826
at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V (_JniMarshal_PPL_V callback, System.IntPtr jnienv, System.IntPtr klazz, System.IntPtr p0) [0x00005] in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:121
at (wrapper native-to-managed) Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V(intptr,intptr,intptr)
Configuration
Version of the Plugin: v3.1
Platform: e.g. Android 12
Device: Samsung A11

Hi @axa88,
I'm the friendly issue checker.
It seems like (37.50 %) you haven't used our issue template :cry: I think it is very frustrating for the repository owners, if you ignore them.
If you think it's fine to make an exception, just ignore this message.
But if you think it was a mistake to delete the template, please close the issue and create a new one.
Thanks!

No reason at all, I just assumed that was a/the .NET Android sample...
I'll close this and try the other if need be.

repo: dotnet-bluetooth-le/dotnet-bluetooth-le


text:
Dotnet maui workshop mvpvm

Added section 7 MVP-VM to dotnet-maui-workshop.  In section 7, I demonstrate how this decoupled framework pattern can be used to easily reuse view models, views, and commands between multiple features, i.e., Monkey Finder and Furniture Inventory [new].   Using event aggregation the Monkey Finder publishes events handled by the Inventory application to keep both synchronized to the current connectivity status - updating the data as applicable (online/offline).
GitHub: https://github.com/BillKrat/dotnet-maui-workshop/tree/dotnet-maui-workshop-mvpvm/Part 7 - MVPVM
Blog: http://www.adventuresontheedge.net/post/2022/07/05/MAUI-MvpVm

 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.:x: BillKrat sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Hey Bill, thanks for the PR and for looking to add MVP into the mix. For this workshop I don't want to introduce another module into the main flow at this time as I have a full content plan. However, I would like to add on "Community Modules" in a new folder in which you can take the finished app and add something to it to teach developers a new topic. This would be a good candidate for this.

I just created a guide: https://github.com/dotnet-presentations/dotnet-maui-workshop/blob/main/Community Modules/README.md

Thanks for the feedback, sounds good.  Please keep me in mind when the community module(s) are available.
I remember when P&P released Prism and the Unity container (later MEF), I was totally lost as to how decoupled applications worked. Fell in love with them (still follow principles learned today) but found they are not embraced; teams prefer more conventional approach (you can follow the code).
I’ve been painted into corners because of it, so this is my opportunity to get on a soapbox and sell the power of decoupled architectures based on IOC and talk is cheap.
Best regards
Bill
Sent from my iPhone

On Jul 27, 2022, at 5:25 PM, James Montemagno @.***> wrote:

Hey Bill, thanks for the PR and for looking to add MVP into the mix. For this workshop I don't want to introduce another module into the main flow at this time as I have a full content plan. However, I would like to add on "Community Modules" in a new folder in which you can take the finished app and add something to it to teach developers a new topic. This would be a good candidate for this.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

@BillKrat take a look at https://github.com/dotnet-presentations/dotnet-maui-workshop/blob/main/Community Modules/README.md and let me know if that stuff makes sense

@James, makes sense, I’ll get the ball rolling this weekend.
From: James Montemagno @.>
Sent: Thursday, July 28, 2022 2:14 PM
To: dotnet-presentations/dotnet-maui-workshop @.>
Cc: Bill Kratochvil @.>; Mention @.>
Subject: Re: [dotnet-presentations/dotnet-maui-workshop] Dotnet maui workshop mvpvm (PR #75)
@BillKrat https://github.com/BillKrat  take a look at https://github.com/dotnet-presentations/dotnet-maui-workshop/blob/main/Community Modules/README.md and let me know if that stuff makes sense
—
Reply to this email directly, view it on GitHub https://github.com/dotnet-presentations/dotnet-maui-workshop/pull/75#issuecomment-1198535636 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVXFIZS4SBRBVYZMOGTFQDVWLLYBANCNFSM527RSJTQ .
You are receiving this because you were mentioned.  https://github.com/notifications/beacon/AMVXFIYSIKC4N2I3HMB3TKLVWLLYBA5CNFSM527RSJT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI5YDHVA.gif Message ID: @.*** @.***> >

authors: BillKrat jamesmontemagno jongalloway


text:
No related document about install SingarR nuget package.

[Enter feedback here]
No related document about install SingarR nuget package.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0dd2991d-c22d-ad0f-80b6-bd1b503db8f3
Version Independent ID: 5e3fbe1d-c97f-9940-4f0c-067d4b2112b1
Content: Get started with ASP.NET Core SignalR
Content Source: aspnetcore/tutorials/signalr.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @bradygaster
Microsoft Alias: bradyg

What package specifically? The tutorial you linked shows exactly what to do to get a server setup with SignalR and how to install the javascript client library.
If you're looking for a nuget package for SignalR on the server, there isn't one.

The SignalR server library is included in the ASP.NET Core 3.1 shared framework. The JavaScript client library isn't automatically included in the project.

https://docs.microsoft.com/aspnet/core/tutorials/signalr?view=aspnetcore-5.0&tabs=visual-studio-code#add-the-signalr-client-library

authors: BrennanConroy IsQiao


text:
Grammatical error in the paragraph "Support for shared queues in HTTP.sys"

There is a grammatical error at the first statement on the paragraph:
Support for shared queues in HTTP.sys
The statement In ASP.NET Core 3.1, we've added to ability to create or attach to an existing named HTTP.sys request queue. should be In ASP.NET Core 3.1, we've added the ability to create or attach to an existing named HTTP.sys request queue.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 099645fa-864f-d949-4581-f1ab276b526e
Version Independent ID: 264988a9-ba66-012d-8609-760bc736746c
Content: What's new in ASP.NET Core 3.1
Content Source: aspnetcore/release-notes/aspnetcore-3.1.md
Product: aspnet-core
Technology: aspnetcore-releasenotes
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Any chance you could PR this? At the top right of the article, select the Edit pen icon:

Select the pen icon again. Save.

authors: Rick-Anderson vishalganna


text:
Add HttpLogging docs

Fixes https://github.com/dotnet/aspnetcore/issues/31859
Still a WIP, but want to leverage CI for a few things I'm uncertain of.

@Rick-Anderson @guardrex most of the content is here now, can you help with polish?

This is brand new for preview4, I'm not sure when API docs will be available for it.

@Rick-Anderson ... I'm neck-deep 😨 in Blazor forms and validation bits at the moment, but I should be free Friday if you want me to take this one.
@jkotalik ... If I end up assisting, I'll open a follow-up issue for post 6.0 GA to take care of the API doc cross-links.
WRT the Cyberdine Systems Snippet Builder 5000 ... The build system isn't building with the preview SDK, so we'd end up merging without a passing build or alternatively upgrading to use the preview SDK.

It doesn't need to happen today, but ideally before mid may 😄

I'll take care of it.

@jkotalik  your writing is excellent. I'm pr'ing this PR in #22103, so you can see my changes. I can have it done by next week. I'm just getting started.

authors: Rick-Anderson guardrex jkotalik


text:
Update http3.md

Fixed a typo and added a bit more context.
@Rick-Anderson edit: Internal review URL

@samsp-msft  can you accept/reject my suggestions or give me permission to apply them?

Applied your suggestions. The checkbox for allowing edits by maintainers is checked, do I need to do something else to give you permissions?

Applied your suggestions. The checkbox for allowing edits by maintainers is checked, do I need to do something else to give you permissions?

Nope, I just didn't want to apply them without your permission. Thanks

@samsp-msft  thanks for the PR, really nice improvements

authors: Rick-Anderson samsp-msft


text:
Question

This issue tracker is for documentation
For product issues, use https://github.com/aspnet/EntityFramework/issues
I would like more information about grouping efficiency is the first one better then the second? I found this article and I believe the second could be better.
Group by new object
 var test =  (from i in tableA
              group i by new { i.column1, i.column2, i.column3 } into g
              select new ViewModelTableA
              {
                 One = g.Key.column1,
                 Two= g.Key.column2,
                 Three= g.Key.column3,
                 Itens = (from m in g
                               m.ID
                              ).ToList()
              }).ToList()

Group by a column and then get columns
var test =  (from i in tableA
            group i by i.column1 into g
            let first = g.FirstOrDefault()
            select new ViewModelTableA
            {
               One = first.column1,
               Two= first.column2,
               Three= first.column3,
               Itens = (from m in g
                             m.ID
                            ).ToList()
            }).ToList()

@DeBaFig it's always best to simply set up a quick benchmark and measure the results; this is very easy to do with BenchmarkDotNet - literally a matter of writing the two methods you want to benchmark.
Otherwise, you can also examine the SQL produced from EF's LINQ queries - logging allows access to that. Which SQL runs faster is sometimes easy (e.g. less operations/shorter SQL frequently means faster performance), but in some cases examining the query plan for a SQL query is a good idea. See our docs for more info on this.

As a side note, your two queries don't appear to be equivalent - the 2nd query does FirstOfDefault whereas the first does not.

authors: DeBaFig roji


text:
Added extension EntityFrameworkCore.Triggered

As proposed in #2913

LGTM

@koenbeuk Thanks!

authors: ErikEJ ajcvickers koenbeuk


text:
Icon path is not working in AppShell.razor

I'm using 0.6.69-preview of MBB
In the AppShell.razor the icon path is not recognized, I tried placing the png in wwwroot and also the project root folder as a content (build type).
<Shell BackgroundColor="XF.Color.Black">     <TabBar Title="Something">         <Tab Title="Articles" Icon="something.png">             <ShellContent>            ...             </ShellContent>         </Tab>

Sorry, I just referred the MMB Xaminals example and found that I need to use:
Icon="@(new FileImageSource { File="paw.png" })
Thank you so much for those thoughtful samples.

Just an additional suggestion.
Put that FileImageSource to the field instead of creating it razor directly - it will help to avoid visual glitches (we need to update that sample).

Thank you so much for the suggestion, @Dreamescaper

authors: Dreamescaper johnmangam

repo: dotnet/MobileBlazorBindings


text:
Implementation of DateTime2 + accompanying GetSqlDateTime2 method (#846)

Initial implementation - let me know what you think so far.
I have tried to do everything I could think of and have tried to follow the "style"
I don't know why VS insists on changing the .csproj for SqlCommand etc - I have done nothing, but will try to revert the changes out side of VS
And I need some help understanding why VS can build my stuff when I use the ADP class, but I cannot build it outside of VS - possibly some "tweaks" needed - which is why I am throwing exceptions directly and not going through the ADP class like the other classes do.

 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.:x: bjornbouetsmith sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Some of the test failures are not due to your changes. You can address the ones are related to your changes (if there is any) and push the changes again.

Some of the test failures are not due to your changes. You can address the ones are related to your changes (if there is any) and push the changes again.

Yeah I looked at one of the test failues and that has definately not anything to do with my additions - but will go through them all just to be sure when they are all finished.

Checked the tests and it is all relating to encryption in the ManualTests - so has nothing to do with the changes I have made.

Changed the internals of SqlDateTime2 to be inline with the https://github.com/dotnet/SqlClient/blob/master/coding-style.md - and since its a new file I changed some of the fieldnames.

squashed everything into one commit

Any chance to get this reviewed and merged so I don't have to handle any more conflicts?

Any chance to get this reviewed and merged so I don't have to handle any more conflicts?

Hi @bjornbouetsmith
We will be reviewing this PR soon, currently we're occupied with a bundle of support issues that have much higher priority.
We will definitely try to come up some update by end of this month.
Thanks for your patience!

Hi @bjornbouetsmith
We will be reviewing this PR soon, currently we're occupied with a bundle of support issues that have much higher priority.
We will definitely try to come up some update by end of this month.
Thanks for your patience!

I am not sure why you need many more tests.
The SqlDateTime2 struct is only being exposed in one single method: GetSqlDateTime2 - and does not interface with any of the existing methods.
So its a non breaking change - available only in SqlDataReader - if support had been added in DbDataReader and all over the place, it would be a different change.
But this change was a needle point expansion of SqlDataReader only.
I had no plans of introducing usage of SqlDateTime2 anywhere else, but if anyone else wants to do that, then yes more tests are needed - but I think the tests I made for GetSqlDateTime2 is more than sufficient and should handle the possible scenarios.
If not, I am happy to write more tests.
My change was made, so I could stop using GetDateTime and use GetSqlDateTime2 instead - similar to GetSqlDateTime - which unfortunately does not support the DATETIME2 type.

Hi,
I am going to abandon this.
It has now been more than 3 months to get a tiny patch merged into this repository and if you are not interested enough to allocate the very few resources to get this pull request merged then so be it.
I will not be spending more time on updating the pull request as other merge into the repository and I have to handle conflicts.
So what is there now is it.
Take it or leave it - I will not be working to move this further along your apparenly very long road into the repository.
Thank you for your time so far.

Hi @bjornbouetsmith
Apologies I missed your earlier message.
I'd just like to state, in order to make a public API introduction like this one, we need a stronger case and not enough people have shown interest in this PR so far, neither in issue https://github.com/dotnet/SqlClient/issues/846. We don't want to discourage customers, but this is the reason why this feature loses priority over other customer issues. If there had been a lot of interest from community, this PR would have got desired attention as it would have bubbled up priority score.
Thanks for your suggestion, if we get more interest on issue #846 , we will consider re-opening this again!

How much external attention is required to get a new function added? There are a few things I'd like to be able to add or support adding (like these functions) but the number of people involved in this repository for anything other than bug reporting is extremely low so getting more than one of two upvotes is very unlikely.
Just how big a crowd do I need to hire to get a new feature added?

@Wraith2 it depends on various factors.
This PR introduces a new SqlDbType and also a new API to append the core driver usability on DataReader where no one else has yet raised a concern and alternate solutions already exist, so it does require strong support in order to move it forward. Our customer base also includes SSMS, Azure Data Factory, etc, and we have not heard any such need, so it's very unlikely there's a requirement for a new API.
Also if you see in issue https://github.com/dotnet/SqlClient/issues/1009#issuecomment-808694631 discussions, the trends do not favor adding new methods/APIs for each and every type that don't add considerable benefit and are proceeding to generic behaviors. So unless and until there's a huge roadblock impacting a major customer base, we'd also know from within, and only then such major decisions can be made. cc @David-Engel @saurabh500

I think that many consumers assume that the api's for dealing with extra types won't be added because it's been so long since they were made available in sql server and they're still not in this driver. There are very few people interested in ADO advancements because they've been ignored for so long so for any api proposal outside the MS teams associated with the product there are very few people who are going to see it. Realistically how many frequent users are there on this particular product? half a dozen at most and I'd struggle to name many beyond Erik and myself.
I intend to implement the additional api we recently investigated with named parameters in large parameter sets. Do I need to get signoff on that before starting? And if so how do i go about doing that and how much public support do I ned to demonstrate that it is worth adding? The report we investigated was the only one that I've seen on the topic so it's low use but it's a clear improvement to the driver and allows big data users to be more efficient.
To return to the datetime2 api in this PR it isn't feasible to add it to the GetFieldValue members because it returns a specialized structure due to the range differences. If it were possible it would have been suggested. I see this approach as the only way to add it and it's disappointing that we can't get it included.

I see this approach as the only way to add it and it's disappointing that we can't get it included.

I'd like to re-iterate, I didn't mean to discard the PR or API neither did I say it cannot be included.
As I said before, this wasn't in our priority list due to not enough demand and already available workarounds, but it has been reviewed for sanitization. We have lots of priority customer issues that eventually push this behind to be polished and considered for a release milestone.

authors: JRahnama Wraith2 bjornbouetsmith cheenamalhotra dnfadmin

repo: dotnet/SqlClient


text:
[Auth Integration Testing] Validate Dashboard-resource client

Validate transport

[ ] http support
[ ] https

Validate auth

[ ] Unsecured
[ ] API Key
[ ] Client certificate

Is the intention here to have automated tests running on CI? Is there anything needed from the testing infrastructure side for this which is missing right now?

@drewnoakes  please confirm if these are covered

https://github.com/dotnet/aspire/pull/3824 added tests for Unsecured and ApiKey auth modes over HTTP.
https://github.com/dotnet/aspire/pull/4621 adds HTTPS coverage.
We don't have any client cert tests currently. There's just a thin layer of code to load the certs, after which point it's all framework code. Setting up certs in automated integration tests seems a bit fiddly and might not run on Linux without considerable investment. I'm not certain it's worth adding these tests.

@radical have we solved for certs for automated integration tests infra in linux?

We install dev certs for test on linux using https://github.com/BorisWilhelms/create-dotnet-devcert on both Helix, and the build machine. The latter was added yesterday.

Thanks
@drewnoakes please add a new issue tracking client certificate tests and for the 8.2 milestone and we can close this one.

Thanks @radical. That's great timing :)

authors: drewnoakes kvenkatrajan radical

repo: dotnet/aspire


text:
Watch task over kubernetes Endpoint resources terminated unexpectedly

Running a starter aspire solution I get the following error.
crit: Aspire.Hosting.Dcp.ApplicationExecutor[0]
      Watch task over kubernetes Container resources terminated unexpectedly. Check to ensure dcpd process is running.
      System.Net.Http.HttpRequestException: The proxy tunnel request to proxy 'http://webproxy.xxxxxxxx.net:8080/' failed with status code '403'."
         at System.Net.Http.HttpConnectionPool.EstablishProxyTunnelAsync(Boolean async, CancellationToken cancellationToken)
         at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
         at System.Net.Http.HttpConnectionPool.AddHttp2ConnectionAsync(QueueItem queueItem)
         at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
         at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
         at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
         at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
         at k8s.Kubernetes.SendRequestRaw(String requestContent, HttpRequestMessage httpRequest, CancellationToken cancellationToken)
         at k8s.AbstractKubernetes.ICustomObjectsOperations_ListClusterCustomObjectWithHttpMessagesAsync[T](String group, String version, String plural, Nullable`1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable`1 limit, String resourceVersion, String resourceVersionMatch, Nullable`1 timeoutSeconds, Nullable`1 watch, Nullable`1 pretty, IReadOnlyDictionary`2 customHeaders, CancellationToken cancellationToken)
         at k8s.AbstractKubernetes.k8s.ICustomObjectsOperations.ListClusterCustomObjectWithHttpMessagesAsync(String group, String version, String plural, Nullable`1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable`1 limit, String resourceVersion, String resourceVersionMatch, Nullable`1 timeoutSeconds, Nullable`1 watch, Nullable`1 pretty, IReadOnlyDictionary`2 customHeaders, CancellationToken cancellationToken)
         at k8s.WatcherExt.<>c__DisplayClass1_0`2.<<MakeStreamReaderCreator>b__0>d.MoveNext()
      --- End of stack trace from previous location ---
         at k8s.Watcher`1.<>c.<CreateWatchEventEnumerator>b__21_1[TR](Task`1 t)
         at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
      --- End of stack trace from previous location ---
         at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
         at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
      --- End of stack trace from previous location ---
         at k8s.Watcher`1.CreateWatchEventEnumerator(Func`1 streamReaderCreator, Action`1 onError, CancellationToken cancellationToken)+MoveNext()
         at k8s.Watcher`1.CreateWatchEventEnumerator(Func`1 streamReaderCreator, Action`1 onError, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
         at Aspire.Hosting.Dcp.KubernetesService.WatchAsync[T](String namespaceParameter, CancellationToken cancellationToken)+MoveNext() in /_/src/Aspire.Hosting/Dcp/KubernetesService.cs:line 209
         at Aspire.Hosting.Dcp.KubernetesService.WatchAsync[T](String namespaceParameter, CancellationToken cancellationToken)+MoveNext() in /_/src/Aspire.Hosting/Dcp/KubernetesService.cs:line 209
         at Aspire.Hosting.Dcp.KubernetesService.WatchAsync[T](String namespaceParameter, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
         at Aspire.Hosting.Dcp.ApplicationExecutor.<>c__DisplayClass32_1`1.<<WatchResourceChanges>b__10>d.MoveNext() in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 285
      --- End of stack trace from previous location ---
         at Aspire.Hosting.Dcp.ApplicationExecutor.<>c__DisplayClass32_1`1.<<WatchResourceChanges>b__10>d.MoveNext() in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 285
      --- End of stack trace from previous location ---
         at Polly.ResiliencePipeline.<>c.<<ExecuteAsync>b__3_0>d.MoveNext()
      --- End of stack trace from previous location ---
         at Polly.Outcome`1.GetResultOrRethrow()
         at Polly.ResiliencePipeline.ExecuteAsync(Func`2 callback, CancellationToken cancellationToken)
         at Aspire.Hosting.Dcp.ApplicationExecutor.<>c__DisplayClass32_0.<<WatchResourceChanges>g__WatchKubernetesResource|3>d`1.MoveNext() in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 281

I have created the solution from the visual studio aspire template and I haven't made any changes.
What could be done to fix it?

cc @karolz-ms @danegsta

@ys0d that error seems to indicate that you have a proxy configured that’s returning errors for Aspire traffic. That 403 error code indicates a forbidden request (usually due to missing order incorrect credentials).

@danegsta
I have checked proxy configuration and it looks I don't have one.
PS C:\Users\YS0D> netsh winhttp show proxy

Current WinHTTP proxy settings:

    Direct access (no proxy server).

But i work under a VPN connection, which maybe causes that problem.
The question is how to fix it? Which settings have to be adjusted and permission granted?

It's entirely possible the VPN/proxy (the connection is definitely going through a proxy server as the error message you're getting is a low level .NET proxy connection error, not something specific to Aspire) doesn't support self-signed certificates. By default, Aspire uses https traffic on localhost using the .NET dev cert, which is a per-machine self-signed certificate restricted to localhost.
You may want to try running the http launch profile (instead of the default https profile). For Visual Studio, you can simply change the target launch profile dropdown. From the command line, you'll need to add --launch-profile http to your run command arguments.

Thanks for explanations.
After an investigation I can agree it goes through a proxy, probably because of ipv6 is being used.
Looking at PAC file I see that 127.* addresses are configured to go directly but it is not the case for ::1 addresses.
Is it possible to configure Aspire services to use ipv4?
using an http profile produces the same result:
info: Aspire.Hosting.DistributedApplication[0]
      Login to the dashboard at http://localhost:15261/login?t=407234c531f4a953cceefb6e2f749509
crit: Aspire.Hosting.Dcp.ApplicationExecutor[0]
      Watch task over kubernetes Service resources terminated unexpectedly. Check to ensure dcpd process is running.
      System.Net.Http.HttpRequestException: The proxy tunnel request to proxy 'http://webproxy.xxxxxx.net:8080/' failed with status code '403'."

Not in the current 8.0 GA release, but in main branch support was added for an environment variable to control IP binding preferences. Setting DCP_IP_VERSION_PREFERENCE=ipv4 will cause ipv4 to be preferred for any service bindings. This will ship with the upcoming 8.1 Aspire release.

This appears to be done in 8.1,  going to close, re-open if the issue continues after acquiring 8.1

authors: danegsta davidfowl dbreshears ys0d


text:
SDK installer produced binary that doesn't do anything

Issue Title
SDK installer successfully installed a binary at /usr/local/share/dotnet, but it does nothing when executed.
General
I'm following this tutorial: https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
I clicked "Download" and ran the installer (environment: macOS Mojave 10.14.3). A binary showed up where it said it would, but running it produces no output. Furthermore, the command "dotnet" was not aliased by the installer wizard, so I had to go find the binary myself.

I'm an idiot. Binary was actually at /usr/local/share/dotnet/dotnet. I was trying to execute a directory 🙄

repo: dotnet/core


text:
Error runing docker image

Problem encountered on https://dotnet.microsoft.com/learn/aspnet/microservice-tutorial/run-docker
Operating System: macos
Sesion-de-ilia:Microservicio1 ilarius$ docker run -it --rm -p 3000:80 --name mymicroservicecontainer mymicroservice
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
failed to resize tty, using default size

So did you download the SDK as instructed in the install step? This article might help you determine that:
https://docs.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed-versions?pivots=os-macos

authors: ilariuss mairaw


text:
Dotnet app not Creating instead showing to use the previously created app or to re write it.

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create
Operating System: windows
Windows 11 Home Insider Preview Single Language os build: 25267.1000
C:\Windows\System32>dotnet new console -o MyApp -f net7.0
Creating this template will make changes to existing files:
Overwrite   MyApp\MyApp.csproj
Overwrite   MyApp\Program.cs
Rerun the command and pass --force to accept and create.

Thank You for mailing me Your code worked! Thanks again! And hope to see you again.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: Shreyas @.>
Sent: Monday, December 19, 2022 10:38 AM
To: @.>
Cc: Dhawal @.>; @.>
Subject: Re: [dotnet/core] Dotnet app not Creating instead showing to use the previously created app or to re write it. (Issue #8047)
It looks like you have already an app called MyApp in a given directory which is C:\Windows\System32, that's why when you again try to create the app with the same name with the command dotnet new console -o MyApp -f net7.0, it gives you a warning.
So I would suggest changing the app name to something different than MyApp. So let's say basically you want to create an app with your name, so the command would be like below.
dotnet new console -o DhawalApp -f net7.0
This would create a directory with the name DhawalApp and inside that your app project files would be there.
To run your app, just cd into your app with cd DhawalApp command and then you can run dotnet run to run your project.
—
Reply to this email directly, view it on GitHubhttps://github.com/dotnet/core/issues/8047#issuecomment-1357103510, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUX3BJZHTQLPYU6HMIRYFWTWN7UUBANCNFSM6AAAAAATCSAODI.
You are receiving this because you authored the thread.Message ID: @.***>

You can close this GitHub issue if your problem is solved. Thanks!

authors: DhawalTandon ShreyasJejurkar


text:
Add nuspec file for System.Time library

This will allow building a nuget package for System.Time library

Does the System.Time library have any dependencies? If not, LGTM

I am going to add the dependencies. but it looks we need to fix all nuspec files in the corefxlab as they looks wrong to me

@KrzysztofCwalina  @socket  could you please have another quick lock?

LGTM

looks good

authors: KrzysztofCwalina sokket tarekgh

repo: dotnet/corefxlab


text:
Improved Exception handling

Throw the exceptions directly from the void method, don't mark as no-inlining
Post https://github.com/dotnet/coreclr/pull/6103 "Do not inline methods that never return" this will give the best result. (As shown in https://github.com/dotnet/coreclr/pull/6634)
It won't inline the exception Throw function, will mark the call to the Throw function as cold code, and won't preform any register prep for the function (push+pop)

e.g. public static void Requires(bool condition)
Pre
Inlines into 06000001 Contract:Requires(bool)
  [0 IL=0003 TR=000010 06000009] [FAILED: noinline per IL/cached result] Contract:NewArgumentException():ref
Budget: initialTime=90, finalTime=90, initialBudget=900, currentBudget=900
Budget: initialSize=359, finalSize=359

; Assembly listing for method Contract:Requires(bool)
; Emitting BLENDED_CODE for X64 CPU with SSE2
; optimized code
; rsp based frame
; partially interruptible
; Final local variable assignments
;
;  V00 arg0         [V00,T00] (  3,   3  )    bool  ->  rcx
;  V01 OutArgs      [V01    ] (  1,   1  )  lclBlk (32) [rsp+0x00]
;
; Lcl frame size = 40
G_M36318_IG01:
       sub      rsp, 40
       nop
G_M36318_IG02:
       test     cl, cl
       je       SHORT G_M36318_IG04
G_M36318_IG03:
       add      rsp, 40
       ret
G_M36318_IG04:
       call     [Contract:NewArgumentException():ref]
       mov      rcx, rax
       call     CORINFO_HELP_THROW
       int3
; Total bytes of code 29, prolog size 5 for method Contract:Requires(bool)

Post
Inlines into 06000001 Contract:Requires(bool)
  [0 IL=0003 TR=000010 06000009] [FAILED: does not return] Contract:ThrowArgumentException()
Budget: initialTime=87, finalTime=87, initialBudget=870, currentBudget=870
Budget: initialSize=336, finalSize=336

; Assembly listing for method Contract:Requires(bool)
; Emitting BLENDED_CODE for X64 CPU with SSE2
; optimized code
; rsp based frame
; partially interruptible
; Final local variable assignments
;
;  V00 arg0         [V00,T00] (  3,   3  )    bool  ->  rcx
;  V01 OutArgs      [V01    ] (  1,   1  )  lclBlk (32) [rsp+0x00]
;
; Lcl frame size = 40
G_M36319_IG01:
       sub      rsp, 40
       nop
G_M36319_IG02:
       test     cl, cl
       je       SHORT G_M36319_IG04
G_M36319_IG03:
       add      rsp, 40
       ret
G_M36319_IG04:
       call     [Contract:ThrowArgumentException()]
       int3
; Total bytes of code 21, prolog size 5 for method Contract:Requires(bool)

Likewise it means: Span`1:.ctor(ref):this
ends like
       ret
G_M44205_IG06:
       call     [Contract:ThrowArgumentException()]
G_M44205_IG07:
       call     [Contract:ThrowArgumentException()]
       int3
; Total bytes of code 137, prolog size 13 for method Span`1:.ctor(ref):this

instead of
       ret
G_M44203_IG06:
       call     [Contract:NewArgumentException():ref]
       mov      rcx, rax
       call     CORINFO_HELP_THROW
G_M44203_IG07:
       call     [Contract:NewArgumentException():ref]
       mov      rcx, rax
       call     CORINFO_HELP_THROW
       int3
; Total bytes of code 153, prolog size 13 for method Span`1:.ctor(ref):this

@dotnet-bot test this please

Thanks!

authors: KrzysztofCwalina benaadams


text:
No assembly metadata is written in native output

It's no assembly metadata like file versions, languages, company names, product name etc.
How can this be included when compiling?

Duplicate of https://github.com/dotnet/corert/issues/5095.

authors: DoCode jkotas

repo: dotnet/corert


text:
Custom GC in CoreRT does not compile

I was try to follow presentation of @kkokosa on YouTube about custom GC for .NET Core and thought that it would be fun exercise to make it in CoreRT.
So right now it is breaks with error
EXEC : LLVM error : invalid symbol redefinition

So I assume this is because GC_Initialize already defined. Presumably in Runtime.lib. Can something to be done about that?

Where are you getting the error from? Just surprised to see LLVM error in the error message.
We currently build two flavors of the runtime: Runtime.lib and Runtime.ServerGC.lib - the other one builds the GC codebase with #defines that allow server GC mode.
I don't know how tight the coupling is between the GC and the runtime - we could potentially build another flavor of the lib that doesn't have the GC in it.
The standalone GC work in CoreRT was probably only done to the extent that we can keep consuming the GC, but I'm not sure how well decoupled it is. (The decoupled GC mode is a relatively recent addition in CoreCLR and the GC.)

Conflict in my understanding comes from the fact that I try to declare exportable functions GC_Initialize and GC_VersionInfo. There
[UnmanagedCallersOnly(EntryPoint = "GC_Initialize")]
public static int GC_Initialize(
    IntPtr clrToGC,
    IntPtr gcHeap,
    IntPtr gcHandleManager,
    IntPtr gcDacVars)
{
    return 0;
}

[UnmanagedCallersOnly(EntryPoint = "GC_Initialize")]
public static void GC_VersionInfo(
    out VersionInfo result)
{
    result.MajorVersion = 3;
    result.MinorVersion = 1;
    result.BuildVersion = 0;
    result.Name = Marshal.StringToHGlobalAnsi("CoreRT Zero");
}

This produces corresponding names in the obj file. But the these guys already defined there.
https://github.com/dotnet/corert/blob/17369d3de5f418630d79522f3c9f418f204a7c32/src/Native/gc/gcload.cpp#L55-L62
So there is conflict. It's Uroboros kind of problem from my understanding.

I still don't understand how you get LLVM error with that. I would expect a message from the linker about duplicate symbols.

Run dotnet publish /p:NativeLib=Shared -c Release -r win-x64
it was results into call
> ...\.nuget\packages\runtime.win-x64.microsoft.dotnet.ilcompiler\1.0.0-alpha-29006-01\tools\ilc @obj\Release\netstandard2.0\win-x64\native\ZeroGC.ilc.rsp
LLVM ERROR: invalid symbol redefinition

RSP file with stripped references for brevity.
obj\Release\netstandard2.0\win-x64\ZeroGC.dll
-o:obj\Release\netstandard2.0\win-x64\native\ZeroGC.obj
-O
-g
--nativelib
--exportsfile:obj\Release\netstandard2.0\win-x64\native\ZeroGC.def
--initassembly:System.Private.CoreLib
--initassembly:System.Private.DeveloperExperience.Console
--initassembly:System.Private.StackTraceMetadata
--initassembly:System.Private.TypeLoader
--initassembly:System.Private.Reflection.Execution
--initassembly:System.Private.Interop
--completetypemetadata
--stacktracedata
--rootallapplicationassemblies
--scanreflection
--removefeature:SerializationGuard

@MichalStrehovsky

The standalone GC work in CoreRT was probably only done to the extent that we can keep consuming the GC, but I'm not sure how well decoupled it is. (The decoupled GC mode is a relatively recent addition in CoreCLR and the GC.)

We took all the interface changes and the changes to how the GC is loaded but the branch that loads the GC from an dll was cut.

Run dotnet publish /p:NativeLib=Shared -c Release -r win-x64

I don't think this is related to the GC_Initialize. ILC doesn't look at Portable.lib and there's no managed reference to GC_Initialize. ILC shouldn't be crashing.

We took all the interface changes and the changes to how the GC is loaded but the branch that loads the GC from an dll was cut.

The thing I'm wondering about is whether the runtime now communicates with the GC solely through the interface or whether there's still some back channels left. But you definitely know more about this than me - I'm not a GC person.

Oh, I see it now in the code you pasted:
[UnmanagedCallersOnly(EntryPoint = "GC_Initialize")]
public static int GC_Initialize(

// snip

[UnmanagedCallersOnly(EntryPoint = "GC_Initialize")]
public static void GC_VersionInfo(

These are both Entrypoint = GC_Initialize. That's the duplicate definition right there.
We should have a better error for this.

Ooh. Sorry. So much fuss for such trivial error. Let me move further

authors: MichalStrehovsky Suchiman kant2002


text:
Fix Unix build

@jkotas

@AntonLapounov,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Making this a pull request against the master branch would be better because:

We get CI validation that this indeed fixes all the Unix issues
Once this is merged, it also serves as the "Merge nmirror to master" merge
Your change won't immediately go to TFS (changes to nmirror branch flow immediatly)

authors: AntonLapounov MichalStrehovsky dnfclas


text:
Factor numeric constant parsing out of ParseConstantValue

Salvages the usable part of #5455.
After looking at the Enum code in CoreCLR, Enum APIs already only work on runtime types, so that pull request can be made simpler (no need for a LowLevelEnumInfo). I'll look into that one weekend.

Cherry picked into #7269


text:
13.2 End points and reachability (throw, empty, and block statements)

13.2 End points and reachability says

A warning is reported if the compiler determines that a statement is unreachable. It is specifically not an error for a statement to be unreachable.

However, C# compilers have never warned about unreachable statements that are

A throw statement throw ...
A block statement { ...
An empty statement ;

It would be nice to adjust the specification to match.

Did we ever discuss this at a meeting (@jskeet last comment) the "meeting: discuss" flag is still on it.
This is largely an issue of philosophy. @gafter says in his last comment "We treat new warnings as being nearly as bad of a breaking change..." – that's certainly not everybody's approach. I regularly use a, non-Microsoft, compiler where I expect each release to introduce new warnings and even errors – and occasionally addressing these can be a drag but generally they're good/helpful and result in improvements. Given C# is firmly in the MS-philosophy camp I think the Standard should/does go that way. Reading it back now I think it was a fun exchange with Neal but provided suitable wording I think we go the way he suggests.

We did discuss it, yes. I believe we basically agreed with the original premise of the issue, and decided it would be good to adjust the standard accordingly.

Over to @gafter for a PR maybe and remove the meeting: discuss?

@Nigel-Ecma: I added "meeting: discuss" to all issues that I assigned, in the hope and expectation that each would have something to discuss :)

authors: Nigel-Ecma gafter jskeet

repo: dotnet/csharpstandard


text:
Investigate Existing Docker Image Generations Processes Identify Existing Feature Overlaps And Current Feature Gaps In Relation To Epic #1313 Requirements

Review existing services and processes used to generate and store Docker images in storage registries as well as services provided by existing OSAB image generation solutions to find feature gaps and existing feature overlaps with the requirements set specified in Epic #1313

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[ ] Internal Infrastructure Improvements

Release Note Description

After reviewing with stake holders it was determined that work being proposed was not needed and the project has gone a different direction.

repo: dotnet/dnceng


text:
Add WinForms whatsnew

Summary
Add article
Fixes #1741

Internal previews

📄 File
🔗 Preview link

dotnet-desktop-guide/net/winforms/whats-new/net70.md
What's new for .NET 7 (Windows Forms .NET)

dotnet-desktop-guide/net/winforms/whats-new/net80.md
dotnet-desktop-guide/net/winforms/whats-new/net80

@adegeo I've moved to another team at the end of .NET 7, and AFAIK @dreddy-work was the primary owner of the .NET 8 release.

@dreddy-work has moved to another team with CarMob, but I bet he'd be happy to take a look too.

Will miss both @RussKie and @dreddy-work 😢

We already do very much!

I'm still here, feel free to ping me any time 😉

authors: RussKie adegeo merriemcgaw

repo: dotnet/docs-desktop