Avoid distribution of conditional types over union types

Search Terms

Suggestion
I would like to disable the distribution of union types over conditional types in certain cases. If this is already possible (not sure about that) it should be documented in a better way.
Use Cases
Suppose you would like to infer type parameters like so:
type Route = {
    Path: string;
    Params: { [key: string]: string }
}

type RouteWithParams<T extends string> = {
    Path: string;
    Params: { [key in T]: string }
}

type RouteWithParamsMaker<T extends Route> = (keyof T['Params']) extends infer U
    ? U extends string
        ? RouteWithParams<U>
        : never
    : never;

function toRouteWithParams<T extends Route>(r: T): RouteWithParamsMaker<typeof r> {
    return (r as unknown) as RouteWithParamsMaker<typeof r>;
}

const route = {
    Path: 'somewhere',
    Params: { id: 0, name: 1 },
}

const routeWithParams = toRoute(route);

The resulting variable is currently inferred to have the type
RouteWithParams<"id"> | RouteWithParams<"name">

Instead, I would like to receive the following type
RouteWithParams<"id" | "name">

I have no idea whether the current behaviour is intentional (and we would need a new annotation for such cases) or a bug.
Checklist
My suggestion meets these guidelines (not sure about the first and the last one):

[ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x ] This wouldn't change the runtime behavior of existing JavaScript code
[x ] This could be implemented without emitting different JS based on the types of the expressions
[x ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[ ] This feature would agree with the rest of TypeScript's Design Goals.

If you don't have a type to test against, [T] extends [T] will have the same effect.
This may be useful for others.
type NoDistribute<T> = [T] extends [T] ? T : never;

However, if T was used in a previous conditional type it may have already been distributed. If you have a deeply nested type you can use the single-element-tuple trick at each level around types you don't want distributed.

How to handle any type with single tuple type solution?
type NotUndefinedAndNotVoid<T> = [T] extends [undefined]
  ? never
  : [T] extends [void]
  ? never
  : T | Promise<T>

type A = NotUndefinedAndNotVoid<any> // A is never since "[any] extends [undefined]" evaluates to true

type NotUndefinedAndNotVoidDistributed<T> = T extends undefined
  ? never
  : T extends void
  ? never
  : T | Promise<T>

type B = NotUndefinedAndNotVoidDistributed<any> // B is any because "any extends undefined" evaluates to false


Sessions are slippery

I think it's because I slept on requestLock.  Maybe I can use https://www.npmjs.com/package/advisory-lock ?

Should be fixed, indeed ended up using advisory-lock in a few places


chore(main): release 0.6.0

:robot: I have created a release beep boop
0.6.0 (2024-11-07)
Features

Add cherry pick workflow (#29) (3cc12f9)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.6.0
:sunflower:


Configuration of the NIFI,DB & Visualization for the new Data Sources - Line chart

[ ] Development
[ ] Integration Test
[ ] https://github.com/Sunbird-cQube/community/issues/62

This issue is not covered in v5.0 and needs to be analysed.

Configuration changes are taken up in the current version


RawTests.testNestedJSON() added

This PR strengthens the tests around the JSON.rawData() function.
The https://github.com/IBM-Swift/SwiftyJSON fork has problems serializing nested json, it returns nil.
The SwiftyJSON/SwiftyJSON has no problems serializing nested json. It works as it should.
I have added a unittest that hopefully can cause the problem to be fixed in the IBM-Swift/SwiftyJSON fork.
Proof of concept
This was my original proof of concept code for recreating the problem.
func asJson() -> JSON {
	let user: JSON = [
		"name": "John Doe"
	]
	return [
		"alarmLevel": 123,
		"user": user
	]
}

func main() {
	let json = asJson()
	let s = json.rawString() ?? "ERROR"
	print(s)
}

Output when using SwiftyJSON/SwiftyJSON
{
  "alarmLevel" : 123,
  "user" : {
    "name" : "John Doe"
  }
}

Output when using IBM-Swift/SwiftyJSON
ERROR

LGTM Thanks so much!  @neoneye


Compile Issues

This application does not compile with the latest dev build which is most commonly used by most users and all custom firmware.

Hi @RogueMaster today we are working on upgrading to the latest API. Thanks

Ok, great! I made some changes on the one in my firmware to have it compile on dev.... I recommend using fbt format to clean up the code formatting...

(fbt) C:\Users\Rogue\Documents\GitHub\flipperzero-firmware-wPlugins>fbt format
python scripts/lint.py format applications lib\print lib\toolbox lib\drivers lib\flipper_format lib\one_wire lib\ibutton lib\infrared lib\subghz lib\nfc lib\digital_signal lib\pulse_reader lib\signal_reader lib\app-scened-template lib\u8g2 lib\lfrfid lib\music_worker lib\update_util lib\bit_lib lib\cfw lib\datetime targets furi
(fbt) C:\Users\Rogue\Documents\GitHub\flipperzero-firmware-wPlugins>fbt format_img
python scripts/imglint.py format applications assets
2024-08-19 19:44:45,105 [INFO] Found 4550 images
Image applications\external\rs485modbus\modbus.png issues: not 1-bit B&W, but RGBA; has metadata
2024-08-19 19:44:46,549 [WARNING] Applied fixes to some images
(fbt) C:\Users\Rogue\Documents\GitHub\flipperzero-firmware-wPlugins>fbt fap_modbus
CC      applications\external\rs485modbus\modbus.c
applications\external\rs485modbus\modbus.c: In function 'uart_worker':
applications\external\rs485modbus\modbus.c:626:38: error: passing argument 1 of 'furi_stream_buffer_free' from incompatible pointer type [-Werror=incompatible-pointer-types]
626 |     furi_stream_buffer_free(app->uart->rxBuff);
|                             ~^~
|                                      |
|                                      uint8_t * {aka unsigned char *}
In file included from furi/furi.h:23,
from applications\external\rs485modbus\modbus.c:2:
furi/core/stream_buffer.h:42:48: note: expected 'FuriStreamBuffer *' but argument is of type 'uint8_t *' {aka 'unsigned char '}
42 | void furi_stream_buffer_free(FuriStreamBuffer stream_buffer);
|                              ^
applications\external\rs485modbus\modbus.c:627:32: error: passing argument 1 of 'furi_stream_buffer_free' from incompatible pointer type [-Werror=incompatible-pointer-types]
627 |     furi_stream_buffer_free(app->msgBuf);
|                             ~^~
|                                |
|                                uint8_t * {aka unsigned char *}
furi/core/stream_buffer.h:42:48: note: expected 'FuriStreamBuffer *' but argument is of type 'uint8_t *' {aka 'unsigned char '}
42 | void furi_stream_buffer_free(FuriStreamBuffer stream_buffer);
|                              ^
applications\external\rs485modbus\modbus.c: In function 'CFG_Scene_OnExit':
applications\external\rs485modbus\modbus.c:770:29: error: the comparison will always evaluate as 'true' for the address of 'logFilePath' will never be NULL [-Werror=address]
770 |         if(app->logFilePath != NULL) {
|                             ^~
applications\external\rs485modbus\modbus.c:118:10: note: 'logFilePath' declared here
118 |     char logFilePath[100];
|          ^
cc1.exe: all warnings being treated as errors
SDKCHK  targets\f7\api_symbols.csv
scons: *** [build\f7-firmware-C.extapps\modbus\modbus.o] Error 1
API version 72.1 is up to date
********** FBT ERRORS **********
build\f7-firmware-C.extapps\modbus\modbus.o: Error 1
I fix these errors in this version here: https://github.com/RogueMaster/flipperzero-firmware-wPlugins/blob/420/applications/external/rs485modbus/modbus.c
Also assets_icons.h file is called but doesn't get used and also isn't added to application.fam to have assets, better to remove inclusion since its not used.

@RogueMaster working in release v<IP_ADDRESS>


Some icons are messed after update and using 'code' CLI

VSCode Version: 1.12.2
OS Version: 10.12.5 (16F73)

Steps to Reproduce:

Open vscode from CLI.
Notice some icons are messed up
Issue is present only when using 'code' CLI from terminal.

https://code.visualstudio.com/updates/v1_12#_macos-blurry-icons


GPU Memory Requirement

Thank you for your awesome work! I would like to know how much GPU memory at least can run on this project, can It run on a 2*3090 GPU?

Thank you for your awesome work! I would like to know how much GPU memory at least can run on this project, can It run on a 2*3090 GPU?

It works for me~

Hi, thanks for yor interests. I think the model can fit in two 3090 GPU (2 * 24GB VRAM) with FP16.


discussion: introduce flyway for db initialization

It is very likely that you want to do more than just letting camunda create schemas when the server starts. So you need somekind of db-migration. I am working with flyway but had the problem that camundas mybatis lifecycle interferred with my flyway scripts (basically when defining what a baseline is and who touches the db first).
So I came up with camunda-bpm-flyway (currently just a PoC) https://github.com/jangalinski/camunda-bpm-flyway
This small extension reads the db create scripts camunda provides and uses them as flyway migration scripts, so I can easily provide my own custom migrations as well and flyway will use the correct version/combination for all of them.
I found out that spring-boot supports flyway out of the box, so I am raising the question: what do you think of switching the whole "create/drop/update" aspect in camunda-spring-boot to the flyway-way? It is actually very little overhead, since we already have a dataSource centric custom configuration, so just like we do with jobExecutor activation, we could work-around the standard camunda way (by settingschema-updates to false and later migrate via flyway)
Please think about it and give me your feedback. And if you like the idea, we have to decide how and where to implement it ... a ...-flyway-starter seems like the best guess, but then again, some aspects interfere deep with the custom config stuff, so maybe it could be a good idea to decide to make this a core feature.
Excited about your opinions
Jan

Hi Jan.
I have used flyway many times even in conjunction with camunda. I like flyway ;)
The main issue is managing the script/schema versions. Someone needs to provide the scripts in the flyway way. One way could be to copy the scripts and introduce flyway properties to give control at startup.
Haven't checked but using liquibase (which is supported by spring boot too) could be easier because migration definitions are separated from scripts . Maybe it is a good idea to support both.

Do you like to integrate your PoC so it can be activated if flyway is in the classpath?

closed, good idea but no reason to keep it open

Why not? I'd love this feature.
Just putting flyway to the classpath and disabling the schema update of camunda bpm seems not to work because the schema validation of camunda bpm run before any flyway script has been executed :-/


[Task] pullsecret defined API call should be preset aware

The current API call to determine if the pull-secret is given, is based on the openshift preset.
When we would use this in the tray, the API could possibly prevent the podman preset to start when the pull-secret is not defined.
This API call introduced to prevent the slow startup, as the pull-secret preflight check follows quite late. It would be quicker to check if the puyll-secret is there or not, provide a popup and continue.
The suggestion would be to make this API call aware of the preset and check if pull-secret is needed, based on this, and if defined when necessary. This way the tray does not need to check the configuration and preset value to determine this. It should not have to be aware of this logic.
This is needed for: https://github.com/gbraad/crc-tray-electron/commit/2b5e773d36dd6499fb2fd6efd5f30db312143707#r64088220 which solves: https://github.com/code-ready/tray-electron/issues/61

@gbraad the /pull-secret api is preset aware, I tested with curl and getting correct response.
✗ ./crc config view
- consent-telemetry                     : no
- network-mode                          : user
- preset                                : podman

✗ curl -IXGET --unix-socket ~/.crc/crc-http.sock http:/c/api/pull-secret
HTTP/1.1 200 OK
Date: Tue, 18 Jan 2022 14:09:18 GMT
Content-Length: 0

✗ ./crc config unset preset
Successfully unset configuration property 'preset'
✗ ./crc config view
- consent-telemetry                     : no
- network-mode                          : user
✗ curl -IXGET --unix-socket ~/.crc/crc-http.sock http:/c/api/pull-secret
HTTP/1.1 404 Not Found
Date: Tue, 18 Jan 2022 14:13:27 GMT
Content-Length: 61
Content-Type: text/plain; charset=utf-8

The API call is correctly aware of the preset. I believe the issues, around not starting, are caused by #2949 Segment related timeouts.

It seems this does not always returned the expected value. I've seen two reports about this sometimes sending a 'not defined' (or perhaps an error?) and a reported case #3003

@anjannath can you add your findings here?

Unclear if this is still an issue or not?


'system' is unavailable: not available on iOS

/luajit-2.1.0-beta3/src/lib_os.c:52
'system' is not available on iOS11 (Xcode9)

I've made a pull req

thank you.


Fix extra % in Monkey pet's Treeborn ability

Error spotted by 2short2hit, link to support thread here

forgot to edit NBT 💀 not this again


List Quotes that someone added

a command that will list that servers quotes

nope, thats not what quote system is made for. If there is ever to be something like this, it will be a separate system, or I will remove all quotes and redo it.

No i mean the ... quotes the ones for servers


Add a PowerShell tab

Add PowerShell code equivalent to the Azure CLI code.

@alexandair : Thanks for your contribution! The author(s) have been notified to review your proposed change.

It's merged in the private repo.


Fix broken links

Removed Gitorious link (broken)

Hello Dhruv,
Thanks so much for your interest in fixing the OSEHRA VistA repository.  I am happy to take in the change found in this request.  But, we do not make the changes to this repository via pull requests, but through the use of a Gerrit Code Review site found here:  review.code.osehra.org
I have moved the commit from this pull request to an entry in the OSEHRA Gerrit:  http://review.code.osehra.org/#/c/938/ where it will be merged from there.
Thanks again!

The review in Gerrit was approved and merged.

Thanks.
I'll figure out how to use gerrit and merge #4 somehow
-Dhruv


Feature: Scripts for building and publishing

This PR introduces both a Github Actions job and a shell script that can be used to tag and push releases, and then build and upload Neffint to PyPI
The shell script is taken from here: https://github.com/xsuite/xsuite/blob/main/release.sh
The Github Actions job is largely based on the following: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

@giadarol since you expressed an interest in seeing how publishing to PyPI can be done with github actions, here is the solution I came up with. It is mostly based on [1], but updated to use OIDC authentication instead of an API token, since that was recommended by [2] (the publishers of the main uploading script used in the job), since it is apparently the current best practice.
See commit 97e58b213ba55891f556949ab0b4dc206fcbdab7 for the older (API token) approach, which is used by [1].
Additional setup required:

Using the API token approach: Copy an API key from PyPI into the repository secrets on Github.
Using the OIDC approach: Add the repository name and organization as a Trusted Publisher on the package settings on PyPI

[1]  https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
[2] https://github.com/pypa/gh-action-pypi-publish#specifying-a-different-username

I agree with both suggestions


Typo in section #3: Running the starting sample app

Coroutines on Android are available as a core library, and Android specific extensions:
kotlinx-corountines-core — Main interface for using coroutines in Kotlin

Thanks for the report! This is now fixed.


ofmeet is out of step with Jitsi

Openfire meetings is now out of step with Jitsi because of the following changes

Jicofo maven artifact upgraded to 1.1 which uses Smack 4.x
jitsi-videobridge-openfire is not up to date with jitsi-videobridge
Jitsi Meet has new UI changes (invite options) that break InterfaceConfigServlet

I'm sorry, I missed this issue. I think all of this is addressed in #37 though :)

Yes please, they have all be addressed.


Mvn batch-mode for CI scripts

Signed-off-by: Peixin Li<EMAIL_ADDRESS>fix #529, to not display progress noise in logs. Also include some retry config update

build


Wrong redirection on menu item related page

In my case, I have several translated menus.
On menus other than the default locale, when you click on the page associated with a menu item, you are redirected to the correct page but the locale is always the default locale, and not the locale of the page clicked (in my case, it should be FR).
Here is an example video :
https://user-images.githubusercontent.com/8549974/224767915-d092e1ab-4470-4ee5-8840-86fda42d86dd.mov

Fixed in v2.2.7


fix powershell commands referencing old AzureStorage prefix

when converting over from the AzureRm to the new Az syntax some older AzureStorage commands were overlooked. The updates correct the oversight so that the script works in pwsh 6.

@mikeehsu : Thanks for your contribution! The author, @MikeRayMSFT, has been notified to review your proposed change.

Opps.. sorry accidentally closed the request. Reopening it.

@mikeehsu thank you for the submission - I'm double checking the syntax with engineering and will update.

#sign-off
Thank you, @mikeehsu


Remove offline replica rebuilding UI components

What this PR does / why we need it
Remove offline replica rebuilding related info and settings

alert in volume detail page
volume info in volume detail page
options in create volume modal
update modal, action button and bulk action in volume / volume detail page
volume state tooltip

Issue
[IMPROVEMENT] Remove Offline Rebuilding from UI on master and v1.7.0
Test Result
Remove below UI components

Additional documentation or context
Note. this PR will backport to v1.7.x after merged.

@mergify backport v1.7.x


uninstall: remove kuadrant control plane deployment from the cluster

This PR related to the removing whole kuadrant control plane deployment from the cluster
Still thinking about to remove CRD's from cluster or keep them as right now implementing
@eguzki could please review when possible

Good job :medal_military:
This issue partially implements #6. Another meaningful capability of this command would disabling Kuadrant protection to some specific API (or domain name).
I have tested and working like a charm :+1:
I would not delete the namespace and CRDs. Deleting the namespace, the uninstall command would be much simpler, but the namespace could contain some customer resources that would also be deleted. Regarding the CRD's, being cluster wide, they could be used somewhere else.

Thanks for review, @eguzki

Another meaningful capability of this command would disabling Kuadrant protection to some specific API (or domain name).

However uninstall a bit confusing for me for this kind command. Does it means that we need to set label discovery.kuadrant.io/enabled: to false for the service where annotation discovery.kuadrant.io/api-name is equals to API name or I'm wrong?
apiVersion: v1
kind: Service
metadata:
  name: cats-api
  annotations:
    discovery.kuadrant.io/scheme: "http"
    discovery.kuadrant.io/api-name: "cats"
    discovery.kuadrant.io/tag: "production"
    discovery.kuadrant.io/port: "80"
    discovery.kuadrant.io/oas-configmap: "cats-oas"
  labels:
    discovery.kuadrant.io/enabled: "true"
spec:
  selector:
    svc: cats
  ports:
    - port: 80
      protocol: TCP
      targetPort: 3000

You are right. However, that is only one easy and convenient way to protect your API. But the customer could also decide to not annotate a service and create (manually or via some UI) an API apis.networking.kuadrant.io resource directly.  In that particular case, the uninstall command would have to delete the API resource.
Actually, for kuadrant, the API.networking.kuadrant.io is the source of truth for the API definition. The protection is defined in the APIProduct custom resource. The kuadrant labels and annotation in the service is called service discovery, a convenient way to define the API and the kuadrant controller will, behind the scene, create an API custom resource for you.
This design is still under development and naming and relations may change in the future. Feel free to propose here :)


Compress the categories to show the one selected or move the screen position to the rest of the search area (Location and Keyword)

After you select a category, the other categories compress visually.
Also the browser scolls to the next form element (address)

Try to make the categories two across on a mobile screen.


Fork this and host it on jenkinsci

This project (although low on test coverage) has gotten more mature and should probably be contributed back to the jenkins registry.

We should delete and move vs fork?

Just fork it probably. work still happens on this fork and you submit PRs to the other one when ready.


[stable/prometheus-operator] Apply tpl on Alertmanager externalUrl

Is this a new chart
No
What this PR does / why we need it:
This PR takes the technique that was applied to prometheus.prometheusSpec.externalUrl in #22684 and also applies it to alertmanager.alertmanagerSpec.externalUrl. As mentioned in the other PR, this just makes the chart a little more flexible. In my case, it will limit the amount of values I will have to pass in, and now it will be consistent between alertmanager and prometheus itself.
The other PR did not update the README in any way to denote that this value was templatized. I found one reference in the README already (under grafana.additionalDataSources) that describes a value as being templatized, so I copied that style to update the README for the change I made in this PR, and the change made in #22684.
Special notes for your reviewer:
Thanks for your work on this chart, and taking the time to review my change!
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

Sorry about the force pushes, apparently I'm bad at signing my commits.

/hold
We're holding PRs to stable prometheus charts for a short time until prometheus-community/community#28 (comment) is resolved.
As a user/contributor, testing this PR would be a big help: https://github.com/scottrigby/prometheus-helm-charts/pull/1. No need to reply here. If you are able, please reply and help there. It has gone through some user testing, but testing out any additional use cases (for example, upgrading an existing PV) would help this process move along faster.
Once that PR is merged, you can re-open your PR in the new repo. Thanks!

🚧 This chart is now deprecated.
Further development has moved to prometheus-community/helm-charts. The chart has been renamed kube-prometheus-stack to more clearly reflect that it installs the kube-prometheus project stack, within which Prometheus Operator is only one component.
If applicable, please re-open this PR there. Thanks!


Runing in dev mode gets stuck using kn workflow plugin

local devmode kn workflow run gets stuck at the following message:
2024-02-16 09:45:51,075 42b7b2bc7694 INFO  [org.kie.kogito.jobs.service.management.JobServiceInstanceManager:-1] (vert.x-eventloop-thread-2) Initial leader check completed
The full console log. Click to expand.
[tkobayas my-sonataflow-project]$ kn workflow run
✅ Checking if Docker is available...
 - Docker is running
⏳ Starting your SonataFlow project in dev mode...
🔎 Warming up SonataFlow containers (quay.io/kiegroup/kogito-swf-devmode:1.42), this could take some time...
Pulling from kiegroup/kogito-swf-devmode
Digest: sha256:55bb47585e0441b90aaca8ba347855428de1876631595f0617c24cca4216ae16
Status: Image is up to date for quay.io/kiegroup/kogito-swf-devmode:1.42

Created container with ID 42b7b2bc76946cfe232f3809f2e5c2037829a626598fcc93931c4342fa95bd18
⏳ Starting your container and SonataFlow project...
INFO Configure Maven
INFO --> checking if .mvn/jvm.config exists.
INFO ---> .mvn/jvm.config does not exists, memory will be calculated based on container limits.
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< org.acme:serverless-workflow-project >----------------
[INFO] Building serverless-workflow-project 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ serverless-workflow-project ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ serverless-workflow-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- quarkus-maven-plugin:2.16.8.Final:generate-code (default) @ serverless-workflow-project ---
[WARNING] K_SINK variable is empty or doesn't exist. Please make sure that this service is a Knative Source or has a SinkBinding bound to it.
[INFO]
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ serverless-workflow-project ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/kogito/serverless-workflow-project/target/classes
[INFO]
[INFO] --- quarkus-maven-plugin:2.16.8.Final:dev (default-cli) @ serverless-workflow-project ---
[INFO] Invoking org.apache.maven.plugins:maven-resources-plugin:2.6:testResources @ serverless-workflow-project
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/kogito/serverless-workflow-project/src/test/resources
[INFO] Invoking io.quarkus.platform:quarkus-maven-plugin:2.16.8.Final:generate-code-tests @ serverless-workflow-project
[WARNING] K_SINK variable is empty or doesn't exist. Please make sure that this service is a Knative Source or has a SinkBinding bound to it.
[INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile @ serverless-workflow-project
[INFO] Changes detected - recompiling the module!
Listening for transport dt_socket at address: 5005
Press [h] for more options>
2024-02-16 09:45:33,789 42b7b2bc7694 WARN  [org.kie.kogito.addons.quarkus.knative.eventing.KnativeEventingConfigSourceFactory:-1] (main) K_SINK variable is empty or doesn't exist. Please make sure that this service is a Knative Source or has a SinkBinding bound to it.
2024-02-16 09:45:34,054 42b7b2bc7694 WARN  [org.kie.kogito.addons.quarkus.knative.eventing.KnativeEventingConfigSourceFactory:-1] (main) K_SINK variable is empty or doesn't exist. Please make sure that this service is a Knative Source or has a SinkBinding bound to it.
2024-02-16 09:45:34,588 42b7b2bc7694 WARN  [io.quarkus.resteasy.mutiny.deployment.ResteasyMutinyProcessor:-1] (build-50) The quarkus-resteasy-mutiny extension is deprecated. Switch to RESTEasy Reactive instead.
This extension adds support for Uni and Multi to RESTEasy Classic, without using the reactive execution model, as RESTEasy Classic does not use it. To properly integrate Mutiny and RESTEasy, use RESTEasy Reactive. See https://quarkus.io/guides/getting-started-reactive for detailed instructions
2024-02-16 09:45:36,434 42b7b2bc7694 WARN  [io.quarkus.arc.deployment.SplitPackageProcessor:-1] (build-41) Detected a split package usage which is considered a bad practice and should be avoided. Following packages were detected in multiple archives:
- "io.smallrye.reactive.messaging.providers.connectors" found in [io.smallrye.reactive:smallrye-reactive-messaging-in-memory::jar, io.smallrye.reactive:smallrye-reactive-messaging-provider::jar]
2024-02-16 09:45:36,541 42b7b2bc7694 INFO  [org.kie.kogito.codegen.api.utils.AddonsConfigDiscovery:76] (build-21) Performed addonsConfig discovery, found: AddonsConfig{usePersistence=false, useTracing=false, useMonitoring=false, usePrometheusMonitoring=false, useCloudEvents=true, useExplainability=false, useProcessSVG=false, useEventDrivenDecisions=false, useEventDrivenRules=false}
2024-02-16 09:45:36,662 42b7b2bc7694 INFO  [org.kie.kogito.codegen.core.utils.ApplicationGeneratorDiscovery:66] (build-86) Generator discovery performed, found [processes]
2024-02-16 09:45:36,663 42b7b2bc7694 INFO  [org.kie.kogito.codegen.core.ApplicationGenerator:142] (build-86) Skipping generator 'processes' because disabled
2024-02-16 09:45:39,175 42b7b2bc7694 WARN  [org.kie.kogito.jobs.service.openapi.JobServiceModelFilter:75] (build-68) SpecVersion enum schema is not present in the OpenAPI document.
__  ____  __  _____   ___  __ ____  ______
 --/ __ \/ / / / _ | / _ \/ //_/ / / / __/
 -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \
--\___\_\____/_/ |_/_/|_/_/|_|\____/___/
2024-02-16 09:45:43,621 42b7b2bc7694 WARN  [io.quarkus.config:57] (Quarkus Main Thread) Unrecognized configuration key "quarkus.container-image.build" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
2024-02-16 09:45:43,622 42b7b2bc7694 WARN  [io.quarkus.config:57] (Quarkus Main Thread) Unrecognized configuration key "kogito.jobs-events-topic" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
2024-02-16 09:45:43,622 42b7b2bc7694 WARN  [io.quarkus.config:57] (Quarkus Main Thread) Unrecognized configuration key "quarkus.container-image.group" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
2024-02-16 09:45:43,622 42b7b2bc7694 WARN  [io.quarkus.config:57] (Quarkus Main Thread) Unrecognized configuration key "kogito.data-index.blocking" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
2024-02-16 09:45:43,623 42b7b2bc7694 WARN  [io.quarkus.config:57] (Quarkus Main Thread) Unrecognized configuration key "kogito.data-index.domain-indexing" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
2024-02-16 09:45:43,623 42b7b2bc7694 WARN  [io.quarkus.config:57] (Quarkus Main Thread) Unrecognized configuration key "kogito.apps.persistence.type" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
2024-02-16 09:45:43,623 42b7b2bc7694 WARN  [io.quarkus.config:57] (Quarkus Main Thread) Unrecognized configuration key "kogito.jobs-service.url" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo
2024-02-16 09:45:44,581 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:781] (Quarkus Main Thread) Detected a Linux x86_64 system
2024-02-16 09:45:44,598 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.DefaultPostgresBinaryResolver:48] (Quarkus Main Thread) Detected distribution: 'Red Hat Enterprise Linux'
2024-02-16 09:45:44,600 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.DefaultPostgresBinaryResolver:62] (Quarkus Main Thread) System specific postgres binaries found: 'postgres-linux-x86_64.txz'
2024-02-16 09:45:44,669 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:814] (Quarkus Main Thread) Extracting Postgres...
2024-02-16 09:45:47,320 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:847] (Quarkus Main Thread) Postgres binaries at /tmp/embedded-pg/PG-102e6363fced1e91aa3b6178e0d6f3a9
2024-02-16 09:45:47,340 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) The files belonging to this database system will be owned by user "kogito".
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) This user must also own the server process.
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270))
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) The database cluster will be initialized with locale "C".
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) The default text search configuration will be set to "english".
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270))
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) Data page checksums are disabled.
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270))
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) fixing permissions on existing directory /tmp/epg10087286283661558670 ... ok
2024-02-16 09:45:47,341 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) creating subdirectories ... ok
2024-02-16 09:45:47,342 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) selecting dynamic shared memory implementation ... posix
2024-02-16 09:45:47,355 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) selecting default max_connections ... 100
2024-02-16 09:45:47,372 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) selecting default shared_buffers ... 128MB
2024-02-16 09:45:47,461 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) selecting default time zone ... UTC
2024-02-16 09:45:47,462 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) creating configuration files ... ok
2024-02-16 09:45:47,624 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) running bootstrap script ... ok
2024-02-16 09:45:48,120 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) performing post-bootstrap initialization ... ok
2024-02-16 09:45:49,256 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) syncing data to disk ... ok
2024-02-16 09:45:49,256 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270))
2024-02-16 09:45:49,256 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270)) Success. You can now start the database server using:
2024-02-16 09:45:49,256 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270))
2024-02-16 09:45:49,257 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270))     /tmp/embedded-pg/PG-102e6363fced1e91aa3b6178e0d6f3a9/bin/pg_ctl -D /tmp/epg10087286283661558670 -l logfile start
2024-02-16 09:45:49,257 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (initdb:pid(270))
2024-02-16 09:45:49,259 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:251] (Quarkus Main Thread) cb515be2-ee03-4e8d-8551-571f628a260a initdb completed in 00:00:01.935
2024-02-16 09:45:49,263 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:281] (Quarkus Main Thread) cb515be2-ee03-4e8d-8551-571f628a260a postmaster started as Process[pid=281, exitValue="not exited"] on port 44869.  Waiting up to PT10S for server startup to finish.
2024-02-16 09:45:49,282 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (postgres:pid(281)) waiting for server to start....2024-02-16 09:45:49.282 UTC [284] LOG:  starting PostgreSQL 14.8 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
2024-02-16 09:45:49,284 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (postgres:pid(281)) 2024-02-16 09:45:49.284 UTC [284] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 44869
2024-02-16 09:45:49,285 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (postgres:pid(281)) 2024-02-16 09:45:49.285 UTC [284] LOG:  could not create IPv6 socket for address "::1": Address family not supported by protocol
2024-02-16 09:45:49,285 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (postgres:pid(281)) 2024-02-16 09:45:49.285 UTC [284] LOG:  listening on Unix socket "/tmp/.s.PGSQL.44869"
2024-02-16 09:45:49,287 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (postgres:pid(281)) 2024-02-16 09:45:49.287 UTC [285] LOG:  database system was shut down at 2024-02-16 09:45:48 UTC
2024-02-16 09:45:49,289 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (postgres:pid(281)) 2024-02-16 09:45:49.289 UTC [284] LOG:  database system is ready to accept connections
2024-02-16 09:45:49,368 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (postgres:pid(281))  done
2024-02-16 09:45:49,368 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:133] (postgres:pid(281)) server started
2024-02-16 09:45:49,424 42b7b2bc7694 INFO  [io.zonky.test.db.postgres.embedded.EmbeddedPostgres:321] (Quarkus Main Thread) cb515be2-ee03-4e8d-8551-571f628a260a postmaster startup finished in 00:00:00.164
2024-02-16 09:45:49,424 42b7b2bc7694 INFO  [io.quarkiverse.embedded.postgresql.EmbeddedPostgreSQLRecorder:53] (Quarkus Main Thread) Embedded Postgres started at port "44869" with database "postgres", user "postgres" and password "postgres"
2024-02-16 09:45:49,499 42b7b2bc7694 WARN  [io.fabric8.kubernetes.client.Config:566] (Quarkus Main Thread) Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring.
2024-02-16 09:45:49,776 42b7b2bc7694 WARN  [org.kie.kogito.addons.quarkus.knative.eventing.KnativeEventingConfigSourceFactory:80] (Quarkus Main Thread) K_SINK variable is empty or doesn't exist. Please make sure that this service is a Knative Source or has a SinkBinding bound to it.
2024-02-16 09:45:49,965 42b7b2bc7694 WARN  [io.quarkus.agroal.runtime.AgroalConnectionConfigurer:16] (Quarkus Main Thread) Agroal does not support detecting if a connection is still usable after an exception for database kind: postgresql
2024-02-16 09:45:49,977 42b7b2bc7694 WARN  [io.quarkus.agroal.runtime.AgroalConnectionConfigurer:16] (Quarkus Main Thread) Agroal does not support detecting if a connection is still usable after an exception for database kind: postgresql
2024-02-16 09:45:49,978 42b7b2bc7694 WARN  [io.quarkus.agroal.runtime.AgroalConnectionConfigurer:16] (Quarkus Main Thread) Agroal does not support detecting if a connection is still usable after an exception for database kind: postgresql
2024-02-16 09:45:50,108 42b7b2bc7694 INFO  [org.flywaydb.core.internal.license.VersionPrinter:-1] (Quarkus Main Thread) Flyway Community Edition 9.11.0 by Redgate
2024-02-16 09:45:50,108 42b7b2bc7694 INFO  [org.flywaydb.core.internal.license.VersionPrinter:-1] (Quarkus Main Thread) See what's new here: https://flywaydb.org/documentation/learnmore/releaseNotes#9.11.0
2024-02-16 09:45:50,108 42b7b2bc7694 INFO  [org.flywaydb.core.internal.license.VersionPrinter:-1] (Quarkus Main Thread)
2024-02-16 09:45:50,161 42b7b2bc7694 INFO  [org.flywaydb.core.internal.database.base.BaseDatabaseType:-1] (Quarkus Main Thread) Database: jdbc:postgresql://localhost:44869/jobs_service (PostgreSQL 14.8)
2024-02-16 09:45:50,192 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbValidate:-1] (Quarkus Main Thread) Successfully validated 7 migrations (execution time 00:00.015s)
2024-02-16 09:45:50,205 42b7b2bc7694 INFO  [org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory:-1] (Quarkus Main Thread) Creating Schema History table "public"."flyway_schema_history" ...
2024-02-16 09:45:50,250 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Current version of schema "public": << Empty Schema >>
2024-02-16 09:45:50,254 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Migrating schema "public" to version "2.0.0 - Create Table"
2024-02-16 09:45:50,271 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Migrating schema "public" to version "2.0.1 - job details increase job id size"
2024-02-16 09:45:50,277 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Migrating schema "public" to version "2.0.2 - job details add fire time col"
2024-02-16 09:45:50,283 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Migrating schema "public" to version "2.0.3 - Create Table Management"
2024-02-16 09:45:50,289 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Migrating schema "public" to version "3.0.0 - Create Jobs Table V2"
2024-02-16 09:45:50,298 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Migrating schema "public" to version "3.0.1 - Migrate Jobs v1 to v2 Table"
2024-02-16 09:45:50,304 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Migrating schema "public" to version "3.0.2 - Add Execution Timeout Col"
2024-02-16 09:45:50,308 42b7b2bc7694 INFO  [org.flywaydb.core.internal.command.DbMigrate:-1] (Quarkus Main Thread) Successfully applied 7 migrations to schema "public", now at version v3.0.2 (execution time 00:00.061s)
2024-02-16 09:45:50,869 42b7b2bc7694 INFO  [io.smallrye.reactive.messaging.provider:-1] (Quarkus Main Thread) SRMSG00232: Outgoing channel `kogito-job-service-job-status-events` disabled by configuration
2024-02-16 09:45:50,918 42b7b2bc7694 INFO  [org.kie.kogito.jobs.service.management.JobServiceInstanceManager:-1] (Quarkus Main Thread) Current Job Service Instance JobServiceManagementInfo[id=kogito-jobs-service-leader, lastHeartbeat=2024-02-16T09:45:50.918Z, token=ca7a63f2-b205-44cd-b592-bb3ba3702ad5]
2024-02-16 09:45:50,921 42b7b2bc7694 INFO  [org.kie.kogito.jobs.service.repository.postgresql.PostgreSqlJobServiceManagementRepository:-1] (Quarkus Main Thread) get kogito-jobs-service-leader
2024-02-16 09:45:50,936 42b7b2bc7694 INFO  [org.kie.kogito.addon.quarkus.messaging.common.QuarkusKogitoExtensionInitializer:-1] (Quarkus Main Thread) Registered Kogito CloudEvent extension
2024-02-16 09:45:50,945 42b7b2bc7694 INFO  [org.kie.kogito.jobs.service.scheduler.JobSchedulerManager:-1] (vert.x-eventloop-thread-2) Skip loading scheduled jobs
2024-02-16 09:45:50,983 42b7b2bc7694 INFO  [io.quarkus:-1] (Quarkus Main Thread) serverless-workflow-project 1.0.0-SNAPSHOT on JVM (powered by Quarkus 2.16.8.Final) started in 17.398s. Listening on: http://<IP_ADDRESS>:8080
2024-02-16 09:45:50,983 42b7b2bc7694 INFO  [io.quarkus:-1] (Quarkus Main Thread) Profile dev activated. Live Coding activated.
2024-02-16 09:45:50,983 42b7b2bc7694 INFO  [io.quarkus:-1] (Quarkus Main Thread) Installed features: [agroal, cache, cdi, embedded-postgres, flyway, grpc-server, hibernate-orm, hibernate-orm-panache, jackson-jq, jdbc-postgresql, job-http-recipient, kafka-client, kogito-addon-jobs-management-extension, kogito-addon-knative-eventing-extension, kogito-addon-kubernetes-extension, kogito-addon-messaging-extension, kogito-addon-source-files-extension, kogito-addons-quarkus-data-index-inmemory, kogito-addons-quarkus-jobs-service-embedded, kogito-serverless-workflow, kogito-serverless-workflow-devui, kubernetes-client, narayana-jta, oidc, openshift-client, qute, reactive-pg-client, reactive-routes, rest-client, rest-client-jackson, resteasy, resteasy-jackson, resteasy-multipart, resteasy-mutiny, security, security-properties-file, servlet, smallrye-context-propagation, smallrye-fault-tolerance, smallrye-health, smallrye-openapi, smallrye-reactive-messaging, smallrye-reactive-messaging-http, smallrye-reactive-messaging-kafka, swagger-ui, vertx, vertx-graphql]
2024-02-16 09:45:51,062 42b7b2bc7694 INFO  [org.kie.kogito.jobs.service.management.JobServiceInstanceManager:-1] (vert.x-eventloop-thread-2) SET Leader JobServiceManagementInfo[id=kogito-jobs-service-leader, lastHeartbeat=2024-02-16T09:45:51.062Z, token=ca7a63f2-b205-44cd-b592-bb3ba3702ad5]
2024-02-16 09:45:51,070 42b7b2bc7694 INFO  [org.kie.kogito.jobs.service.management.JobServiceInstanceManager:-1] (vert.x-eventloop-thread-2) Enabled communication for leader instance
2024-02-16 09:45:51,075 42b7b2bc7694 INFO  [org.kie.kogito.jobs.service.management.JobServiceInstanceManager:-1] (vert.x-eventloop-thread-2) Initial leader check completed

