[CT-891] [Bug] Incremental model fails to load when inserting into empty table (Snowflake)

If I have an incremental model that was initially created from an empty source table, subsequent runs will not populate the table, even after the source table becomes populated.
Using an example from the docs:
{% if is_incremental() %}

  -- this filter will only be applied on an incremental run
  where event_time > (select max(event_time) from {{ this }})

{% endif %}

If the table is empty, then this where condition always returns false because any equality comparison to null is false.
The is_incremental() macro should probably check to see if the table is empty or not.

hi @lee-chris, thanks for opening! it isn't exactly a supported scenario and we're unlikely to address this, so I'm going to close as "won't fix".
Do you think a warning at the top of the doc page noting that incremental models on empty source tables aren't supported would be helpful?
@jtcohen6 has hinted that you may be able to write some more clever code -- I suspect with further Jinja statements to check whether the table is empty first -- could be possible, but in general we'd probably recommend starting with a table and moving to an incremental model at a certain scale.


[DOCFIX] docfix for index.md

docfix for index.md

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/16618/
Test FAILed.

Jenkins, test this please

@gpang Please target this PR to alluxio branch 1.6, thanks.


[Bug Report] el-switch is always on when created

Element UI version
1.3.0
OS/Browsers version
chrome58
Vue version
2.3.2
Reproduction Link
https://jsfiddle.net/pj71jkyw/178/
Steps to reproduce
see in jsfiddle
What is Expected?
v-model work
What is actually happening?
el-switch is always 'on' when created

0 is a number, but off-value="0" means the off value is string '0': https://jsfiddle.net/pj71jkyw/179/


Make it possible to link to user profile

As discussed on CZO, it would be helpful to be able to link to a user's profile.
To implement this, we can add a "Copy link to profile" option just below the "View profile" link on the user card. Clicking this should copy the link and display a "Copied!" tooltip, as we do elsewhere.
URL to use: /#user/{user_id}

CZO thread

@zulipbot claim


MIDI audio/rendering latency is too high

This is bad when playing a physical MIDI instrument through MIDI input.
They way to solve this properly would be using another audio backend, probably.
((DO NOT CLOSE THIS ISSUE ANYMORE FFS))

Cant reproduce

Even if you can't reproduce it, this is still an issue with physical MIDI instruments.

Is this still an issue?

Closing since this isn't an issue anymore

This is 100 % still an issue.

Still an issue?


remove unused constants

remove ~a dozen unused constants in the flutter repo