Actual result
http://localhost:8080/q/dev/ doesn't open.
Expected result
http://localhost:8080/q/dev should open and work properly.
Environment

RHEL 8 CSB
Docker

A side note

deployment to minikube kn workflow deploy works without issues with the same configuration

Originally reported by @tkobayas

The related issue:
It seems that the container stopped, and the cli shows the same output without any changes.
Execute kn workflow run:
✅ Checking if Docker is available...
 - Docker is running
⏳ Starting your SonataFlow project in dev mode...
🔎 Warming up SonataFlow containers (quay.io/kiegroup/kogito-swf-devmode:1.42), this could take some time...
Already exists
Download complete
Download complete

Created container with ID 8ffc51288c36696206be6876d3b0ff1c0de491763282f360bac3d8341fbc0dba
⏳ Starting your container and SonataFlow project...
 `podman ps -a`
CONTAINER ID  IMAGE                                     COMMAND               CREATED         STATUS      PORTS                   NAMES
8ffc51288c36  quay.io/kiegroup/kogito-swf-devmode:1.42  /home/kogito/laun...  13 seconds ago  Created     <IP_ADDRESS>:8080->8080/tcp  brave_einstein
podman logs -t 8ffc51288c36 "

Environment

macos 14.3
podman 4.9.3
podman machine v1.7.1
vscode 1.86.1

Originally reported by @mouachan


Failed to build plutus-core from alonzo-white sources

Area
[] Plutus Foundation Related to the GHC plugin, Haskell-to-Plutus compiler, on-chain code
Summary
I cannot build Alonzo-testnet sources from a plutus nix-shell. This used to be the only way I could get HLS integration working in the Atom editor.
In general, I seem to spend far too much time trying to setup a decent working environment. Given that this is likely multiplying for everyone trying to do stuff on the alonzo-white testnet, we should fix this.
Please work with me to get decent docs out. I personally have ...

MacOS
ghcup
Atom

[.../plutus]$ nix-shell
[nix-shell:plutus]$ cd .../Alonzo-testnet/resources/plutus-sources
[nix-shell:plutus-sources]$ cabal clean
[nix-shell:plutus-sources]$ cabal build all

...

Failed to build plutus-core-<IP_ADDRESS>. The failure occurred during the configure
step.
Build log (
/Users/tdiesler/.cabal/logs/ghc-<IP_ADDRESS>10212/plts-cr-<IP_ADDRESS>-d3d22b42.log
):
Configuring library for plutus-core-<IP_ADDRESS>..
cabal: The program 'happy' version >=1.17.1 is required but the version of
/Users/tdiesler/.cabal/store/ghc-<IP_ADDRESS>10212/hppy-1.20.0-c4936d37/bin/happy
could not be determined.