These were found by the latest analysis server; fixing these addressed about half of the issues in rolling in the latest sdk (https://github.com/flutter/flutter/pull/13180).
If we do want to keep some of these private constants around (like the material ones), we could make them public, or use the // ignore:  syntax.


fix: allow a custom chart secret to be used when releasing charts

/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


CI clone optimizations - from 11.8 GB to 2.11 GB of cloned directory configured & generated with CMake

with shallow depth=1 and media cloned as well*

with shallow depth=1 and media cloned as well*

900 MB if cloned without media with this setup with last commit of this PR


CLI specification

@br4ch1st0chr0n3 I rewrote the description using this syntax guide.  What do you think?

@br4ch1st0chr0n3 I think I have addressed all the suggestions in https://github.com/nikololiahim/polystat-cli/pull/4/commits/e3a4a6c4c2f1d9fe9ab06520b5793dfc3a262617. What do you think?

The only undecided thing for now is the format of the configuration file. I suggest using the ones supported by ciris, beacause they would be the easiest to integrate with. This means we have JSON, YAML and HOCON to choose from.

Maybe the language shouldn't be mutually exclusive in the end. It is possible to differentiate between the generated files if we also include the original extension in the output file name, e.g. hello.eo.sarif.json, hello.java.sarif.json, etc.

But before that, it's important to finish reading configs from the file. I think I'll settle on HOCON with ciris. We'll see how it goes though.

But before that, it's important to finish reading configs from the file. I think I'll settle on HOCON with ciris. We'll see how it goes though.

I am unsure that we need to use a special format of config file [1] and not a plain text file [2].
Benefits of [1]: syntax checking and highlighting, allows to split long commands
Drawbacks of [1]: unnecesarily complex, need a separate section describing how to write such file
Benefits of [2]: has the same format as specified here (hence, can be directly copied into a console), allows splitting long commands, is easy to read
polystat
java
--in in

Drawbacks of [2]: no syntax checking and highlighting
Both options can be used. However, the commands won't probably be too long, so I'd prefer using a simpler option.
But I don't mind if you'd like to experiment with a new config format.

@br4ch1st0chr0n3 some comments are addressed in https://github.com/nikololiahim/polystat-cli/pull/4/commits/35681d01c8063667f9daaf223caa4df80d911bce


Created and Linked config.appcache

Implemented AppCache...created separate file containing names of all files within The-Green-Alliance/app/www. Named this file config.appcache and linked this file within The-Green-Alliance/app/www/index.html.

Closes #23


[SNOW-116] New template repository for Streamlit apps

I'm migrating the Streamlit app module to be its own template repository that new repositories can be based off of. Moving it out of the snowflake repository will minimize risk of other areas in the repository accidentally getting modified, and it will allow non-DPE users to create and contribute to their own app repositories with minimal overhead, allowing the focus of the template app to be solely a template app.
Changelog

[x] Migrate all components from snowflake to this repository branch
[x] Update the README with new instructions for how users can make their apps

Should we copy over .vscode as well?
https://github.com/Sage-Bionetworks/snowflake/tree/dev/.vscode

You'll also want to copy over:
https://github.com/Sage-Bionetworks/snowflake/blob/dev/.github/CODEOWNERS
And double check the permissions. Do we have a standard around granting X/Y groups admin rights on these? Like IT, DPE, individuals ect... @thomasyu888 ?

Updated, thanks @BryanFauble - and as for permissions, right now the DPE team has maintainer permissions. My inclination is to give IT and Tom admin permissions.

Thanks @BryanFauble ! My ruleset is a little strict. Could you take a look at my last commit and give me another review?


callbacks should be namespace aware

get_callback_url() contains only the pipeline ID but no information about the current namespace.  The default _CallbackHandler will do the pipeline lookup in the default namespace, so if the original pipeline was running within a non-default namespace, the callback handler wont be able to find it

Same issue here. Any workaround?


flogo build fails in windows environment

I have took latest flogo-cli with go get -u github.com/TIBCOSoftware/flogo-cli/... command and also installed dep using go get -u github.com/golang/dep/cmd/dep in my windows environment.
When I try to build a basic flogo application I get the following error:
C:\***\flogo-web>flogo build
imports.go:5:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow (from $GOPATH)
main.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/app" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\app (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\app (from $GOPATH)
main.go:10:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/engine" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\engine (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\engine (from $GOPATH)
main.go:11:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/logger" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\logger (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\logger (from $GOPATH)
vendor\github.com\Sirupsen\logrus\terminal_check_notappengine.go:9:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of:
        C:\Go\src\golang.org\x\crypto\ssh\terminal (from $GOROOT)
        C:\***\goworkspace\src\golang.org\x\crypto\ssh\terminal (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:12:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/definition" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:13:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/extension" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:14:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/instance" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:15:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/model" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\model (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\model (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:16:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/provider" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:17:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/tester" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:18:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/action" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\action (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\action (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:19:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/data" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\data (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\data (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\action.go:21:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/util" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\util (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\util (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition\definition_ser.go:8:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/activity" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\activity (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\activity (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\definition\mapper.go:6:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/mapper" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\mapper (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\mapper (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\extension\extension.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/model/simple" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\model\simple (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\model\simple (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance\recorder.go:9:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/service" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\service (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\service (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\instance\exec.go:4:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/support" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\support (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\support (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\provider\provider.go:8:2: cannot find package "github.com/TIBCOSoftware/flogo-contrib/action/flow/script/fggos" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\script\fggos\linkexpr.go:9:2: cannot find package "github.com/japm/goScript" in any of:
        C:\Go\src\github.com\japm\goScript (from $GOROOT)
        C:\***\goworkspace\src\github.com\japm\goScript (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\request.go:10:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/core/trigger" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\core\trigger (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\core\trigger (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\request.go:11:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/engine/runner" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\engine\runner (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\engine\runner (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-contrib\action\flow\tester\service.go:11:2: cannot find package "github.com/julienschmidt/httprouter" in any of:
        C:\Go\src\github.com\julienschmidt\httprouter (from $GOROOT)
        C:\***\goworkspace\src\github.com\julienschmidt\httprouter (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-lib\app\config.go:5:2: cannot find package "github.com/TIBCOSoftware/flogo-lib/config" in any of:
        C:\Go\src\github.com\TIBCOSoftware\flogo-lib\config (from $GOROOT)
        C:\***\goworkspace\src\github.com\TIBCOSoftware\flogo-lib\config (from $GOPATH)
vendor\github.com\TIBCOSoftware\flogo-lib\logger\logfactory.go:7:2: cannot find package "github.com/Sirupsen/logrus" in any of:
        C:\Go\src\github.com\Sirupsen\logrus (from $GOROOT)
        C:\***\goworkspace\src\github.com\Sirupsen\logrus (from $GOPATH)
vendor\golang.org\x\crypto\ssh\terminal\util_windows.go:22:2: cannot find package "golang.org/x/sys/windows" in any of:
        C:\Go\src\golang.org\x\sys\windows (from $GOROOT)
        C:\***\goworkspace\src\golang.org\x\sys\windows (from $GOPATH)
FATAL: command "build" failed: exit status 1

My flogo JSON is as follows:
{
  "name": "flogo-web",
  "type": "flogo:app",
  "version": "0.0.1",
  "description": "Empty flogo app",
  "triggers": [],
  "actions": [
    {
      "ref": "github.com/TIBCOSoftware/flogo-contrib/action/flow"
    }
  ]
}

Did you create a new app from the json (flogo create -f app,json) or are you running flogo build from an existing app structure?

I have created it with the new cli

The issue was due to go version. In windows we are only able to get flogo-cli working in go v1.9+
Closing the issue.


Add deno port

No ts errors 86 ts errors (down from 200) It's a start!
Anyone that wants to work further on this, go for it!
Biggest blockers are:

[ ] missing builtin "stream" module for Duplex
[ ] missing builtin "net" module
[ ] missing builtin "crypto" module for AES gcm

Tested with: deno run testfile.ts:
import { Node, Context } from '../flatend/deno/src/mod.ts'

await Node.start({
  addrs: ['<IP_ADDRESS>:6283'],
  services: {
    hello_world: (ctx: Context) => ctx.send('Hello world!' + Date.now()),
  },
})

I don't think I can finish this, it probably makes more sense to rewrite the networking part in idiomatic Deno instead of waiting for the std/node/... to catch up.


PageIterator will not accept the request_adapter property of GraphServiceClient

Describe the bug
I'm creating a PageIterator like so:
iterator = PageIterator(messages, graph_client.request_adapter)

This gives the following error in VS Code's Problems window:
Argument of type "RequestAdapter[Unknown, Unknown, Unknown]" cannot be assigned to parameter "request_adapter" of type "HttpxRequestAdapter[Unknown]" in function "__init__"
  "RequestAdapter[Unknown, Unknown, Unknown]" is not assignable to "HttpxRequestAdapter[Unknown]"

The source of this is the Pylance VS Code extension and seems to come from pyright. Running pyright from the command line gives the same error.
To be clear: the code runs and does what it needs to do.
Expected behavior
No problem displayed by Pylance or pyright.
How to reproduce

Put this code in a .py file.

from kiota_abstractions.base_request_configuration import RequestConfiguration
from msgraph.generated.models.message import Message
from msgraph.generated.users.item.messages.messages_request_builder import MessagesRequestBuilder
from msgraph.graph_service_client import GraphServiceClient
from msgraph_core.tasks.page_iterator import PageIterator

async def iterate_all_messages(graph_client: GraphServiceClient) -> None:
    # <PagingSnippet>
    query_params = MessagesRequestBuilder.MessagesRequestBuilderGetQueryParameters(
        select=['sender', 'subject', 'body'],
        top=10
    )

    config = RequestConfiguration(
        query_parameters=query_params
    )

    config.headers.add('Prefer', 'outlook.body-content-type="text"')

    messages = await graph_client.me.messages.get(config)

    page_iterator = PageIterator(messages, graph_client.request_adapter)

    await page_iterator.iterate(Paging.message_callback)

Run pip install pyright

Run pyright

SDK Version
1.8.0
Latest version known to work for scenario above?
No response
Known Workarounds
Add # type: ignore at end of the offending line.
Debug output
Click to expand log
```

</details>

### Configuration

_No response_

### Other information

_No response_

@Ndiritu Vincent said you were the right contact for this.


DropdownMenu.Item with as="a" doesn't work as expected

Bug report
Current Behavior
When using DropdownMenu.Item with as="a", the link cannot be navigated to unless an onSelect callback is passed which internally calls preventDefault()
<>
<DropdownMenu.Item as="a" href="https://www.example.com">
  Link won't work, it just closes the dropdown
</DropdownMenu.Item>
<DropdownMenu.Item as="a" href="https://www.example.com" onSelect={(e) => e.preventDefault}>
   Works, but feels complicated
</DropdownMenu.Item>
</>

Expected behavior
Support DropdownMenu item links with only an as prop:
<DropdownMenu.Item as="a" href="https://www.example.com">
  Example link
</DropdownMenu.Item>

Reproducible example
CodeSandbox
Suggested solution

Additional context
Your environment

Software
Name(s)
Version

Radix Package(s)
@radix-ui/react-dropdown-menu
0.0.10

React
17

Browser
FF

Assistive tech
n/a

Node
14.

npm/yarn
yarn

Operating System
macOs
11.2.1

Hey @smhutch, thanks for reporting the issue.
I can reproduce is with the version you are using, however good news, I cannot reproduce it in our main branch so it looks like it was resolved already and will be part of the next release cycle.
@jjenzz, I think it was probably fixed by this one: #548

Awesome, thank you @benoitgrelard & @jjenzz

After reading this and trying it, I realised it seems this issue is back so I'm reopening it.

This was fixed by https://github.com/radix-ui/primitives/pull/818 and available in the Beta release.


Fix background color not changing with theme switch

Fix the issue where the background color wasn't changing when running locally and updating the theme:
Bug 2324252: changing theme doesn't update background color when running locally
Description

Checklist

[x] I have added screenshots above for all UI changes.
[ ] I have added e2e tests for all UI changes.
[ ] Documentation was updated if it was needed.

Thanks Hannah for the fix!!!  could you please add a gif? Thanks!


Going 'back' to a Search

Noticing that when I search something and then click on an individual object, there's no way for me to go 'back' to a search.  This might be something we want to build in?

<EMAIL_ADDRESS>let’s fix this basic UI thing - can we put a search box in the main nav that is global to all pages - searches across all fields and first class objects etc?

Instead of "filtering" can we just show a search results page? with pretty query urls and all that?


Manual issues - Broken images

List of Broken images:
gallery
paint art
play game
player sprite rules
left button press
left button rule
predicate flags
attributes
player sprite rules

Oh, I left it in a bad state... yes.

There is still some problem with images showing - I need to get peli's help.


Remove line pragmas from template-generated C#

This change sets the linePragmas directive for the T4 template to false and updates the generated C# code.

The changes do indeed seem to do what the PR says it does, but could you speak to why it is desirable to remove these pragmas?

The C# code is generated by a tool provided through Visual Studio, which means it has to be generated locally rather that during a pipeline build and included in source control because the tool itself is not multi-platform. By default, the tool generates #line pragmas to be able to step through the code in the template when debugging. However, some of these pragmas contain absolute paths that are specific to the machine in which generation happens. This is undesirable because when someone changes the template, the C# will also change and will have many unrelated changes since it will replace the paths used by #line pragmas with the paths specific to the local machine that is generating the C# code. Moreover, this can also happen if the path of the local repo changes.


Migrate old comment activities

In https://github.com/opencollective/opencollective-api/pull/7884, we stopped recording COLLECTIVE_COMMENT_CREATED activities to instead use the (existing) more specific ones: EXPENSE_COMMENT_CREATED, CONVERSATION_COMMENT_CREATED, UPDATE_COMMENT_CREATED.
We should now migrate the old activities still using this type.

Related: we should also remove the collective.comment.created.hbs email template.


[Feature] Returns cached chained Derived

Many times to create Derived from .chain
notifying and memorization also have a little bit of cost to perform.
if chaining condition is same, we can return shared derived.

Implemented in v7.0-rc.1


Preserving spaces around variables

Would you consider adding an option for preserving spaces around variables or comments between variables?

Preserving whitespace around something like the above would be cool!

I've been using this formatter for a while now and the only thing I see left to make it perfect is to not remove blank lines around grouped variable declarations such as hashes.
@ThisIsManta Thanks for you amazing work! :pray:


Add a back button for back navigation in ProfileActivity and AboutActivity

Suggestion / Feature Request
Exactly what it says

Hi! I'd like to take this up

The default client id is supposed to be not there in the strings xml right?

@VSen910 assigning u 😇. Yeah that default web client id is generated during build


chore: update SHA

This tracks one of the changes in leanprover-community/mathlib#18127, which for this file was a backport.

https://leanprover-community.github.io/mathlib-port-status/file/data/list/sigma?range=ccad6d5093bd2f5c6ca621fc74674cce51355af6..f694c7dead66f5d4c80f446c796a5aad14707f0e
The already-changed line can be seen here,
https://github.com/leanprover-community/mathlib4/blob/fc7197f3dc21d3af2c1586713c843fa9a44fe22e/Mathlib/Data/List/Sigma.lean#L307

Thanks!
bors r+


File main.py has 550 lines of code (exceeds 250 allowed). Consider refactoring.

says CodeClimate.

Still 870 lines.

Still 660 lines or so.

Still 400 lines or so.

Before continuing this, I need to figure out the command chaining of click.  The current code seems to implement the command chaining, but I have never used it.  So I won't notice if some refactoring breaks the command chaining.


Huge performance issues

Description
Absolutely any action is accompanied by lag and interface sluggishness. Standard windows explorer performs any action instantly, but Files file manager works as if I have a computer from twenty years ago. My hardware: CPU i7-7700, 32 Gb ram, GPU GTX 1060 6Gb.
Steps To Reproduce
Attempt any action.
Requirements
Remove the delay on any action. Make the interface responsive to user actions.
Files Version
<IP_ADDRESS>
Windows Version
10.0.22631.3447
Log File
debug.log

Thank you for feedback, can give some more specifics of a specific action and share a screen recording?

Going to the Program files folder takes 1.5 seconds. Clicking on other interface elements also has approximately one second delay. For comparison, going to the Program files folder in Explorer takes 0.3 seconds.
Clicking on the drop-down menu in the address bar is delayed by 0.5 seconds. In windows explorer, the same menu appears after 0.25 seconds and does not make clicking uncomfortable.
Navigating through different tabs in Settings is also delayed by up to one second. Such videos can be recorded about any part of the interface. Everywhere there will be a delay in the interface response to a user click.
https://github.com/files-community/Files/assets/919215/e16af736-339a-412a-8d2c-966036b30359
https://github.com/files-community/Files/assets/919215/0b8c74c8-32c5-482b-af46-f2fa9d24b027
https://github.com/files-community/Files/assets/919215/d961d044-1858-4c02-8194-be4a81e72ee0

Thank you for your feedback, the delay is less on my device but unfortunately this is the norm with WinUI applications. We're doing our best to optimize from our end and there is more to do in this area, but the main thing depends on Microsoft improving the WinAppSdk framework (Native AOT support & IL Trimming are two areas Microsoft is working on that should help).
In the meantime, please subscribe to #4180 to be notified when improvements are available.


deploy configuration

the application is ready but still need some configuration for deployment

changing the plans, the app will run under Nginx server using uwsgi protocol that supports WSGI


link to latest ucp docs from homepage

It seems the dockercloud CI integration is borked? I don't see any reasons for the PR to fail.

Thanks, @vikstrous :)


Bug: create_app doesn’t have the cpu_target::String kwarg

The docstring for create_app says that it has the cpu_target::String kwarg, but the function doesn’t actually accept that keyword argument.
I think something went wrong when merging #86. Probably because it was during the repository transfer.
cc: @KristofferC

Oops, I'll fix it in a while unless you beat me to it :)


Custom CSS option? or class?

Default form fields are not seeing good(especially checkboxes and radioboxes), so it will be better if it has custom css option or class. And is it possible to check in default on radio / checkbox? Also I think it will be better that label and checkbox/radio wrapped by a div with some kind of class, so developers can manually override css rules. Thanks.

Solved by #38.


Does not compile under node v0.10.x

There are some minor V8 API differences that make it hard to make the module compatible with both node v0.10.x and v0.11.x without writing duplicate code.

Closing this out, node 0.10 support is no longer needed.


NotSerializableException causes stack traces in forked sbt test

With ScalaTest 2.2.1, sbt 0.13.6, and Scala 2.10.4, I'm seeing the following output when a generator-driven property check fails:

Reporter completed abruptly with an exception after receiving event: TestFailed ...

I also get this stack trace (and others like it):

java.io.NotSerializableException: org.scalacheck.util.Pretty$$anon$1
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at scala.collection.immutable.$colon$colon.writeObject(List.scala:379)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1495)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
at org.scalatest.tools.SocketReporter.apply(SocketReporter.scala:31)
at org.scalatest.DispatchReporter$Propagator$$anonfun$run$1.apply(DispatchReporter.scala:240)
at org.scalatest.DispatchReporter$Propagator$$anonfun$run$1.apply(DispatchReporter.scala:239)
at scala.collection.immutable.List.foreach(List.scala:318)
at org.scalatest.DispatchReporter$Propagator.run(DispatchReporter.scala:239)
at java.lang.Thread.run(Thread.java:744)

Sbt still seems to get the test results, but these stack traces pollute my console. The tests are running in a forked JVM, which I assume is why it's using a socket.

Hello,
Sorry we accidentally left the darned fix out of 2.2.3. We released 2.2.4 to remedy that. Tomorrow at the nescala hack day I'm going to try and catch up scalatest.org with release notes. But you can use it already by just changing your dependency to 2.2.4. I double and triple checked that we had the fix in there, so hopefully it will work this time. Please let me know whether it works for you, and sorry again for the long wait on this one.
Bill

+1

@bvenners, after upgrading to scalatest 2.2.4, scalacheck 1.12.2 I'm still seeing the same exception and stack trace as above when a test fails. Here is a quick example project;
build.sbt
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.4" % "test"

libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.12.2" % "test"

fork in Test := true

src/test/scala/SomeSpec.scala
import org.scalatest.prop.GeneratorDrivenPropertyChecks
import org.scalatest.{ Matchers, WordSpec }

class SomeSpec extends WordSpec with Matchers with GeneratorDrivenPropertyChecks {
  "this test should fail without sbt exceptions" in {
    forAll { value: Int =>
      value shouldNot equal(value)
    }
  }

  "this test should pass without any exceptions in the console" in {
    forAll { value: Int =>
      value shouldEqual value
    }
  }
}

Note the addition of the second test forces the broken pipe exceptions to start appearing.

Any progress on this?  I'm getting the same "Reporter completed abruptly with an exception" error that anovstrup (first comment) did with a very similar stack trace.  I'm not entirely sure what he means by a "generator-driven property check".  My test generates an exception that the test (does not yet) catch with an "intercept".  Even though the test isn't done, it really feels like scalatest is failing in an ugly way.
I'm using
"org.scalatestplus" %% "play" % "1.2.0" % "test",		// testing
sbt.version=0.13.7
Welcome to Scala version 2.11.4

+1
Any hope for a fix? Still broken for  scalatest 2.2.5 & scalacheck 1.12.2 .

+1
I have a test that involves rapture-json's JsonBuffer class which is not serializable. If there is at least one test failure then all output is messed with NotSerializableExceptions...

Sorry I don't think we have had time to look at this one yet. I did assign it to someone so I'll dig up who that was and see if they looked at it yet, but we have been mostly overwhelmed by the Scala.js port the last four months. Now we're trying to get a release out (3.0.0). We are going to triage the issues which have been accumulating while we focused on Scala.js, fix the critical ones but wait until after the 3.0.0 release for one that can possibly wait.
In this case it sounds like a non-ScalaTest class is not serializable, which if true is the root cause. But perhaps we can do something in ScalaTest to catch that exception and deal with it somehow that doesn't pollute the report is what I'm thinking. If anyone out there in user-land has time to try and make that improvement and submit a PR that would help. But if not we will get to it as soon as we are able.
Thanks.
Bill

Just a quick update, I submitted a PR for this here:
https://github.com/scalatest/scalatest/pull/673

This is released in ScalaTest 2.2.6-SNAP1. Can you give that a try and let us know if it fixes the problem?

I was facing the same issue everytime a test failed. 2.2.6-SNAP1 fixed the issue for me.

2.2.6-SNAP1 fixed the issue for me, even for failures within an "eventually" block. For anyone else testing this issue, remember to update your scalacheck dependency to 1.12.4 when you change your scalatest dependency to 2.2.6-SNAP1.

@crypticmind Did your problem arise with GeneratorDrivenPropertyChecks (i.e., scalacheck tests) specifically? Or with other kinds of tests?  You may be seeing a different issue...

@anovstrup Not related to ScalaCheck at all. I'm running functional tests in a Play application.

Using PropertyChecks:
Exception in thread "Thread-296" java.lang.ClassCastException: cannot assign instance of scala.collection.immutable.List$SerializationProxy to field org.scalatest.prop.Checkers$$anonfun$doCheck$3.scalaCheckArgs$2 of type scala.collection.immutable.List in instance of org.scalatest.prop.Checkers$$anonfun$doCheck$3
	[...]
	at org.scalatest.tools.Framework$ScalaTestRunner$Skeleton$1$React.react(Framework.scala:953)
	at org.scalatest.tools.Framework$ScalaTestRunner$Skeleton$1.run(Framework.scala:942)
	at java.lang.Thread.run(Thread.java:745)

Using ,
"org.scalatest"              %% "scalatest"      % "2.2.6"  % "test"
"org.scalacheck"             % "scalacheck_2.11"      % "1.12.5" % "test"

I saw:
Exception in thread "Thread-285" java.lang.ClassCastException: cannot assign instance of scala.collection.immutable.List$SerializationProxy to field org.scalatest.prop.Checkers$$anonfun$doCheck$3.scalaCheckArgs$2 of type scala.collection.immutable.List in instance of org.scalatest.prop.Checkers$$anonfun$doCheck$3
	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2089)
	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1261)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2006)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
	at org.scalatest.tools.Framework$ScalaTestRunner$Skeleton$1$React.react(Framework.scala:795)
	at org.scalatest.tools.Framework$ScalaTestRunner$Skeleton$1.run(Framework.scala:784)
	at java.lang.Thread.run(Thread.java:745)
Reporter completed abruptly with an exception after receiving event: TestFailed(Ordinal(0, 3),TestFailedException was thrown during property evaluation.

Is this a scalatest/scalacheck issue? If so, could you please tell me a fix?
Thanks,
Kevin

Hi Kevin,
That looks like a DE-serialization problem. Is it possible you have different versions of ScalaTest or ScalaCheck on the de-serialization side as you do on the serialization side?
Bill

By the way I just checked and that version of ScalaCheck is the correct one to use with that version of ScalaTest. It is the version of ScalaCheck that ScalaTest 2.2.6 was built with.

I am seeing a ClassCastException
ScalaTest 2.2.6
ScalaCheck 1.12.5
Exception in thread "Thread-34" java.lang.ClassCastException: cannot assign instance of scala.collection.immutable.List$SerializationProxy to field org.scalacheck.Test$Failed.args of type scala.collection.immutable.List in instance of org.scalacheck.Test$Failed
at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2089)
at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1261)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2006)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
at org.scalatest.tools.Framework$ScalaTestRunner$Skeleton$1$React.react(Framework.scala:795)
at org.scalatest.tools.Framework$ScalaTestRunner$Skeleton$1.run(Framework.scala:784)
at java.lang.Thread.run(Thread.java:745)

Hi sullis,
Your issue looks different than Kevin's. It looks like something in ScalaCheck isn't Serializable. Did you submit this to ScalaCheck?
We'll also investigate, but if you could paste a small project that reproduces the error that would help a lot.
Thanks.
Bill

FWIW, I'm having the same problem with:
      "org.scalatest" %% "scalatest" % "2.2.6" % "test",
      "org.scalacheck" %% "scalacheck" % "1.12.5" % "test"

hi @bvenners, re: https://github.com/scalatest/scalatest/issues/427#issuecomment-170140037's

Is it possible you have different versions of ScalaTest or ScalaCheck on the de-serialization side as you do on the serialization side?

I'm not sure that I understand what this means. Could you please say more?
Thank you

Hi Kevin,
How are you running your tests? Are you perhaps using sbt in fork mode? If so, then it is highly unlikely you have a different version of ScalaTest or ScalaCheck on opposite sides of the serialization.
Also, the "did you try turning it off and on again" of problems like this is "did you try a clean build"? I'd also try that just to make sure.
Bill

In my case, it's definitely associated with fork mode... problem goes away when I turn it off.

I am having this problem with scalatest 2.2.6 / scalacheck 1.12.5, but only on Jenkins. On two different dev machines, the test works fine.
The error is
10:51:02 Exception in thread "Thread-44" java.lang.ClassCastException: cannot assign instance of scala.collection.immutable.List$SerializationProxy to field org.scalatest.prop.Checkers$$anonfun$doCheck$3.scalaCheckArgs$2 of type scala.collection.immutable.List in instance of org.scalatest.prop.Checkers$$anonfun$doCheck$3

Same here with scalatest 2.2.6 / scalacheck 1.12.5 and the problem is associated with fork like for @metasim.

It's fixed with scalatest 3.0.0 / scalacheck 1.13.0

@melrief : Its not fixed.
Here is my build.sbt:
name := "DataScience"
version := "0.0.1-SNAPSHOT"
scalaVersion := "2.11.8"
resolvers ++= Seq(
  "ERI OSS" at "http://dl.bintray.com/elderresearch/OSS"
)
libraryDependencies ++= Seq(
  "ch.qos.logback"                     % "logback-classic"       %   "1.1.7",
  "codes.reactive"                    %% "scala-time"            %   "0.4.0",
  "com.amazonaws"                      % "aws-java-sdk-redshift" %   "1.11.19",
  "com.beachape"                      %% "enumeratum"            %   "1.4.14",
  "com.elderresearch"                 %% "ssc"                   %   "0.2.0",
  "com.github.ben-manes.caffeine"      % "caffeine"              %   "2.3.3",
  "com.github.blemale"                %% "scaffeine"             %   "1.2.0",
  "com.github.finagle"                %% "finch-circe"           %   "0.11.0-M2",
  "com.github.finagle"                %% "finch-core"            %   "0.11.0-M2",
  //"com.github.finagle"                %% "finch-oauth"           %   "0.11.0-M2",
  "com.github.finagle"                %% "finch-test"            %   "0.11.0-M2" % Test,
  "com.github.pathikrit"              %% "better-files"          %   "2.16.0",
  "com.github.tototoshi"              %% "scala-csv"             %   "1.3.3",
  "com.typesafe.scala-logging"        %% "scala-logging"         %   "3.4.0",
  "com.typesafe.slick"                %% "slick"                 %   "3.1.1",
  "com.typesafe.slick"                %% "slick-hikaricp"        %   "3.1.0",
  "io.circe"                          %% "circe-core"            %   "0.5.0-M2",
  "io.circe"                          %% "circe-generic"         %   "0.5.0-M2",
  "io.circe"                          %% "circe-parser"          %   "0.5.0-M2",
  "info.debatty"                       % "java-string-similarity"%   "0.18",
  "org.apache.poi"                     % "ooxml-security"        %   "1.1",
  "org.apache.poi"                     % "ooxml-schemas"         %   "1.3",
  "org.apache.poi"                     % "poi"                   %   "3.14",
  "org.apache.poi"                     % "poi-ooxml"             %   "3.14",
  "org.apache.poi"                     % "poi-ooxml-schemas"     %   "3.14",
  "org.docx4j"                         % "docx4j"                %   "3.1.0",
  "org.scalacheck"                    %% "scalacheck"            %   "1.13.0"  % Test,
  "org.scalatest"                     %% "scalatest"             %   "3.0.0"   % Test,
  "org.scalaj"                        %% "scalaj-http"           %   "2.3.0"
)
scalacOptions ++= Seq(  // copied from https://tpolecat.github.io/2014/04/11/scalac-flags.html
  "-deprecation",
  "-encoding", "UTF-8",       // yes, this is 2 args
  "-feature",
  "-language:_",
  "-unchecked",
  "-Xfatal-warnings",
  "-Xlint",
  "-Ywarn-dead-code",
  "-Ywarn-numeric-widen",
  "-Ywarn-value-discard",
  "-Xfuture"
)

//testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-oDS")
logBuffered in Test := false
parallelExecution in Test := false
fork in Test := true
javaOptions in Test += "-Xmx2G"

lazy val root = (project in file(".")).enablePlugins(SbtTwirl)

TwirlKeys.templateFormats += ("sql" -> "play.twirl.api.TxtFormat")

addCompilerPlugin(
  "org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full
)

assemblyMergeStrategy in assembly := {
  case PathList("META-INF", xs @ _*) => MergeStrategy.discard
  case x => MergeStrategy.first
}

Exception:
java.net.SocketException: Broken pipe
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
	at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1877)
	at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(ObjectOutputStream.java:1915)
	at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1576)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:351)
	at org.scalatest.tools.SocketReporter.apply(SocketReporter.scala:31)
	at org.scalatest.DispatchReporter$Propagator$$anonfun$run$1.apply(DispatchReporter.scala:243)
	at org.scalatest.DispatchReporter$Propagator$$anonfun$run$1.apply(DispatchReporter.scala:242)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.scalatest.DispatchReporter$Propagator.run(DispatchReporter.scala:242)
	at java.lang.Thread.run(Thread.java:745)
Reporter completed abruptly with an exception after receiving event: SuiteCompleted(Ordinal(0, 12),KeywordScoringSpec,com.coatue.datascience.yodlee.KeywordScoringSpec,Some(com.coatue.datascience.yodlee.KeywordScoringSpec),Some(52),Some(MotionToSuppress),Some(TopOfClass(com.coatue.datascience.yodlee.KeywordScoringSpec)),None,None,pool-1-thread-1,1475004753693).
java.net.SocketException: Broken pipe
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
	at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1877)
	at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(ObjectOutputStream.java:1915)
	at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1576)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:351)
	at org.scalatest.tools.SocketReporter.apply(SocketReporter.scala:31)
	at org.scalatest.DispatchReporter$Propagator$$anonfun$run$1.apply(DispatchReporter.scala:243)
	at org.scalatest.DispatchReporter$Propagator$$anonfun$run$1.apply(DispatchReporter.scala:242)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.scalatest.DispatchReporter$Propagator.run(DispatchReporter.scala:242)
	at java.lang.Thread.run(Thread.java:745)
Reporter completed abruptly with an exception after receiving event: RunCompleted(Ordinal(0, 13),Some(40785),Some(Summary(1,2,0,0,0,3,0,0)),None,None,None,main,1475004753700).
java.net.SocketException: Broken pipe
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
	at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1877)
	at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(ObjectOutputStream.java:1915)
	at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1576)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:351)
	at org.scalatest.tools.SocketReporter.apply(SocketReporter.scala:31)
	at org.scalatest.DispatchReporter$Propagator$$anonfun$run$1.apply(DispatchReporter.scala:243)
	at org.scalatest.DispatchReporter$Propagator$$anonfun$run$1.apply(DispatchReporter.scala:242)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.scalatest.DispatchReporter$Propagator.run(DispatchReporter.scala:242)
	at java.lang.Thread.run(Thread.java:745)
Reporter completed abruptly with an exception on invocation of the dispose method.
java.net.SocketException: Broken pipe
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
	at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1877)
	at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1822)
	at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:719)
	at org.scalatest.tools.SocketReporter.dispose(SocketReporter.scala:37)
	at org.scalatest.Reporter$.propagateDispose(Reporter.scala:152)
	at org.scalatest.DispatchReporter$Propagator$$anonfun$run$2.apply(DispatchReporter.scala:254)
	at org.scalatest.DispatchReporter$Propagator$$anonfun$run$2.apply(DispatchReporter.scala:253)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at org.scalatest.DispatchReporter$Propagator.run(DispatchReporter.scala:253)
	at java.lang.Thread.run(Thread.java:745)
[info] ScalaTest
[info] Run completed in 41 seconds, 742 milliseconds.
[info] Total number of tests run: 0
[info] Suites: completed 0, aborted 0
[info] Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
[info] No tests were executed.
[error] Failed: Total 3, Failed 2, Errors 0, Passed 1

I bumped into the same problem with scalatest 3.0.1 and fork := true. FWIW, I was able to work around the issue by moving a case class definition inside my test suite to outside the test suite, as recommended here: https://github.com/scalatest/scalatest/issues/542#issuecomment-91606333

Yup bumped into this issue also with scalatest 3.0.1 with fork set to true or false. Change to using version 3.0.0 and I don't get this error.

Is there any consideration for configurable serialization logic? Errors I get involve classes for which I have wire formats, and if I could specify their use where Java object serialization breaks down (a convention not unlike Akka's would be great) this would be a nonissue.

Hi everyone,
I have a similar problem with circe-golden (See here: https://github.com/circe/circe-golden/issues/40)
Versions used:

Scala: 2.12 and 2.13
Scalatest: 3.1.1
ScalaCheck: 1.14.3
Circe Golder: 0.2.1
discipline-scalatest: 1.0.1

Here's the error I have:
NotSerializableException was thrown during property evaluation.
  Message: com.example.CurrencyGoldenTest$Currency$
  Occurred when passed generated values (

  )
ScalaTestFailureLocation: org.scalatestplus.scalacheck.CheckerAsserting$$anon$2 at (CurrencyGoldenTest.scala:45)
org.scalatest.exceptions.GeneratorDrivenPropertyCheckFailedException: NotSerializableException was thrown during property evaluation.
  Message: com.example.CurrencyGoldenTest$Currency$
  Occurred when passed generated values (

  )
	at org.scalatestplus.scalacheck.CheckerAsserting$$anon$2.indicateFailure(CheckerAsserting.scala:251)
	at org.scalatestplus.scalacheck.CheckerAsserting$$anon$2.indicateFailure(CheckerAsserting.scala:238)
	at org.scalatestplus.scalacheck.UnitCheckerAsserting$CheckerAssertingImpl.check(CheckerAsserting.scala:160)
	at org.scalatestplus.scalacheck.Checkers.check(Checkers.scala:371)
	at org.scalatestplus.scalacheck.Checkers.check$(Checkers.scala:369)
	at org.scalatestplus.scalacheck.Checkers$.check(Checkers.scala:382)
	at org.typelevel.discipline.scalatest.FlatSpecDiscipline.$anonfun$checkAll$4(Discipline.scala:47)
	at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
	at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
	at org.scalatest.Transformer.apply(Transformer.scala:22)
	at org.scalatest.Transformer.apply(Transformer.scala:20)
	at org.scalatest.flatspec.AnyFlatSpecLike$$anon$5.apply(AnyFlatSpecLike.scala:1683)
	at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
	at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195)
	at org.scalatest.flatspec.AnyFlatSpec.withFixture(AnyFlatSpec.scala:1685)
	at org.scalatest.flatspec.AnyFlatSpecLike.invokeWithFixture$1(AnyFlatSpecLike.scala:1681)
	at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTest$1(AnyFlatSpecLike.scala:1693)
	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest(AnyFlatSpecLike.scala:1693)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTest$(AnyFlatSpecLike.scala:1675)
	at org.scalatest.flatspec.AnyFlatSpec.runTest(AnyFlatSpec.scala:1685)
	at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$runTests$1(AnyFlatSpecLike.scala:1751)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
	at scala.collection.immutable.List.foreach(List.scala:305)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
	at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
	at scala.collection.immutable.List.foreach(List.scala:305)
	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
	at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests(AnyFlatSpecLike.scala:1751)
	at org.scalatest.flatspec.AnyFlatSpecLike.runTests$(AnyFlatSpecLike.scala:1750)
	at org.scalatest.flatspec.AnyFlatSpec.runTests(AnyFlatSpec.scala:1685)
	at org.scalatest.Suite.run(Suite.scala:1112)
	at org.scalatest.Suite.run$(Suite.scala:1094)
	at org.scalatest.flatspec.AnyFlatSpec.org$scalatest$flatspec$AnyFlatSpecLike$$super$run(AnyFlatSpec.scala:1685)
	at org.scalatest.flatspec.AnyFlatSpecLike.$anonfun$run$1(AnyFlatSpecLike.scala:1796)
	at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
	at org.scalatest.flatspec.AnyFlatSpecLike.run(AnyFlatSpecLike.scala:1796)
	at org.scalatest.flatspec.AnyFlatSpecLike.run$(AnyFlatSpecLike.scala:1794)
	at org.scalatest.flatspec.AnyFlatSpec.run(AnyFlatSpec.scala:1685)
	at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
	at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1320)
	at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1314)
	at scala.collection.immutable.List.foreach(List.scala:305)
	at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1314)
	at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:993)
	at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:971)
	at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1480)
	at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:971)
	at org.scalatest.tools.Runner$.run(Runner.scala:798)
	at org.scalatest.tools.Runner.run(Runner.scala)
	at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:133)
	at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:27)
Caused by: java.io.NotSerializableException: com.example.CurrencyGoldenTest$Currency$
	at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185)
	at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553)
	at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510)
	at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433)
	at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179)
	at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349)
	at cats.kernel.laws.SerializableLaws$.$anonfun$serializable$1(SerializableLaws.scala:36)
	at org.scalacheck.Prop$.$anonfun$apply$1(Prop.scala:308)
	at org.scalacheck.PropFromFun.apply(Prop.scala:21)
	at org.scalacheck.Prop$.$anonfun$delay$1(Prop.scala:480)
	at org.scalacheck.Prop$.$anonfun$apply$1(Prop.scala:308)
	at org.scalacheck.PropFromFun.apply(Prop.scala:21)
	at org.scalacheck.Prop.$anonfun$viewSeed$1(Prop.scala:40)
	at org.scalacheck.Prop$.$anonfun$apply$1(Prop.scala:308)
	at org.scalacheck.PropFromFun.apply(Prop.scala:21)
	at org.scalacheck.Test$.workerFun$1(Test.scala:424)
	at org.scalacheck.Test$.$anonfun$check$1(Test.scala:453)
	at org.scalacheck.Test$.$anonfun$check$1$adapted(Test.scala:453)
	at org.scalacheck.Platform$.runWorkers(Platform.scala:40)
	at org.scalacheck.Test$.check(Test.scala:453)
	at org.scalatestplus.scalacheck.UnitCheckerAsserting$CheckerAssertingImpl.check(CheckerAsserting.scala:90)
	... 53 more

One maybe interesting to notice is that when I put a breakpoint on the GeneratorDrivenPropertyCheckFailedException, I can see the following message:
Please set the environment variable SCALACTIC_FILL_FILE_PATHNAMES to yes at compile time to enable this feature.

The problem is that test events may always contain some user-provided data or even just objects from the scope of the test. For that reason using ObjectOutputStream naively cannot work.
One solution could be to place explicit writeReplace/readResolve methods in the event classes to explicitly define the binary format for those. This is especially important for the TestFailed event which might contain user-provided exceptions or payload. For fields that are likely to fail with serialization errors, it should be probed whether the data actually can be written (by creating another ObjectOutputStream writing into a buffer) before actually putting data into the stream. If serialization fails a surrogate exception should be written with just the stack trace and message that is known to serialize.
Btw. I have a suspicion that futureValue might somehow close over the surrounding scope but couldn't find a simple reason.

After more than 5 years, any solution?
I'm using Jython, and when a forked ScalaTest sees a PyException (non-serializable), then I receive a lot of noise like:
	at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110)
	at java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:150)
	at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1883)
	at java.base/java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(ObjectOutputStream.java:1921)
	at java.base/java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1582)
	at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:352)
	at org.scalatest.tools.SocketReporter.apply(SocketReporter.scala:31)
	at org.scalatest.DispatchReporter$Propagator.$anonfun$run$10(DispatchReporter.scala:249)
	at org.scalatest.DispatchReporter$Propagator.$anonfun$run$10$adapted(DispatchReporter.scala:248)
	at scala.collection.immutable.List.foreach(List.scala:431)
	at org.scalatest.DispatchReporter$Propagator.run(DispatchReporter.scala:248)
	at java.base/java.lang.Thread.run(Thread.java:829)
Reporter completed abruptly with an exception after receiving event: TestStarting(Ordinal(0, 5248),CargaDatosEditorSpec,unit.modelo.datos.CargaDatosEditorSpec,Some(unit.modelo.datos.CargaDatosEditorSpec),Editor select retorna la lista vacía si no hay datos,retorna la lista vacía si no hay datos,Some(MotionToSuppress),Some(LineInFile(15,CargaDatosEditorSpec.scala,Some(Please set the environment variable SCALACTIC_FILL_FILE_PATHNAMES to yes at compile time to enable this feature.))),Some(unit.modelo.datos.CargaDatosEditorSpec),None,pool-1-thread-6-ScalaTest-running-CargaDatosEditorSpec,1640942396716).

Hi all, just fyi I just submitted the following PR for this:
https://github.com/scalatest/scalatest/pull/2086


JsonInputFormatter is not added to MvcOptions.InputFormatters when use AddMvcCore

Using 2.0.0-preview2-final mvc nuget version.
MvcOptions.InputFormatters is empty when use AddMvcCore and action method with [FromBody] attribute. Throws "'Microsoft.AspNetCore.Mvc.MvcOptions.InputFormatters' must not be empty. At least one 'Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter' is required to bind from the body."
Works with AddMvc().
Is it expected JsonInputFormatter is not added with AddMvcCore by default? Do we have some extension method to configure formatters same way AddMvc does?

You'd have to call AddJsonFormatters() to setup Json formatters. It's what AddMvc does - https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc/MvcServiceCollectionExtensions.cs#L52

What is the difference between AddMvc and AddMvcCore, and which one should I use when using ASP.NET MVC Core?
If AddMvcCore is the answer to the previous question, is it essential it should be added after AddMvcCore or order doesn't matter?

What is the difference between AddMvc and AddMvcCore, and which one should I use when using ASP.NET MVC Core?
checkout the answer on stackoverflow regarding the difference about this two - https://stackoverflow.com/a/40097363/5441673

which one you should use - it depends on what you need. In my case I use AddMvcCore as I don't want  some middlewares to be applied with AddMvc call (like Razor, I don't need serverside rendering in my app).

If AddMvcCore is the answer to the previous question, is it essential it should be added after AddMvcCore or order doesn't matter?

Either AddMvc or AddMvcCore should be used.  AddMvc under the hood calls AddMvcCore and then adds some additional services. See source code for AddMvc here - https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNetCore.Mvc/MvcServiceCollectionExtensions.cs

So if I'm only using web API (no UI), should I go for Core?

Why does it matter? What costs are you trying to avoid?

If it adds unnecessary services I thought perhaps use the minimal Core call.

How does that affect your application?

OK nevermind.
I found the source-code so it's pretty much self-explanatory.

AddMvcCore
AddMvc

Thanks for your help!

Just to make sure you understand what you're getting into. You really do have to add everything back (which is fine if you know what you are doing). As you write more code and more features don't work, look at AddMvc and start adding things back (validation, formatters, authentication)

Thanks for your dedication David!


Add Windows 2019 ServerCore Docker Images

Description
Add Windows 2019 ServerCore Docker Images
Issues Resolved
https://github.com/opensearch-project/opensearch-ci/issues/281
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Approving this assuming this has been tested locally and is working as expected.

Waiting for:

https://github.com/opensearch-project/opensearch-ci/pull/334

https://build.ci.opensearch.org/job/docker-build/3629/console


More detailed installation instructions

It doesn't seem to be quite as simple as gem install struct, at least not for people on a standard macOS 10.12 system.

gem install struct fails with a filesystem permissions error.
sudo gem install struct gets farther, but ends with:

...
Fetching: ruby_dep-1.5.0.gem (100%)
ERROR:  Error installing struct:
	ruby_dep requires Ruby version >= 2.2.5, ~> 2.2.
$  ruby --version
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
$  which ruby
/usr/bin/ruby

I'm guessing the next step is to use Homebrew to install Ruby so I get a newer version than what's in the OS? (And of course a dependency of that is having Homebrew installed, another step for a vanilla system...)
I have to say I'm sort of reluctant to install another Ruby; I worry about versionitis with existing Ruby scripts I've got, and also that the new install won't have whatever gems I've already got in my system Ruby, so it could break stuff.

Hi @snej, currently struct requires at least ruby 2.2.5. Usually when installing gems on macOS, it's best to have a user-local version of ruby, rather than using the system one.
The reason why this is the case, is that the system version of ruby isn't really intended for general day to day use, it's bundled with the system because various system components require it, or at least this is how I understand it from reviewing documentation from similar gems such as Calabash.
When installing ruby gems, I recommend making use of (Ruby Version Manager)[https://rvm.io/], so that you can maintain a local version of ruby that's easy to update. Ruby Version Manager also allows you to switch between a local ruby installation, and the one provided by macOS.
I do understand however that having to use a non-system provided Ruby installation can be inconvenient, so I'll log an issue to investigate how low we can drop the Ruby requirement. This may allow for a successful installation even when using the system Ruby.
Could I ask what version of macOS you're using?

The issue of struct's minimum ruby version is now being tracked in #16, please follow #16 to stay updated on this.
I've updated the readme to clarify the situation with local ruby versions. Thanks for filing this issue!


Catch errors transmitting responses from the Python worker to the Java worker

Hello,
I have a couple of suggestions regarding the transmission of responses from the Python worker to the Java worker.
First for the Task.update(...) method at https://github.com/apposed/appose-python/blob/78c0f47ffa3265d7a4e8fbb49b6ef6cc7c540251/src/appose/python_worker.py#L51
The messages are enforced to be Strings on the Java side with an unchecked casting to String.
The logic of both the Python and Java workers could be made more complex to allow other types of messages but I think that for now, it is reasonable to keep it for Strings only. In that case it would make sense to slightly modify the method as the follwoing to avoid errors that in addition leave the Java worker waiting forever:
def update(
    self,
     message: Optional[str] = None,
     current: Optional[int] = None,
     maximum: Optional[int] = None,
) -> None:
    args = {}
    if message is not None and isinstance(message, str):
        args["message"] = message
    elif message is not None:
        raise TypeError(f"Object of type {message.__class__.__name__} cannot be sent as an UPDATE, only str is allowed")
    if current is not None:
        args["current"] = current
    if maximum is not None:
        args["maximum"] = maximum
    self._respond(ResponseType.UPDATE, args)

The TypeError raised makes the appose python process to fail and triggering a FAILURE event that is listened by the Java worker.
The other suggestion is directly on the _respond(...) method at https://github.com/apposed/appose-python/blob/78c0f47ffa3265d7a4e8fbb49b6ef6cc7c540251/src/appose/python_worker.py#L134
When a response cannot be encoded ( for example when one of the outputs cannot be encoded because it is of unsopported types like np.array) an exception is raised, but it does not produce a Task.failure(), which leaves the Java worker waiting forever to the completion of the Python process.
An easy way to solve it would be catching the exception raised if the response cannot be encoded:
def _respond(self, response_type: ResponseType, args: Optional[Args]) -> None:
    response = {"task": self.uuid, "responseType": response_type.value}
    if args is not None:
        response.update(args)
    # NB: Flush is necessary to ensure service receives the data!
    try:
        print(encode(response), flush=True)
    except Exception:
        if response_type is ResponseType.UPDATE:
            self.update(traceback.format_exc())
        else:
            self.fail(traceback.format_exc())

In the code above (it is what i am using locally) if the response cannot be encoded and the ResponseType is not an UPDATE a fail event is triggered with the error message that caused it.
If the response was an UPDATE it redoes the update but now the message is the error message. Note that increasing the robustness in the update(...) method would make  if response_type is ResponseType.UPDATE: unnecessary. Furthermore increasing the  robustness in the methods that produce responses would make the try:...except:... unnecessary too, but maybe it is not worth the effort.
What do you think?
REgards,
Carlos

Addressed by the above linked commits.


Allow the user to group different zones together, so that when the user clicks on an occluded window that belongs in a "zone group", it also brings up all the other windows that belong in the same group to the front of the screen.

Description of the new feature / enhancement

Pretend that there is a giant window that partially covers two other windows behind it.
These two windows can still be clicked on because they're only partially covered.
These two windows are located in FancyZone zones that belong in a "zone group".
Normally, when I click on one of the windows that belong to these zones, only that window goes to the front of the screen.
What I want is to group different FancyZones zones together and make it so that when I click on any one of the windows that belong to that grouping, it would not only bring up that one window to the front of the screen, but all of the other windows that belong to the same zone group.

Scenario when this would be used?
It would reduce the amount of clicking the user has to do and make the user experience feel more natural. I also perhaps use FancyZones in an unorthodox manner, in that I overlap various zones on top of eachother, exposing only a sliver of the zones so that I can actually reshape the window by moving them into the zone slivers, which is why I requested this feature, because there are a lot of overlapping windows.
I'll even show a video of what I mean.
Supporting information
https://www.youtube.com/watch?v=mAJcfBOoTXc

/dup https://github.com/microsoft/PowerToys/issues/16018


"listening" callback stopped working on v8.7.0

Hey there,
This used to work on Node v6.11.4. Now the "listening" callback is not being triggered anymore.
Example 1: using express
const express = require('express');
const server = new express();

server.on("listening", () => console.log("Listening callback."));
server.listen(8989);

console.log("Listen called.");

Outputs:
Listen called.

Example 2: using http module
const http = require('http');
const server = http.createServer();

server.on("listening", () => console.log("Listening callback."));
server.listen(8989);

console.log("Listen called.");

Outputs:
Listen called.
Listening callback.

Platform info:
Node v8.7.0
OSX 10.12.6
Any ideas?

My bad, the http server is created internally on express's listen method. To be able to catch the "listening" event, it's necessary to register the handler in the http server instead of the express instance:
let httpServer = server.listen(8989);
httpServer.on("listening", () => console.log("Listening callback."));

Sorry to bother! Have a nice day :)


Cannot Associate identity with admin/adminpw

I cannot create an associate identity with admin/adminpw like the instruction, any advice?

check out the new doc on crypto errors: https://github.com/hyperledger-labs/fabric-operations-console/blob/main/FAQ.md#error-help


api: dns has no requests

api path: /organizations/{globalid}/dns
has no requests on the documentations
see screen shot

still valid on 7f2eafc

API clients will need to be regenerated for this

Removed the verifcation label since, as you mentioned, the clients sill need to be regenerated.


C-bindings interface for HydroDyn

This PR is not ready for merging
Depends on

[x] #688
[x] #707
[x] #756

Feature or improvement description
This PR introduces a new library version of the HydroDyn module with c-bindings for calling from other codes with a c-style interface.  Included with this PR:

HydroDyn_C.f90 -- Fortran library interface with c-bindings
hydrodyn_library.py -- Python library corresponding to Fortran code
example code for running the 5MW_OC4Semi_WSt_WavesWN test case using the timeseries input for the hd_5MW_OC4Semi_WSt_WavesWN Fortran driver version (Python results closely agree with the Fortran driver results, which agree with the force/moment results for the corresponding full OpenFAST regression test).  This driver code is not a true driver code; it contains hard coded input files and is not configurable from the command line or an input file (funding limitations during development).
Regression test integrated into CTest environment
Library incorporated into the build systems (VS project, and CMake)
Library supports correction steps (handled internally in the library)

Missing things:

Documentation of this feature is missing due to funding and time limitations.
Passing of linearization matrices is not supported (also funding limited)

Related issue, if one exists
This is based on #756 (and the PRs that is based on).  This will need updating later when the Waves submodule is split from HydroDyn.  I suggest renaming this interface then and including the new Waves module into the Fortran side of the interface (minimizing data transfer across the language interface).
Impacted areas of the software
There are a few minor updates to the NWTC_Library for additional interfaces of input file string parsing, and a few minor enhancements.
This code addition does not affect any other existing code functionality.
Additional supporting information
This project was funded through the ARPA-E funded ATLANTIS project with Rutgers University in 2020 - 2021.
Test results, if applicable

Figure 1: Comparison of full OpenFAST simulation, HydroDyn Fortran driver, and HydroDyn called from Python through the c-bindings library.  The latter two cases use the platform motion output from the full OpenFAST simulation as their inputs.

Figure 2: Zoomed in region showing slight differences between the Python interface calls and the other two simulations.
There are slight differences in the resulting forces from the Python called library and the native Fortran simulations with OpenFAST or HydroDyn driver.  The HydroFxi channel was the most prominent of all channels checked (43 channels total including: radiation, WAMIT, Morrison, and body motions passed across into code).  There may be room for improvement here.  It should also be noted that the Fortran Driver code uses finite differences on the position data to calculate the velocities and accelerations, whereas the Python pseudo-driver passes the full set of velocities and accelerations across the interface from the input file.
Table 1: Comparison of the 5MW_OC4Semi_WSt_WavesWN regression test resultant forces and moments of the Fortran driver and Python interface compared to the fully coupled OpenFAST simulation (calculated as max difference in time-series / full range of channel).

Checklist

[x] Check on bug with timestep sent to UpdateStates (should be time_now and not time_next).  This may be causing the minor discrepancies I'm seeing.

@andrew-platt do you know why the HydroDyn python test is failing in debug?

There was a bug with the UpdateStates call.  This has now been fixed, so the results from the module regression test hd_py_5MW_OC4Semi_WSt_WavesWN match the py_5MW_OC4Semi_WSt_WavesWN as expected.

Hey @andrew-platt just a heads up that hd_py_5MW_OC4Semi_WSt_WavesWN  is still failing


Makefile: add "flash" target

A minor bug was introduced during cleanup. QUAD bit isn't set correctly during first call. Second call fixes that. I'm looking into the issue.

I resolved the mentioned issue with double write in openocd. We need to wait for Write-In-Progress bit in status register to reset after a call to WRR (write configuration register) command. https://www.cypress.com/file/448601/download

The patch for OpenOCD was submitted for a review http://openocd.zylin.com/#/c/6208/1


Update scripts to accommodate operate-first, move common code

This PR contains following changes:

Updated hpo-demo script to use the app already running on operate-first
Moved common code in both autotune and HPO demo in a common-helper fie

Signed-off-by: Saad Khan<EMAIL_ADDRESS>

@khansaad Pls GPG sign all your commits. Looks like some commits are signed and some are not


🚀 Feature: Add spec.tier as an optional Component entity descriptor

🔖 Feature description
Similar to spec.lifecycle, a Component entity could specify its "tier" in an organization's software ecosystem. Tier would indicate the criticality of the service, e.g. tier: 0 would be the most critical, tier: 1 less critical, ... tier: n least critical.
🎤 Context
Our use case is to be able to quickly see our Components / Services that are most critical to our business. Criticality could be used to add additional production readiness criteria, operational requirements, etc.
✌ Possible Implementation
I imagine this would be added here as an optional string.
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
Yes I am willing to submit a PR!

👋 Is this something you've implemented already at your company and are looking to contribute back? If not, I'd recommend you start there with this guide as this can be achieved without any upstream changes. Catalog model changes tend to be arduous to get in, as they will affect everybody :)

Curious as to why this has to be on spec and not simply using labels for this? Labels are already built into the model and a great place for this information, I've seen this exact setup with a few Backstage Adopters.

@awanlin part of my motivation for establishing this as part of the specification is interoperability w/ Datadog's service catalog. We have Datadog configured to import our Backstage catalog. It's nice that there's interoperability w/ specification fields like lifecycle but we now have a use case to add tier to both Backstage and Datadog.

Thanks for the follow up @SocalNick, still feel like something you can do without it being part of the model though as previously mentioned.

Wait, why can't they pull in labels? That would make a lot more sense to me now that I'm thinking about it as it would open up more options beyond just this.


Ticking Block Entity Crash on Marked Injector Placement

Upon placing any marked injector on a dedicated server, the server will instantly crash with the crash report attached below.
crash-2024-03-02_23.37.48-server.txt

Further testing has revealed that the crashing occurs on the 1.12.2-<IP_ADDRESS> in particular. Older versions do not cause the crash.

Please check if 1.12.2-<IP_ADDRESS> fixes this issue

Version 1.12.2-<IP_ADDRESS> appears to have fixed the issue and the mod is now working as expected.


Do not report missing members for Never

Member accesses on Never should be allowed (cf. https://github.com/dart-lang/language/issues/711#issuecomment-563965257) and issues arising because the resulting code is likely to be a bug should be handled by detecting and flagging unreachable code with a warning.
So a receiver of type Never is treated as if it had all member signatures, just like a receiver of type dynamic. For example, it is also assumed to have a setter named s= whose parameter type admits the argument 1.
However, the analyzer reports in this log concerning static_errors_A13_t01 that specific members do not exist for a receiver of type Never, and it is implied that there is a setter s=, but that it has argument type Never (cf. the error about line 24):
ERROR|STATIC_TYPE_WARNING|UNDEFINED_SETTER|/b/s/w/ir/cache/builder/sdk/tests/co19/src/LanguageFeatures/nnbd/static_errors_A13_t01.dart|30|9|1|The setter 's' isn't defined for the class 'Never'.
ERROR|STATIC_TYPE_WARNING|UNDEFINED_SETTER|/b/s/w/ir/cache/builder/sdk/tests/co19/src/LanguageFeatures/nnbd/static_errors_A13_t01.dart|27|8|1|The setter 's' isn't defined for the class 'Never'.
ERROR|STATIC_TYPE_WARNING|INVALID_ASSIGNMENT|/b/s/w/ir/cache/builder/sdk/tests/co19/src/LanguageFeatures/nnbd/static_errors_A13_t01.dart|24|11|1|A value of type 'int' can't be assigned to a variable of type 'Never'.
ERROR|STATIC_TYPE_WARNING|UNDEFINED_SETTER|/b/s/w/ir/cache/builder/sdk/tests/co19/src/LanguageFeatures/nnbd/static_errors_A13_t01.dart|24|7|1|The setter 's' isn't defined for the class 'Never'.

static_errors_A13_t02 shows the same issue.

Note that #40126 reports the same issue, and includes detailed output from the analyzer.

@scheglov

static_errors_A13_t02 uses non-function typedef, so is not supported.

https://dart-review.googlesource.com/c/sdk/+/131706

https://dart-review.googlesource.com/c/sdk/+/131721 will downgrade it from a warning to a hint.


Saving screenshot on Linux environment fails

Scenario:
Right now the screenshot path is made out of "screenshotPathFromSpecdrillConfig\fileName"
For Linux environment, the path contains forward slash /.
So if you provide a path with forward slash in specdrillConfig.json, SaveScreenshot method will fail.
Actual Result:
Cannot save screenshot if screenshot path contains forward slash /
Expected Result:
Should be possible to save screenshot if path contains forward slash /

This change is not necessary anymore. The problem wasn't with the forward slash, but rather with the permissions on the target folder.
As alternative, the screenshot can be saved in a location over the network.


Terminal displays as "DesktopWindowXaml..." when it's starting

Windows Terminal version (or Windows build number)
Microsoft Windows [Version 10.0.19043.1288]
Other Software
No response
Steps to reproduce
Open wt
Expected Behavior
window displays as "Terminal" or something with the terminal icon.
Actual Behavior
"DesktopWindowXaml..." with a broken icon.

Once it loads it's back to normal.

Which version of the Terminal is this? Do you have WSL installed?
My theory is that we're hitting the very slow path of the old WSL distro lookup, which is hanging during the creation of the window, so we don't actually update the window title to something sensible.

I suppose this is something we could fix regardless of if it's fixed already. Like, we could always we the title and icon of the window, even before we load the settings. Should be easy enough to repro, just slap a Sleep(10000) in the WslDistroGenerator

I've seen this on every version of Terminal I've used, and yes WSL 2 with wsl as default shell.

I also noticed this when I was working on all of the saved layout / quit features. It can be fairly reliably reproduced by having window layout saying enabled and quitting/reloading half a dozen or so windows, resulting in a process list like this (dev/main not updated since the 1.12 release cut)

The two DesktopWindowXamlSource is created by C:\Windows\System32\Windows.UI.dll. So I am going to guess they are what make XAML Islands work. My guess on why one of them appears (I don't know which) is that the window isn't configured to be hidden, but Windows makes it disappear when it has a parent. I have seen it appear when closing apps using XAML Islands, probably because it loses it parent window before it is closed.
Making it not appear may need an OS level fix, if it is even possible to fix.


ReadonlySet and ReadonlyMap are lacking Symbol.toStringTag

🔎 Search Terms
ReadonlySet, ReadonlyMap, Symbol.toStringTag
🕗 Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about ReadonlySet, ReadonlyMap, Symbol.toStringTag
⏯ Playground Link
https://www.typescriptlang.org/play/?target=99#code/C4TwDgpgBAsgrsAhsAlgOwOY0WGFgAWA9gCYByiAttALxQCiAHgMYA2cJEAPANYQhEAZrBxc4aHmiIB3NABoo4yTLQA+BXwHCAShEQkiaViGxgxEqbIVLLa1QChQkWAmToMAZXx5CpCtSg6JjYObk0hKC9gc2VZdShwnT0DIxAomNtVB3sAehyoAAFgAGcAWghGSGZgcoAnWqJa+1Z8KEQALhckVExTH2JyKlpIkEoAIyJWADpgIg9gWvcAFUQMXPyisoqqmoh6xubWsc74bvco-r8hwJHxyZm5heXV+yA
💻 Code
type MutatingMapMethodName = Exclude<keyof Map<unknown, unknown>, keyof ReadonlyMap<unknown, unknown>>
type MutatingSetMethodName = Exclude<keyof Set<unknown>, keyof ReadonlySet<unknown>>

// @ts-expect-error
let a: MutatingMapMethodName = Symbol.toStringTag
// @ts-expect-error
let b: MutatingSetMethodName = Symbol.toStringTag

🙁 Actual behavior
Both @ts-expect-errors give Unused '@ts-expect-error' directive.(2578)
🙂 Expected behavior
Both @ts-expect-errors are used
Additional information about the issue
No response

This is a well known symbol of es2015.
https://262.ecma-international.org/6.0/#sec-well-known-symbols

It appears to be safer to use the exact well-known tag rather than string, as done in a recent PR https://github.com/microsoft/TypeScript/pull/59417.

These interfaces do not describe actual ECMAScript constructors. Adding Symbol.toStringTag to them would be a breaking change for anyone implementing Map- or Set-like objects/classes that are currently assignment-compatible with ReadonlyMap/ReadonlySet, such as the custom maps uses in DeoptExplorer

@rbuckton I don't have a strong opinion on this one; I just found it and fixed it. That said, here's a reason we might want to add Symbol.toStringTag.
ReadonlyMap is also used to provide interfaces for the read-only browser Map-like objects.
For example,
interface EventCounts extends ReadonlyMap<string, number> {}

and at runtime,
>> performance.eventCounts
-----
EventCounts { size: 1 }
    constructor: function EventCounts()
        Symbol(Symbol.toStringTag): "EventCounts"
        [...]
     [...]

It seems ReadonlyMap does describe Map and the expectation that it is readonly.

Related: https://github.com/whatwg/webidl/pull/357


Enable Virtual network service endpoints for Azure

What would you like to be added:
Virtual network service endpoints for Azure support.
Virtual network service endpoints for Azure requires a specific flag to be set on the subnet (not on VNET, on Subnet) of the nodes. In our case we want the cluster nodes to be able to use this feature and the Subnet needs that flag. But the subnet is configured by Gardener, and our changes are being reverted during reconciles. Here is a log snippet from reconcile reverting this setting on the subnet.
Logs of Pod 'sc.infra.tf-job-7wppz' belonging to Terraform job 'sc.infra.tf-job':
{...cropped...}
azurerm_route_table.workers: Refreshing state... (ID: /subscriptions/{...cropped...}...Network/routeTables/worker_route_table)
azurerm_virtual_network.vnet: Refreshing state... (ID: /subscriptions/{...cropped...}-...Network/virtualNetworks/shoot--iot--sc)
{...cropped...}
azurerm_subnet.workers: Modifying... (ID: /subscriptions/{...cropped...}...--iot--sc/subnets/shoot--iot--sc-nodes)
  service_endpoints.#: "1" => "0"
  service_endpoints.0: "Microsoft.Sql" => ""
azurerm_subnet.workers: Still modifying... (ID: /subscriptions/{...cropped...}-...--iot--sc/subnets/shoot--iot--sc-nodes, 10s elapsed)
azurerm_subnet.workers: Still modifying... (ID: /subscriptions/{...cropped...}-...--iot--sc/subnets/shoot--iot--sc-nodes, 20s elapsed)
azurerm_subnet.workers: Still modifying... (ID: /subscriptions/{...cropped...}-...--iot--sc/subnets/shoot--iot--sc-nodes, 30s elapsed)
azurerm_subnet.workers: Modifications complete after 30s (ID: /subscriptions/{...cropped...}-...--iot--sc/subnets/shoot--iot--sc-nodes)

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

{...cropped...}

State path: /tf-state-out/terraform.tfstate

Outputs:

availabilitySetID = /subscriptions/{...cropped...}/resourceGroups/shoot--iot--sc/providers/Microsoft.Compute/availabilitySets/shoot--iot--sc-avset-workers
availabilitySetName = shoot--iot--sc-avset-workers
resourceGroupName = shoot--iot--sc
routeTableName = worker_route_table
securityGroupName = shoot--iot--sc-workers
subnetName = shoot--iot--sc-nodes
vnetName = shoot--iot--sc

We are still on Gardener 0.18, but based on the fact that the Subnet is created and managed by gardener this is not likely possible on recent release. (Needs verification)
Why is this needed:
We have users blocked on moving in because they've been using Azure PostgreSQL. When not using VNET endpoint for PostgreSQL:

there is a performance impact, on DB operations
one has to whitelist all egress IPs of the cluster on the postgres service and its not easy to set kubernetes cluster's egress IP on Azure when using multiple non-static Service[type=LoadBalancers].

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoints-overview#key-benefits

Seems like my assumption about the GEP-1 not helping with this was right, even with the gardener-extensions we still cant prevent the subnet creation handled by terraformer:
https://github.com/gardener/gardener-extensions/blob/c4c502de484d9ef6333d4f15c807d96740086550/controllers/provider-azure/charts/internal/azure-infra/templates/main.tf#L28
But now since the implementation is now moved to gardener-extensions i'm closing this one and creating an issue there.


Support outputting ONVIF stream

Describe the feature
Description
I can see that this project should be able to read a HLS stream and translate it to an RTSP stream. In my case I am wanting to do this for Netatmo cameras as mentioned by another user in the following issue.
https://github.com/aler9/rtsp-simple-server/issues/1368
However my query is different although obviously I would need Netatmo sourced streams to work. My query is that whilst various security systems or NVR systems only support RTSP streams they may also prefer ONVIF streams which I believe are a wrapper around an RTSP stream.
Therefore my request is for this project to be enhanced to also provide ONVIF streams rather than basic RTSP streams.
The following other project maybe useful as guidance on how this could be achieved. Indeed in theory both projects could probably used together as a pipeline but I would expect a single combined solution should be significantly more efficient.
https://github.com/BreeeZe/rpos

Hello, in order for the server to become an ONVIF-compliant device, compatible with profile S and T, i counted (at least) the following missing features:

some missing RTSP server features:

HTTP / HTTPS transport protocol
MJPEG mandatory streams (which i don't want to implement because i don't want to include re-encoding directly into the server, for the moment)
back channels, that are being tracked here https://github.com/aler9/gortsplib/issues/101

an HTTP server with standardized APIs that allows to obtain the server features, codecs and JPEG snapshots
A WS Discovery listener that allows to discover the server

And this involves only providing ONVIF features, not proxying ONVIF features from existing ONVIF devices.

@jelockwood suggested running both RPOS and rtsp-simple-server together.
I am the lead developer of RPOS and I use RPOS with rtsp-simple-server all the time to add an ONVIF wrapper around the RTSP steam.
One of the jobs of ONVIF and RPOS is to supply the RTSP URL to ONVIF systems.
So you configure RPOS to give out the URL of the rtsp-simple-server and run rtsp-simple-server as a Proxy.
Works really well.

@aler9. There are many parts of the ONVIF spec that are Optional.
You can send ONVIF responses that say HTTP/HTTPS mode is not supported.
You need to support JPEG stills (in Profile S) but don't need MJPEG video. RPOS can make JPEGs from the H264 stream.
Audio is Optional
RPOS already does WS-Discovery.

@RogerHardiman Thanks for the info.
Are you able to provide an example rtsp-simple-server config file pointing to RPOS? That is with settings for the options you mentioned?
Also, having rtsp-simple-server built-in if you get the time to do this with auto-generated ONVIF settings would clearly simplify things.

In simple-rtsp-server you set up Proxying in the YML file, as per the simple-rtsp-server page.
So something like
paths:
proxystream:
source=rtsp://the_actual_camera_rtsp_address
in RPOS, copy the proxy sample config.
Then make these changes
RTSPAddress: change to "<IP_ADDRESS>"
RTSPPort: set as 8554
RTSPName: set to "proxystream"
If you enable usernames on simple-rtsp-server, then
RTSPAddress: change to<EMAIL_ADDRESS>The

In simple-rtsp-server you set up Proxying in the YML file, as per the simple-rtsp-server page. So something like
  paths:
      proxied:
          source: rtsp://the_actual_camera_rtsp_address

Test this by connecting to "rtsp://localhost:8554/proxied"
In RPOS, copy the proxy sample config. Then make these changes RTSPAddress: change to "<IP_ADDRESS>" RTSPPort: set as 8554 RTSPName: set to "proxied" RTSPServer: to 0
If you enable usernames on simple-rtsp-server, then RTSPAddress: change to<EMAIL_ADDRESS>
Question:
Follow your suggestion by setting the RTSPAddress:"<IP_ADDRESS>"
ODM can make preview snapshot via ffmpeg. But if click on 'Live video', ODM try to read the rtsp stream at '<IP_ADDRESS>:8554/procied' and lead to failure on showing up the rtsp stream in ODM.
In order to make the 'Live video' working, the true path of the rtsp stream has to be edited inside the 'rposConfig.json' file. By doing that, if network IP change, the IP address edited into the 'rposConfig.json' remain and this will lead the failure of detecting RPOS via ODM.

Up for this feature+1


Required field 'resultsFilename' is not listed in help

I found that 'resultsFilename' is required parameter in paramfile:
if (!_ciParams.ContainsKey("resultsFilename"))  {         WriteToConsole(Resources.LauncherNoResFilenameFound);         return; } string resultsFilename = _ciParams["resultsFilename"];
This error will be thrown if it is not specified:
 <data name="LauncherNoResFilenameFound" xml:space="preserve">     <value>No results filename provided, please add one</value>   </data>

Hi,
I will check and fix this issue in our 5.0 release.
Thanks for opening this ticket.