cabal: Failed to build plutus-core-<IP_ADDRESS> (which is required by
exe:plutus-example from plutus-example-1.27.0, exe:plutus-alwayssucceeds from
plutus-alwayssucceeds-1.27.0 and others). See the build log above for details.

I'm still in the process of learning Haskell/Plutus - a decent user experience in the editor with working a HLS integration is essential for me.

I think I've managed to hit this as well and had to do cabal update in my fresh install to remedy this.
Also cabal build all recently failed for me on plutus-metatheory - if it happens to you, try smaller target like cabal build plutus-use-cases instead (and possibly report the issues you find!).

Checked out plutus rev 523f349f3d68db07c98150734793ed7003d1f562 referenced in the testnet repo. Then a few times cabal update until I see ...
[nix-shell:~/git/Alonzo-testnet/resources/plutus-sources]$ cabal update
Downloading the latest package list from hackage.haskell.org
Package list of hackage.haskell.org is up to date at index-state 2021-07-20T14:34:19Z

Then cabal build all ...
Failed to build plutus-core-<IP_ADDRESS>. The failure occurred during the configure
step.
Build log (
/Users/tdiesler/.cabal/logs/ghc-<IP_ADDRESS>10212/plts-cr-<IP_ADDRESS>-0a3fa957.log
):
Configuring library for plutus-core-<IP_ADDRESS>..
cabal: The program 'happy' version >=1.17.1 is required but the version of
/Users/tdiesler/.cabal/store/ghc-<IP_ADDRESS>10212/hppy-1.20.0-c4936d37/bin/happy
could not be determined.

cabal: Failed to build plutus-core-<IP_ADDRESS> (which is required by
exe:plutus-example from plutus-example-1.27.0, exe:plutus-alwayssucceeds from
plutus-alwayssucceeds-1.27.0 and others). See the build log above for details.

The nix-shell accesses the user's local ~/.cabal folder. After reinstalling ghcup and carefully checking that nix stuff comes before ghcup stuff in the PATH, it worked.


onDragStop is called with incorrect newItem

In my usage it seems that onDragStop is actually called with incorrect data when the item is dropped. I would expect the newItem argument to essentially have the dimensions+position of the "placeholder" underneath the dragged item, but it instead has the exact position of where the dragged item was when it was dropped.
Though you can hardly visually discern the placeholder, dropping the currently dragged item (below) will place it with a y value of 1 less than the user would expect:

This issue only manifests itself when static === false, since otherwise vertical packing will hide it.
This seems like a fairly large issue, so I want to confirm it's not by design. I'd be happy to submit a PR to resolve it, but wanted to get some feedback here first.
Would be happy to throw an example up into a gist if my explanation isn't sufficient.

I can't really see in the photo - might be the contrast on my screen - but just so I'm understanding this correctly; you want onDragStop to tell you where the item ends up after it is compacted, not before it is compacted.
It is intentional to callback onDragStop with where the item was dropped, because I figured that exact information may be useful to you.
You can get around this with the following:

Record the i of the item onDragStop.
Correlate it with the matching item from onLayoutChange and use that position instead.

Okay, I'll try that out. To clarify, my expectation was that the dropped item would just inherit the position of the "placeholder" created while dragging it. Since the point of the placeholder (I believe) is to show the user where the item will go when it's dropped. Not necessarily about it being compacted. Does that make sense?

Well, what really happens is that it is dropped where you place it, then immediately compacted. The same is done for the placeholder because it would be misleading otherwise.
I understand the confusion - I am thinking of how to make this less surprising while still making pre-compaction data available. Perhaps naming is really the issue.

Ah! That makes a lot of sense now. I disabled compaction and tried it out... I totally get it.
Trying to think of ideas too... maybe only passing pre-compacted data when verticalCompact === false? Is there a case when someone would need pre-compacted data when compaction is disabled?
Or splitting it into two arguments on the callback, one for the compacted layout and the other for a pre-compacted one?

That's a possibility re: two callbacks.
As for someone needing pre-compacted data, in that case the data in onLayoutChange (which has the whole layout, and is useful for that reason) will be the same for that item as it is on onDragStop. Which is how it should work most intuitively. The only reason onDragStop sends "stale" data is so that you at least have it somehow if you need it.

Makes sense. Another possible option could just be updating the documentation: specifying the ways to access both the compacted and pre-compacted layout.

I also face the issue of inconsistency between the location of the placeholder and the layout I get in onDragStop when compactVertical is true. @cp, have you found a way to get the actual (not stale) location of the item?

@kachkaev See the workaround in https://github.com/STRML/react-grid-layout/issues/345#issuecomment-246214707


How to format a property as password with NSwag?

How to create a password-formated property from C#?
We need something like this:
        - name: password
          in: query
          required: true
          schema:
            type: string
            nullable: true
            format : password

Thanks!

Do you want this spec generated from a parameter/property?

[JsonSchemaTypeAttribute]

Do you want this spec generated from a parameter/property?

yes, thanks, we will try that.


[video_player] audio asset check

Description
Support for playing audio files on iOS
Related Issues
Fixes flutter/flutter#39845
Fixes flutter/flutter#48053
Checklist

[ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] All existing and new tests are passing.
[ ] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[ ] I read and followed the Flutter Style Guide.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[ ] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

@googlebot I fixed it

@googlebot I fixed it.

@googlebot I fixed it.

@googlebot I fixed it.

@googlebot I fixed it.

@ShivamGoyal1899 @russellwheatley Please note that Flutter's policies explicitly say that only committers should use the "approve" feature for PRs; ignoring that just causes confusion for others following a PR.

Thank you for your contribution. I'm going to close this PR for now since there are outstanding comments, just to get this off our PR review queue. Please don't hesitate to submit a new PR if you have the time to address the review comments. Thanks!


test(rust): improve command integration tests

Changes:
test(rust): improve command integration tests

add test to create space, create project, send message, delete project, delete space
add test to list spaces
use environment vars LONG_TESTS and ORCHESTRATOR_TESTS to enable tests
update orchestrator tests to not require a background node

Try it
This will run local only test:
# This will run local only test:
# bats implementations/rust/ockam/ockam_command/tests/commands.bats
#
# This will run all local only test (including the long ones)
# LONG_TESTS=1 bats implementations/rust/ockam/ockam_command/tests/commands.bats
#
# This expects enroll to have already happened and will run the not very long orchestrator tests
# ORCHESTRATOR_TESTS=1 bats implementations/rust/ockam/ockam_command/tests/commands.bats
#
# This expects enroll to have already happened and will run all orchestrator tests
# ORCHESTRATOR_TESTS=1 LONG_TESTS=1 bats implementations/rust/ockam/ockam_command/tests/commands.bats

Changed var LONG_RUNNING_TESTS to just LONG_TESTS


Add support for eslint-plugin-requirejs

Great! Thanks a lot :)
You should probably also mention it in https://github.com/dustinspecker/awesome-eslint ;)


.xlsm support

Hi, does this package also support changing cells in .xlsm files? Thank you!

Yep. It should work.
On Aug 25, 2017 5:39 AM, "271bibi"<EMAIL_ADDRESS>wrote:

Hi, does this package also support changing cells in .xlsm files? Thank
you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dtjohnson/xlsx-populate/issues/76, or mute the thread
https://github.com/notifications/unsubscribe-auth/AANWk-MJo0UewDBehRKS9D8tX2W406lWks5sbpZbgaJpZM4PCcHC
.

Hi, I tried Generate Blob in the Browser Demo with a simple .xlsm file (no macros in it) but when I opened the generated file, I got this error:
Excel cannot open the file because the file format or file extension is not valid

I also tried in my code with no success. Any hint ?
Thank you,

@UMAknow-Patrick did you ever get an answer for this? I'm experiencing the same thing.

I tried .xlsm & .xls, both with macros embedded and got the same error. It would be nice if they added support for these file types too. But this is the only project I've found that keeps the Formatting. I will add the macros to my personal workbook and call them from there.

@UMAknow-Patrick You need to change the extension name from "xlsx" to "xlsm", the file could be opened then. However, I found another issue, after this step, my embedded macro cannot run and Excel prompts security problem like this:

Hi, is there an option to read a protected xlsm file? I'm having issues trying to do it. When I try I get:(node:10836) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: Non-whitespace before first tag.
I'm using this code:
XlsxPopulate.fromFileAsync(pathFile, {password: 'xxx'})
.then(workbook => {
console.log(workbook);
});
I hope you can guide me. Thank you.


token endpoint: align response with old spring-security-oauth

Describe the bug
I'm migrating from the EOL spring-security-oauth project and thus need to keep the responses identical.
I've started with the token endpoint and it's working well so far, however there are two differences that I do not know how to address:
For the token endpoint, the differences are:

jti

old: included by default and identical to the one in the access_token body
new: could not find a way to include it

token_type

old: bearer (note the case)
new: Bearer

Example
old
{
  "access_token": "...",
  "expires_in": 59,
  "jti": "abcf9112-fa08-4474-a2df-....",
  "scope": "sessions",
  "token_type": "bearer"
}

new
{
  "access_token": "...",
  "expires_in": 59,
  "scope": "sessions",
  "token_type": "Bearer"
}

I feel like I'm missing something obvious but just can't find it in the docs.
To Reproduce
Default sample project
Expected behavior

The jti is included by default, or a way to provide it.
A way to change the case of token_type

After some more digging around I stumbled upon some similar issues (https://github.com/spring-projects/spring-authorization-server/issues/1000, https://github.com/spring-projects/spring-authorization-server/issues/925) and could solve my current issues with the solutions mentioned in the comment(s).
I would +1 though on an easier way to hook into this part, it felt like there was a lot of code copied for, essentially just adding two keys to the additionalParameters map:
builder.additionalParameters(
    mapOf(
        "jti" to decodedAccessToken.id,
        "token_type" to accessToken.tokenType.value.lowercase() // because the old project had it lowercase
    )
)

Hi @emilburzo,

I would vote +1 though on an easier way to hook into this part, it felt like there was a lot of code copied for, essentially, just adding two keys to the additionalParameters map:

Can you share what you did specifically here? I'm not clear if you're asking for an easier way than the OAuth2TokenCustomzier which only requires exposing as an @Bean? Or if you chose to go a different route?

@sjohnr sure, I'll try

I'm not clear if you're asking for an easier way than the OAuth2TokenCustomzier which only requires exposing as an @Bean?

unless I'm missing something, I think that only allows you to customize the jwt object (access_token field in the below example), which is indeed very nice and easy.
what I need though is the ability to customize the actual token endpoint (/oauth2/token) response to make it match the EOL https://github.com/spring-attic/spring-security-oauth, e.g.:
$ curl -s -X POST --url http://localhost:8002/oauth/token --user 'XXXX:YYYY' --header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' --data 'grant_type=client_credentials' --data 'scope=sessions'

I was able to achieve that using the solution described here: https://github.com/spring-projects/spring-authorization-server/issues/925#issuecomment-1291178579, specifically: providing a custom AuthenticationSuccessHandler, which means copying all of this code: https://github.com/spring-projects/spring-authorization-server/blob/eae6630599c139ddab3a1e9060a124fd47224059/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/web/OAuth2TokenEndpointFilter.java#L221-L247
and changing it like so:
--- a/OAuth2TokenEndpointFilter.java
+++ b/OAuth2TokenEndpointFilter.java
@@ -226,7 +226,7 @@ public final class OAuth2TokenEndpointFilter extends OncePerRequestFilter {

         OAuth2AccessToken accessToken = accessTokenAuthentication.getAccessToken();
         OAuth2RefreshToken refreshToken = accessTokenAuthentication.getRefreshToken();
-        Map<String, Object> additionalParameters = accessTokenAuthentication.getAdditionalParameters();
+        val decodedAccessToken = jwtDecoder.decode(accessToken.tokenValue)

         OAuth2AccessTokenResponse.Builder builder =
                 OAuth2AccessTokenResponse.withToken(accessToken.getTokenValue())
@@ -238,9 +238,12 @@ public final class OAuth2TokenEndpointFilter extends OncePerRequestFilter {
         if (refreshToken != null) {
             builder.refreshToken(refreshToken.getTokenValue());
         }
-        if (!CollectionUtils.isEmpty(additionalParameters)) {
-            builder.additionalParameters(additionalParameters);
-        }
+        builder.additionalParameters(
+            mapOf(
+                "jti" to decodedAccessToken.id, // must be the same as the access_token jti
+                "token_type" to accessToken.tokenType.value.lowercase() // because the old project had it lowercase
+            )
+        )
         OAuth2AccessTokenResponse accessTokenResponse = builder.build();
         ServletServerHttpResponse httpResponse = new ServletServerHttpResponse(response);
         this.accessTokenHttpResponseConverter.write(accessTokenResponse, null, httpResponse);

(sorry for the syntax, it's kotlin)
which works, but having something as easy as the OAuth2TokenCustomzier would be way nicer in my opinion, as there's less copy/pasting, having to track if the upstream logic ever changes, and so on
I hope that makes it clearer, feel free to ask otherwise

@emilburzo, thanks for the details. Take a look at gh-925 which may cover your use case.


Better formatting for rate columns in chargeback reports

fixes https://github.com/ManageIQ/manageiq/issues/20138
Used Rate:

Before

After

@miq-bot assign @gtanzillo
@miq-bot add_label chargeback, enhancement

@miq-bot add_label jansa/yes

Jansa backport details:
$ git log -1
commit 6fd33628539d675076ef91c6fcc097e058ea394b
Author: Gregg Tanzillo<EMAIL_ADDRESS>Date:   Tue Jun 2 17:09:14 2020 -0400

    Merge pull request #20228 from lpichler/rate_column_formatting

    Better formatting for rate columns in chargeback reports

    (cherry picked from commit 0bf5d54cfd86114ad4a2ad812f775fb1e0b1edc5)

@jvlcek
before

after


need progressbar

TTY have awesome libraries about console apps.
https://piotrmurach.github.io/tty/
Also you can look these.
https://github.com/fazibear/colorize
https://github.com/janlelis/paint
https://github.com/paul/progress_bar
https://github.com/jfelchner/ruby-progressbar

Thank you for suggesting!
We might be showing download progress in the future #536 but not any other kind of progress bar.


Allow configuration of "port" instead of "portIndex" for HTTP/TCP health checks

In #2731 we introduce the option to specify the absolute port number for the health check instead of the portIndex. This is especially useful in the IP-per-container case.
Example, instead of:
{
    "id": "...",
     // ...
     "healthChecks": [
        {
          "gracePeriodSeconds": 30,
          "ignoreHttp1xx": false,
          "intervalSeconds": 6,
          "maxConsecutiveFailures": 3,
          "portIndex": 0,
          "protocol": "TCP",
          "timeoutSeconds": 2
        }
      ]
}

You could write:
{
    "id": "...",
     // ...
     "healthChecks": [
        {
          "gracePeriodSeconds": 30,
          "ignoreHttp1xx": false,
          "intervalSeconds": 6,
          "maxConsecutiveFailures": 3,
          "port": 9000,
          "protocol": "TCP",
          "timeoutSeconds": 2
        }
      ]
}

In the IP-per-container case, Marathon will (when implemented) automatically choose the IP address of the container and the specified port for the health check.

@kolloch
Sorry I'm not sure I can parse this correctly. Do you mean that the Edit modal dialog should allow setting the port field instead of the portIndex in case the service discovery info have been specified?
As you know we postponed the IP per Container settings in the Create modal to "Phase 2".  Do you still see a big gain in only changing this inside the Edit modal?
Regarding the "displaying" of the healthChecks configuration: this info is already a JSON string of whatever is inside the healthChecks field, so if a port was specified in lieu of a portIndex the output will automatically reflect this.

@mwasn @kolloch – hold on a second, is this even a gui issue?

@pierlo-upitup this is a gui issue, service support for this was added in #2731.
If we decide to move forward with this issue and add this to the UI, then the Edit modal dialog should allow to specify either the port field or the portIndex, but not both at same time. This should always be possible, not only if the app requests an IP-per-Task.
Otherwise I'd recommend closing this issue.


show back to top button when user acutually scrolled down

before:

after:

@sukkritsharmaofficial @smaranjitghose Please review/


Endpoint for debt payoff plannar added

A feature that calculates the number of months required to pay off a debt and the total interest paid based on the debt amount, interest rate, and monthly payment.

@ighoshsubho please review and merge PR

@ighoshsubho sir please merge PR .

@ighoshsubho please review and Merge PR .

@nikhil25803 @ighoshsubho . I'm resolving the conflicts 5th time and I'm on the verge of getting under 100 contributors.
Please Merge this PR

@nikhil25803 @ighoshsubho please review and Merge PR .


Is there any way to create a text file with all links in the open directory?

Is there anyway to auto create a txt file on the open directory that would contain every url on the open directory?
For instance:
https://test.test.workers.dev/test.txt
would contain:
https://test.test.workers.dev/friend.avi
https://test.test.workers.dev/filestream.exe
https://test.test.workers.dev/youtube/hello.mp4
https://test.test.workers.dev/youtube/HDvid.mp4
https://test.test.workers.dev/youtube/Myeyes.mp4
https://test.test.workers.dev/music/mp3/aaron_carter.mp3
https://test.test.workers.dev/music/mp3/backstreetboys.mp3

You can program against Google Drive api yourself.


Is it required to include both scripts in html page?

<!-- Automatically provides/replaces `Promise` if missing or broken. -->
<script<EMAIL_ADDRESS><script<EMAIL_ADDRESS>
<!-- Minified version of `es6-promise-auto` below. -->
<script<EMAIL_ADDRESS><script<EMAIL_ADDRESS>

What is different between es6-promise.js and es6-promise.auto.js?
Is it required to include both scripts in html page?
What happens if just include either of es6-promise.js or es6-promise.auto.js?

I also don't understand from the README what is the difference.
very poor explanation:

Automatically provides/replaces Promise if missing or broken.

That is the whole essence of a polyfill...of course this is what it does.

What I found out testing a jsPDF page with IE and looking at the code:

es6-promise.auto.js seems to work like any polyfill so promises can be used automatically by scripts that require it, I guess with es6-promise.j you can only use the script implementation manually.
including es6-promise.auto.js seems to be enough, including both shouldn't cause trouble.
I would only use es6-promise.auto.js, if you need the polyfill that will do it. If you want to manually use the script implementation with either version of the script you can use ES6Promise


refac(pallets/subspace): remove printlns and assert ok in staking test

I don't get the title, did you also remove asserts?

I don't get the title, did you also remove asserts?

No, i did more assert_ok! calls

@aripiprazole fix the title please


Prefixer bugs, and other weirdness

In Firefox,
sheet = b({appearance: "none"})
sheet2 = b("appearance: none")
sheet + sheet2
p(sheet.getSheet())
p(sheet2.getSheet())

prints
.bajq6bd1.bajq6bd1{--moz-appearance:none;}.bajq6bd2.bajq6bd2{appearance:none;}
''

--moz-appearance should be -moz-appearance, as should appearance, I suppose.
Also, are you intentionally duplicating the classes? It has an impact on the specificity of the selector, but is probably harmless otherwise.
At last, AFAICT getSheet() is not documented, but it is supposed to behave like that?

Yeah, the current version doesn't run the object style through the same parsing as the rest which is why the class is duplicated, but it's fixed for v2. https://github.com/porsager/bss/issues/22
getSheet was just a hook I made for the tests initially, so it clears everything when run, which is quite silly when the name is getSheet :P
The plan is to expose a proper API and documentation for these things once I've gotten around to play with SSR.

Ah, misunderstood your question wrt. duplicating classes.
That is to get higher specificity for catering to the common case of needing to add styling which needs to override styling added with $nest.
Using $nest won't add duplicate classes.
here's a sample
If it didn't have the duplicated classes the nested styling would have the highest specificity.

It all makes sense then. The prefixer bugs remain though.

Ah sorry @pygy .. I didn't even notice the extra dash in --moz-appearance. Thank you ! 👍

Great, thanks!


Fixes #488: Add logging to the driver config

Fixes #488
Suggestion to change the log level of Neo4j driver
Proposed Changes
A brief list of proposed changes in order to fix the issue:

add SLF4j Logger config to configBuilder in Neo4jService.kt

Implemented in #502, version 4.1


[1406] Feedback form

Context
The feedback used to to be collected via Google form.
Since we migrated away from GSuite we need a new way of collecting.
https://trello.com/c/UcyWgDU3/1406-feedback-form
Changes proposed in this pull request

New feedback form page that lives on /feedback
Migration to add feedbacks table with satisfaction_rating, improvment_suggestion,
contact_permission_given and email
Feedback model with presence/inclusion validations
New 'Feedback sent' page shown when feedback submitted
Link to feedback from banner and 'Referral sent' confirmation page

Guidance to review

Click the link in the banner to give feedback
Check that each of the three questions are required and the error messages are ok
Answer 'yes' to contact and check that the email field is required
Submit the form and check that you are redirected to the new Feedback sent page

Form

Feedback sent confirmation page

Link to feedback from Referral sent confirmation

 Feedback form


FastFilter Fix

Adding the conditions for the negative scenario in the AddOperator for FastFilter.
Fixes : https://github.com/Microsoft/vstest/issues/1240

Suggest to make acceptance tests for stringent for filters.


Debug CI workflow

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

Project coverage is 100.00%. Comparing base (5125521) to head (503f13b).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #71   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           37        37
  Lines          809       809
  Branches        56        56
=========================================
  Hits           809       809

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


Auto help question

 Issue by AndrewSav
Tuesday Sep 22, 2015 at 22:37 GMT
Originally opened as https://github.com/gsscoder/commandline/issues/242

This is regarding 2.0

Is it possible to suppress displaying version/copyright stuff (I can display them myself, thank you very much) but retain the rest?
If I remove AssemblyCopyright attribute CommandLine just crashes. I'm not sure if it's intended behaviour?

 Comment by gsscoder
Thursday Sep 24, 2015 at 13:13 GMT

Is it possible to suppress displaying version/copyright stuff (I can display them myself, thank you very much) but retain the rest?

You can handle help screen completely on your own, just create a parser with a ParserSettings that lacks a value for HelpWriter property.

If I remove AssemblyCopyright attribute CommandLine just crashes. I'm not sure if it's intended behaviour?

If with crash you mean an exception not generated by the library, it's always something that should be fixed.
In any case if you leave the automatic help generation, you can't remove AssemblyCopyright, but if you generate the help screen manually everything will be under your control.

But probably you want just use the automatic generation and tell it to not print copyright info removing AssemblyCopyright? Am I right?

 Comment by gsscoder
Monday Oct 05, 2015 at 22:41 GMT

:paperclip: Please read: #250. Thanks for collaboration and patience! :sweat_smile:
Giacomo
P.S.: valid only for me, if a main contrib. is available he's obviously free to support devs/users of the project.

 Comment by AndrewSav
Thursday Sep 24, 2015 at 19:39 GMT

But probably you want just use the automatic generation and tell it to not print copyright info removing AssemblyCopyright? Am I right?

Yes! As I said, I want it to print the help, as it is doing very good job with that. It would be a downer to re-implement it again, when the library already implements it. I just want to suppress displaying version/copyright but retain the rest of the help info generated. Is this possible? I might be reading it wrong but it seems that your response does not address this question?

 Comment by nemec
Monday Apr 18, 2016 at 17:54 GMT

Nothing yet. @gsscoder is tied up in work and I don't have time to actively develop a fix. If you want to dig in, I think the best approach would be to expose the AutoBuild pipeline (which currently depends on internal types, see #286 #281) and add a flag to the constructor allowing you to turn on/off version and copyright.

 Comment by AndrewSav
Monday Apr 18, 2016 at 09:45 GMT

Just pinging, in case there is a status update. Cheers!

 Comment by ChristianIvicevic
Saturday Sep 16, 2017 at 10:46 GMT

I noticed this behavior and reported it in #481 and it's a shame nothing has been introduced to remove the default version/copyright output. Since this hasn't been fixed in over two years I will be looking into alternative libraries.

 Comment by ChristianIvicevic
Saturday Sep 16, 2017 at 21:22 GMT

@AndrewSav I moved to System.CommandLine now. Unfortunately it is dependant on NETStandard which downloads 100 DLLs into the binary folder but the library itself is pretty nice.

 Comment by AndrewSav
Saturday Sep 16, 2017 at 21:20 GMT

@ChristianIvicevic at this stage this is the most reasonable thing to do.

Resolved


Develop a UI prototype of biological strategy search engine

Can use ReactJS for this or a lightweight prototyping tool such as one of these: https://webflow.com/blog/prototyping-tools
Biological strategies will be short summaries like the ones on AskNature:
"Three muscle fiber patterns inside trunks work together to provide the strength, support, and resistance needed to bend and twist with extreme agility." https://asknature.org/strategy/how-elephant-trunks-twist-and-twirl/
Show a design sketch image along side the strategy text. Some example sketches are shown here: https://toolbox.biomimicry.org/methods/abstract/.
We'd like to eventually create these sketches using AI text-to-image generation.
It may also be useful to allow a user to see different variations of the strategies depending on their role: (practitioner, engineer, biologist). If they select biologist, display the biological strategies and sketch. If engineer, display the abstracted version, with biology terms replaced with functional basis synonyms. The design sketch should also be abstracted. For practitioner, display abstracted summary described at a high-school level, with general discipline-neutral terminology.

In addition to free-form search box, we may want to keep categorical filters, for users that want to use a guided browsing approach.


Please confirm whether Chrome browser's plan to deprecating third-party cookies has been canceled.

Please confirm whether Chrome browser's plan to deprecating third-party cookies has been canceled.

Hi @dalnim-lee
A new path for Privacy Sandbox on the web explains Chrome's plans.


TON Coin not listed

Hello!
TON coin is not in the Coins list. Could you please add it?
Thanks!

I second this


artifactPath of packageMinifiedJSDependencies is computed from packageJSDependencies

artifactPath is currently computed from crossTarget and moduleName in packageJSDependencies. But it should be computed from crossTarget and moduleName in packageMinifiedJSDependencies. Currently nothing is failing because crossTarget and moduleName are always equals.

It's not internal. People could redefine crossTarget/moduleName in packageMinifiedJSDependencies in their builds.


[Bug]: Outline Client can't establish stable connection on Ubuntu 24.04

Application
Outline Client
Describe the bug
Can't establish stable connection to Outline server after upgrading to Ubuntu 24.04 with my own surely working OK Outline Server, instead client constantly tries to reconnect.
Everything was fine until the upgrade to Ubuntu 24.04, using Outline CLI gets you connected, but the client won't.
I'm including debug log below.
Steps to reproduce

Get Linux machine/VM with Ubuntu 24.04
Install AppImage from getoutline.com
Try to establish stable connection to a server

What did you expect to happen?
No response
What actually happened?
DEBUG LOG (some keys where changed for privacy reasons)
username@host:~/Documents$ OUTLINE_DEBUG=true ./Outline-Client.AppImage
Sentry Logger [log]: Starting Electron crashReporter
Sentry Logger [log]: Integration installed: SentryMinidump
Sentry Logger [log]: Integration installed: ElectronBreadcrumbs
Sentry Logger [log]: Integration installed: Net
Sentry Logger [log]: Integration installed: MainContext
Sentry Logger [log]: Integration installed: ChildProcess
Sentry Logger [log]: Integration installed: OnUncaughtException
Sentry Logger [log]: Integration installed: PreloadInjection
Sentry Logger [log]: Integration installed: AdditionalContext
Sentry Logger [log]: Integration installed: Screenshots
Sentry Logger [log]: Integration installed: RendererProfiling
Sentry Logger [log]: Integration installed: InboundFilters
Sentry Logger [log]: Integration installed: FunctionToString
Sentry Logger [log]: Integration installed: LinkedErrors
Sentry Logger [log]: Integration installed: Console
Sentry Logger [log]: Integration installed: Http
Sentry Logger [log]: Integration installed: Undici
Sentry Logger [log]: Integration installed: OnUnhandledRejection
Sentry Logger [log]: Integration installed: ContextLines
Sentry Logger [log]: Integration installed: LocalVariablesSync
Sentry Logger [log]: Integration installed: Modules
Sentry Logger [log]: Integration installed: RequestData
Sentry Logger [log]: Integration installed: MainProcessSession
Sentry Logger [log]: The preload script could not be injected automatically. This is most likely caused by bundling of the main process
Outline is starting
loading web app from file:///tmp/.mount_OutlinAiCFNQ/resources/app.asar/www/index_electron.html?debug=true&appName=Outline
Could not load active tunnel:  [Error: ENOENT: no such file or directory, open '/home/username/.config/Outline/connection_store'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/home/username/.config/Outline/connection_store'
}
connecting to abcdefgk-c4fe-429d-bdad-00000000000...
using tun2socks to check connectivity
[EXIT - tun2socks]: Exited with code 0
UDP support: true
starting routing daemon
[STDERR - tun2socks]: 2024/04/28 11:11:43 tun2socks running...

tun2socks started
2024/04/28 11:11:43 tun2socks running...
connected to abcdefgk-c4fe-429d-bdad-00000000000
reconnecting to abcdefgk-c4fe-429d-bdad-00000000000
reconnected to abcdefgk-c4fe-429d-bdad-00000000000
using tun2socks to check connectivity
[EXIT - tun2socks]: Exited with code 0
reconnecting to abcdefgk-c4fe-429d-bdad-00000000000
reconnected to abcdefgk-c4fe-429d-bdad-00000000000
using tun2socks to check connectivity
[EXIT - tun2socks]: Exited with code 0
reconnecting to abcdefgk-c4fe-429d-bdad-00000000000
reconnected to abcdefgk-c4fe-429d-bdad-00000000000
using tun2socks to check connectivity
[EXIT - tun2socks]: Exited with code 0
reconnecting to abcdefgk-c4fe-429d-bdad-00000000000
reconnected to abcdefgk-c4fe-429d-bdad-00000000000
using tun2socks to check connectivity
[EXIT - tun2socks]: Exited with code 0

Outline Version
1.13.0 (475480)
What operation system are you using?
Linux
Operating System Version
Ubuntu 24.04 LTS x86_64
Screenshots and Videos
No response

Previously I had Ubuntu 22.04, Outline Client was working perfectly there.

Try
ufw disable
reboot server
and check again.

I am issuing this problem too.

Also I noticed the following behavior:

Outline-Client runs 2 instances of tun2socks (I see it in ps ax | grep tun2socks)
First instance works permanently but second one (with argument -checkConnectivity) periodically restarts (I see that PID changes in the output of ps ax command)
When I run second one tun2socks from console (I copied it to home directory and start with arguments I saw in ps ax) it reports error Failed to open TUN device: ioctl: operation not permitted. When I run it with sudo it works and does not restart.

I used strace to see that it tries to open /dev/net/tun:
openat(AT_FDCWD, "/dev/net/tun", O_RDWR|O_NONBLOCK) = 3
ioctl(3, TUNSETIFF, 0xc000072bf8)       = -1 EPERM (Operation not permitted)

Also, on fresh Ubuntu 24.04 Outline-Client reports error
FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_OutlinMA3Lfs/chrome-sandbox is owned by root and has mode 4755.

when I start it without --no-sandbox.
It seems like SUID sandbox is the key here.
For now I use outline-cli from outline-sdk package.

I have the same issue. How can i solve it ?

Also I noticed the following behavior:

Outline-Client runs 2 instances of tun2socks (I see it in ps ax | grep tun2socks)
First instance works permanently but second one (with argument -checkConnectivity) periodically restarts (I see that PID changes in the output of ps ax command)
When I run second one tun2socks from console (I copied it to home directory and start with arguments I saw in ps ax) it reports error Failed to open TUN device: ioctl: operation not permitted. When I run it with sudo it works and does not restart.

I used strace to see that it tries to open /dev/net/tun:
openat(AT_FDCWD, "/dev/net/tun", O_RDWR|O_NONBLOCK) = 3
ioctl(3, TUNSETIFF, 0xc000072bf8)       = -1 EPERM (Operation not permitted)

Also, on fresh Ubuntu 24.04 Outline-Client reports error
FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_OutlinMA3Lfs/chrome-sandbox is owned by root and has mode 4755.

when I start it without --no-sandbox.
It seems like SUID sandbox is the key here.
For now I use outline-cli from outline-sdk package.

I have the same issue. How can i solve it ?

Hi @heilkit @iloginov @AdriCQ , the sandbox issue seems to be caused by a known electron bug: https://github.com/electron/electron/issues/41066.
You may try to launch these arguments when launching Outline: --no-sandbox --disable-gpu-sandbox.
And yes, please also feel free to continue using outline-cli instead.

the same problem :(

Same problem here with ubuntu 23.10
I noticed these messages in the NetworkManager logs when the client is in the connect/disconnect loop
Jul 09 13:54:41 YYYYY NetworkManager[1253]: <warn>  [1720544081.9169] platform-linux: do-add-ip6-address[3: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:]: failure 13 (Permission denied)
Jul 09 13:54:41 YYYYY NetworkManager[1253]: <warn>  [1720544081.9169] l3cfg[d0c580eb092b62c9,ifindex=3]: unable to configure IPv6 route: type unicast fe80::/64 dev 3 metric 1024 mss 0 rt-src ipv6ll
Jul 09 13:54:43 YYYYY NetworkManager[1253]: <warn>  [1720544083.9191] platform-linux: do-add-ip6-address[3: fe80::db23:ae37:e847:8687]: failure 13 (Permission denied)
Jul 09 13:54:43 YYYYY NetworkManager[1253]: <warn>  [1720544083.9192] platform-linux: do-add-ip6-address[3: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:]: failure 13 (Permission denied)
Jul 09 13:54:45 YYYYY NetworkManager[1253]: <warn>  [1720544085.9211] platform-linux: do-add-ip6-address[3: fe80::5a87:35ab:a325:9aaa]: failure 13 (Permission denied)
Jul 09 13:54:45 YYYYY NetworkManager[1253]: <warn>  [1720544085.9211] platform-linux: do-add-ip6-address[3: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:]: failure 13 (Permission denied)
Jul 09 13:54:47 YYYYY NetworkManager[1253]: <warn>  [1720544087.9238] platform-linux: do-add-ip6-address[3: fe80::f776:15d5:19ec:5e6b]: failure 13 (Permission denied)
Jul 09 13:54:47 YYYYY NetworkManager[1253]: <warn>  [1720544087.9239] platform-linux: do-add-ip6-address[3: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:]: failure 13 (Permission denied)
Jul 09 13:54:49 YYYYY NetworkManager[1253]: <warn>  [1720544089.9246] platform-linux: do-add-ip6-address[3: fe80::940e:9ba7:42df:16c7]: failure 13 (Permission denied)
Jul 09 13:54:49 YYYYY NetworkManager[1253]: <warn>  [1720544089.9247] platform-linux: do-add-ip6-address[3: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:]: failure 13 (Permission denied)
Jul 09 13:54:51 YYYYY NetworkManager[1253]: <warn>  [1720544091.9255] platform-linux: do-add-ip6-address[3: fe80::7b68:b204:b633:7758]: failure 13 (Permission denied)
Jul 09 13:54:51 YYYYY NetworkManager[1253]: <warn>  [1720544091.9256] platform-linux: do-add-ip6-address[3: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:]: failure 13 (Permission denied)
Jul 09 13:54:53 YYYYY NetworkManager[1253]: <warn>  [1720544093.9281] ipv6ll[593412afebf2c5ba,ifindex=3]: changed: no IPv6 link local address to retry after Duplicate Address Detection failures (back off)
Jul 09 13:54:53 YYYYY NetworkManager[1253]: <warn>  [1720544093.9283] platform-linux: do-add-ip6-address[3: XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:]: failure 13 (Permission denied)
Jul 09 13:54:53 YYYYY NetworkManager[1253]: <warn>  [1720544093.9283] l3cfg[d0c580eb092b62c9,ifindex=3]: unable to configure IPv6 route: type unicast fe80::1/128 dev 3 metric 600 mss 0 rt-src ndisc pref high
Jul 09 13:54:53 YYYYY NetworkManager[1253]: <warn>  [1720544093.9283] l3cfg[d0c580eb092b62c9,ifindex=3]: unable to configure IPv6 route

ps: "XXXX" is hiding the IPV6 address

Thanks @pffont for the logs. Outline will disable IPv6 when connecting: https://github.com/Jigsaw-Code/outline-apps/blob/13931fa8e3f0a1a40a607c47ec8f45593ff7e474/client/electron/linux_proxy_controller/outline_proxy_controller.cpp#L402 . It's weird to see IPv6 routing logs, I'm not sure why.

It's weird to see IPv6 routing logs, I'm not sure why. Maybe you can try the outline-cli mentioned above to see whether the same issue happens?

outline-cli is working perfectly @jyyi1

same problem. Ubuntu 24.04

same problem Ubuntu 24.04

same problem Ubuntu 24.04

same problem Ubuntu 24.04 LTS

same problem after updating to ubuntu 24.04

not sure the same but with ubuntu 24.04 i have "Unable to Connect: Invalid Access Key Error"

found a temporarily solution from another discuss - turn off ipv6 on active interface
Right now problem is solved for my ubuntu 24.04

I have exactly the same issue after upgrading to Ubuntu 24.04
I applied this patch
cd ~/downloads
chmod 0766 Outline-Client.AppImage
./Outline-Client.AppImage --appimage-extract
cd squashfs-root/
sudo chown root:root chrome-sandbox
sudo chmod 4755 chrome-sandbox

as it is said above, and now it is running.
However, as soon as any traffic is happening, I am getting these messages in console:
using tun2socks to check connectivity
[EXIT - tun2socks]: Exited with code 0
reconnecting to 78dbda82-2259-4670-826c-7a3f83c2b6e0
reconnected to 78dbda82-2259-4670-826c-7a3f83c2b6e0
using tun2socks to check connectivity
[EXIT - tun2socks]: Exited with code 0
reconnecting to 78dbda82-2259-4670-826c-7a3f83c2b6e0
reconnected to 78dbda82-2259-4670-826c-7a3f83c2b6e0
using tun2socks to check connectivity
[EXIT - tun2socks]: Exited with code 0
reconnecting to 78dbda82-2259-4670-826c-7a3f83c2b6e0
reconnected to 78dbda82-2259-4670-826c-7a3f83c2b6e0
using tun2socks to check connectivity
...

and they are repeating and repeating:  I am getting messages every second that something is being reconnected.  What might be the problem?

Dear developers of Outline, you did really a great job, but with Ubuntu 24 something is terribly wrong: connection is always lost, reconnecting multiple times. This needs to be fixed.  It doesn't have to be like that.

Dear developers, are you planning to do anything with this issue?
Neither Outline GUI nor CLI are working on my Ubuntu 24.04 LTS machine. I was hoping for any solution would be available by now since half year have passed, but looks like Linux support is abandoned.

Same problem( Fix pls

I had to re-install back my Ubuntu 22.04  (was 24.04)  just to make Outline working.  This is one of the key software on my PC, and if it doesn't work - this is a disaster for me.

For me even on Ubuntu 22.04 it's not work :(

As it mentioned before, disabling of IPv6 on network interface helps. Al least in KUbuntu 24.04

How you disable the IPv6

Thanks @VijitCoder , but i m on ubuntu server, i have no graphical interface :(

@Zeus64 How about this solution? Add to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

It seems that it should work.

My experience with latest appimage on ubuntu 22.04 and on fresh install of PopOs 22.04 :

after outline loses connection, it indicates in gui that connection is present. However ping does not show any connection.
pressing "disconnect" starts endless "disconnecting" loop.
killing the outline processes somehow brickes the network connection for the current session. Only reboot helps, not even log out
ip addr indicates "wifi" interface in down state. Switching states of the interfaces does nothing to restore connection. I doubt that it is a dns problem.
trying to restart via sudo systemctl restart NetworkManager sometimes helps, but usually not. resolvectl status does not show any anomaly.

outline cli, suggested by @jyyi1, currently works like a charm.

@Mikluki Yes, I also confirm this behavior.

same problem after updating to ubuntu 24.04

It is not just on Ubuntu 24, it happens on kde, Manjaro,fedora, We can also use another app called v2raya if u don't mind using snap. We can use outline key on that vpn too.

We can also use another app called v2raya if u don't mind using snap. We can use outline key on that vpn too.

What about Outline Manager?

We can also use another app called v2raya if u don't mind using snap. We can use outline key on that vpn too.

What about Outline Manager?

From what I understood, outline client is for using VPN and outline server is for hosting VPN service. I am just a casual user. The reason I have to use vpn is that most websites were blocked by the shitty government. Without vpn, I cannot clone repository from github. I cannot download flatpak app. I cannot even do "apt update" very well because some repositories are blocked. And most privacy vpns like proton, open vpns are not working. They are also blocked. Express vpn might work. But it is too expensive for me.

outline cli works.
V2raya works.
Outline app image with --no-sandbox works but there is connect disconnect happening very fast so it is unnoticeable. Because of that, loading images on the website stuck partially.

I confirm, the problem still persists, I've recently updated to 24.04 from 22.04, where I used Outline without problems. Constantly reconnecting now.

Spamming "I have it too" does not help anyone to navigate the situation, please let the devs read it clearly by contributing ONLY PROBLEM DETAILS.

@nightfullstar "I have it too" is not spamming, it's show that the problem is not isolated and general

Hi there,
We are aware of the issues here on Ubuntu 24 (and also a bunch of other Ubuntu flavors). We are actively working on a solution now, but it requires a huge amount of work. We need to completely rewrite the entire routing logic of Outline Client for Linux. Please be patient while we are working on the change.
We recommend advanced users trying out the Outline CLI during this time, but please note that we still cannot guarantee that Outline CLI will work on all Linux distros, and you may need to troubleshoot the routing tables yourself if it's not working.
Thanks.

Thanks for the clarification @jyyi1 outline-cli works just fine in 24.04 LTS.


[BUG] Update the website accordingly

Description of the bug
The current website has Web3Community logos and design. We should update the favicon, logos, and design as well.
Please add screenshots (if applicable)
No response
Add any other context about the problem here
We might want to update Dev.TO's profile name and logos as well.
Code of Conduct

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

There is an upgrade to next.js issue open right.
So maybe these changes can be included in that upgrade too?

Yes, that should be done as well. Great catch!

This is more of a enhancement than a bug, right? @Panquesito7 Please update the labels

A idea for the updation of favicon is #172

I close, solved with #183


recognize fails but example.py and run_tests.py succeeds

Im not quite sure what I am doing wrong. All audio has been fingerprinted.
If I run dejavu.py with "recognize" option, it returns None. If i set the example.py to the same file, it returns properly. Run_tests.py has similar results.
What am I doing incorrectly?
(dejavu_env) msherry@mark-desktop:~/dejavu_env/dejavu$ python dejavu.py --recognize arid.mp3 ./testfiles/
None
(dejavu_env) msherry@mark-desktop:~/dejavu_env/dejavu$ python dejavu.py --recognize arid.mp3 ./testfiles
None
(dejavu_env) msherry@mark-desktop:~/dejavu_env/dejavu$ python example.py
From file we recognized: {'song_id': 5, 'song_name': 'arid', 'file_sha1': 'D99FB7DB2CCBF717301D584485B324D1F478410D', 'confidence': 4290, 'offset_seconds': 0.0, 'match_time': 4.677971124649048, 'offset': 0}
(dejavu_env) msherry@mark-desktop:~/dejavu_env/dejavu$ cat example.py
import warnings
import json
warnings.filterwarnings("ignore")
from dejavu import Dejavu
from dejavu.recognize import FileRecognizer, MicrophoneRecognizer
load config from a JSON file (or anything outputting a python dictionary)
with open("dejavu.cnf.SAMPLE") as f:
config = json.load(f)
if name == 'main':
# create a Dejavu instance
djv = Dejavu(config)

# Fingerprint all the mp3's in the directory we give it

djv.fingerprint_directory("mp3", [".mp3"])
# Recognize audio from a file
song = djv.recognize(FileRecognizer, "testfiles/arid.mp3")
print "From file we recognized: %s\n" % song

Thanks!!!
-Mark

Im dumb. Closing

i don't understand how this was solved. Can you help please