Throw an expected exception for EXPLAIN ANALYZE INSERT

Summary of the changes / Why this improves CrateDB
Fixes part of https://github.com/crate/crate/issues/17159. Now the reported scenario behaves as expected:
cr> EXPLAIN analyze INSERT INTO t (id) VALUES (2);
UnsupportedFeatureException[EXPLAIN ANALYZE is not supported for Insert{table=Table{only=false, t, partitionProperties=[]}, duplicateKeyContext=DuplicateKeyContext{type=NONE, onDuplicateKeyAssignments=[], constraintColumns=[]}, columns=[id], insertSource=Query{with=Optional.emptyqueryBody=Values{rows=[ValuesList{values=[2]}]}, orderBy=[], limit=Optional.empty, offset=Optional.empty}, returning=[]}]

Checklist

[x] Added an entry in the latest docs/appendices/release-notes/<x.y.0>.rst for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in the latest docs/appendices/release-notes/<x.y.0>.rst
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

The bug also reported that it was unable to kill the hanging job. What happened was that CrateDB expects an execution plan that is ready to be executed to not fail to execute. But the explain plan did fail to execute(it never became an active running task) while the jobs-log service logged that it was executed properly. Kill actions could not kill because there were no running tasks to kill. Jobs-log service never cleaned up the job because it never received an execution completed signal.
I do not see anything to be done for this part. The second commit is supposed to signal the jobs-log service with an exceptional completion signal which will cause the jobs log to be removed.


Fixed editing files in folders. Updated edit logic to use existing contentType.

Fixed editing files in folders.
Updated edit logic to use existing contentType.

Resolves #20

This only partial resolves #20


--property option is not recognized when running ./gradlew :properties --property

Per the documentation, when running ./gradlew <project>:properties, there is a way to query a specific property through the --property option.
Expected Behavior

Using the --property option should work and you should be able to query the value of the property.
Current Behavior

We hit an unknown command-line option error:

What went wrong:
Problem configuring task :ReactAndroid:properties from command line.

Unknown command-line option '--property'.

Context

We need to query the value of a property for use outside the gradle build and would like to do it via the documented command line option. We have a work around, but it would be ideal if the gradle command worked.
Steps to Reproduce

Clone facebook/react-native - https://github.com/facebook/react-native
In the cloned directory, run ./gradlew ReactAndroid:properties --property libsDirName
Observe the aforementioned failure

Your Environment

Output of ./gradlew --version:
Gradle 7.3.3
Build time:   2021-12-22 12:37:54 UTC
Revision:     6f556c80f945dc54b50e0be633da6c62dbe8dc71
Kotlin:       1.5.31
Groovy:       3.0.9
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          11.0.13 (Ubuntu 11.0.13+8-Ubuntu-0ubuntu1.20.04)
OS:           Linux <IP_ADDRESS>-microsoft-standard-WSL2 amd64

This is a feature introduced in Gradle 7.5, so you will need to use that version in order to have it work.


How to implement load balancing for Server streaming RPCs [服务流模式如何实现负载均衡]

If I had a service A, and started three instances.
Then I have a client B, calling service A, using the Server streaming RPCs method.
When the client method is invoked, an instance of service A (such as instance 1) establishes an Observer Method.
This time I need to service A to actively push information to the client B through Observer Method, how to ensure the use of the serviceA is instance 1
假如我有一个服务A，并且启动了3个实例。
然后我有一个客户端B，调用服务A，使用Server streaming RPCs模式。
当客户端方法被调用的时候，与服务A的某个实例（实例1）建立了一个Observer Method。
这个时候我需要服务A主动向客户端B推送信息，如何能够保证使用的是服务A的实例1

I guess a load-balancer in TCP mode is oriented to connection, and in HTTP mode oriented to requests? As I know no load-balancer can work in HTTP mode with HTTP/2 support. So it should work in TCP mode, and won't switch to other instance if a observer connection estabished. Isn't it?

According to:
https://http2.github.io/http2-spec/#StreamsLayer
https://http2.github.io/http2-spec/#rfc.section.9.1
HTTP/2 connections are persistent. For best performance, it is expected that clients will not close connections until it is determined that no further communication with a server is necessary


Update BroadcastExecutor.java for working links

The changes I made are solely to the BroadcastExecutor, I added a RegEx that ran through checks after the message was confirmed to have a link (http or https). If it had them, three regEx were ran. One for all of the message before the link, one for the link itself, and one for all the message after the link. Basically it cuts the message into parts and reforms them. If it doesn't have a link(https or http) then it simply runs the old command. I'd appreciate any criticism as I'm just learning Java, but I would love to assist you in this. This fix may also be applicable to normal chat also; I just haven't tinkered with it quite yet.

Almost all the formatting is messed up... Please fix this and then I'll test it out.

Sorry I'm extremely bad with comparing things. I appreciate you taking the to look at it and point out the faults for me.


Use return and fail

It would be more “standard” to use the names return and fail rather than ret and error.
PS:
I've been playing with the same thing for a while now:
http://seb.mondet.org/software/pvem/index.html
http://seb.mondet.org/software/pvem_lwt_unix/index.html

+1 for return at least. It's the common name in many module signatures.

I added undocumented functions R.{return,fail} for compatibilty in module signatures. They are undocumented because I don't think they are good names.

fail is too reminiscent of exceptions (lwt's, failwith, etc.) for me. Besides R.error also fits the  name of the corresponding case and many other combinators of the module: R.get_error, R.reword_error, R.ignore_error,  R.ignore_errork so I don't see the point of having a different name to construct it, that's one less name mapping you need in your brain.

I think people should use R.ret which is sufficently clear and allows much compacter lets (and ret is also used, e.g. in Cmdliner). I know many people don't care and tend to write horrible and unreadable long winded functions, with unnamed inlined functions/values and other interleaved sequencing operators. But the style I promote is that functions should be sequences of (as much as possible one-liner) let bindings, followed by a single expression. Having short combinators makes it easier to achieve that goal.

FWIW I don't think return is such a great name at all but it's basically ubiquitous and instantly recognizable by anyone who is familiar with monads.

Yeah maybe I should even switch to R.ok to be fully consistant.

Btw. I don't think recognizing the fact there is a monad is useful in anyway. I think that every monad should call its operators with names that make sense to their domain of application.

This is in general what I dislike with type classes, names may not be very relevant to the problem domain. E.g. Cmdliner's Term.pure would benefit of being called Term.const IMHO.

I like {ok, error} for the domain-specific API together with {return, fail} for being compatible the standard-monad module-type (it's useful sometimes to write code against "any monad" using functors or 1st-class modules).

I like {ok, error} for the domain-specific API together with {return, fail}

So it is now. Thanks for the feedback .


Migrate CI_YAML.md to GitHub wiki

This file rarely changes, but contains useful information. We should migrate it to the GitHub wiki to make it easier to update, and easier to discover.
Afterwards, we'll need to update all ci.yamls to point to the new wiki link

@keyonghan this was a recommendation from @zanderso. Does this proposal sound good to you?
From experience, I have to link people here quite often to answer questions, and the wiki might be able to help.

Docs were added to single page index instead https://github.com/flutter/flutter/wiki/Flutter-Self-Service-Index


Status bars light up when any prayer is on

The prayer side of the status bars currently lights up when you turn your quick prayers on. Would help if it lit up if you turned prayers on manually as well in case you forgot one on.
Side note: potentially adding this to the prayer orb as well?

I guess this makes sense for the prayer bar, it's not like your can click the bars to active quick-prayer. I'll get on it when i get home.

I cannot find an exact commit for when this was changed, but the prayer bar now lights up as activated when manually toggling prayers.


Status of Failed does not appear on change history table

I have deployed a CI/CD process with snowflake using Schemachange.
So far it has been running as expected and we are increasing the number of users on the platform. The current iteration does not have the capabilities of loading FAILED scripts into the change history table, and the change history table does not update. I've had to manually insert a record with the all the values to avoid the process failing.
Is there an option I have missed for this?
I would like to submit a pull request for this to add into the schemachange for review if possible. Also add some enhancements that might be helpful.
Thanks,
Michael Han

https://github.com/mhan92/schemachange/blob/master/schemachange/cli.py
To be honest, not to familiar with out contributions/forks/pull request work when it's not a repo I don't have access too but the above link is an attempt at a fix.
The updates include a try and except catch when the SQL compilation does not work. The process will write into the change_history table with Status as "Failed". Now someone can re-submit they're script after fixing typos or what not without changing the version number. The process will pickup the script and update the change history table with Status as Success and the Installed On timestamp.
I do believe adding a try and except clause will help keep auditing the change_history table a little bit easier. this will also ease up developers when submitting slight typos or weird grant issues that might arise.

Hello @mhan92,
Thank you for reaching out and attempting to solve for failed scripts logging. What are your current thoughts of logging failed scripts based on the latest v3.6.0. Do you still think the try ... except is the way to log failed scripts?
Does your changes allow the script to be rerun even if the failure is in the middle of the list ?
Let us know your thoughts to help us decide to include failed scripts or not.


Support helm extraContainers

Describe your changes

Add support for extraContainers in the helm chart so that users can add sidecars for sql proxying (as an example).

Issue number and link
Checklist before requesting a review

[x] I have properly bumped all version refs by running ./scripts/version-bump.sh v<new> from project root - for example ./scripts/version-bump.sh v1.9.3

@initharrington would you mind rebasing this? Thanks!

@echoboomer rebased with your changes from yesterday.  Thanks!


Add docstrings to all core classes

Ensure all core classes that are public have proper doc strings. Allocate functions to appropriate sections in API reference on readthedocs.

Recent string of commits has addressed this issue. All core classes now have documentation showing up in docs pages. kd-Tree is only class missing, but better to wait for kd-Tree refactoring in separate issue.


It would be nice to customize header field names

Instead of use the property name as field name (in the header) it would be nice to pass an object parameter with custom field names

Sorry... I just realized this option exists!... "fields" attribute.
It's a great library
Regards

You might close your own issue if it's resolved


The option ls shows missing directory if that directory is empty

Hi, I tried to test rustic version 0.7.0 on Arch Linux with Btrfs in VM.
The output of $ rustic snapshots
snapshots for (host [archlinux], label [label], paths [/btrfs/@home/test/Desktop,/btrfs/@home/test/Documents,/btrfs/@home/test/Downloads])
| ID       | Time                | Host      | Label | Tags | Paths                       | Files | Dirs |     Size |
|----------|---------------------|-----------|-------|------|-----------------------------|-------|------|----------|
| 6dd641f9 | 2024-05-22 14:35:20 | archlinux | label |      | /btrfs/@home/test/Desktop   |   244 |  268 |  8.0 GiB |
|          |                     |           |       |      | /btrfs/@home/test/Documents |       |      |          |
|          |                     |           |       |      | /btrfs/@home/test/Downloads |       |      |          |
| 0cff64d2 | 2024-05-22 14:35:37 | archlinux | label |      | /btrfs/@home/test/Desktop   |   327 |  268 | 10.7 GiB |
|          |                     |           |       |      | /btrfs/@home/test/Documents |       |      |          |
|          |                     |           |       |      | /btrfs/@home/test/Downloads |       |      |          |
| 8bdb6d5c | 2024-05-22 14:40:11 | archlinux | label |      | /btrfs/@home/test/Desktop   |   415 |  268 | 13.7 GiB |
|          |                     |           |       |      | /btrfs/@home/test/Documents |       |      |          |
|          |                     |           |       |      | /btrfs/@home/test/Downloads |       |      |          |
| 766e74ca | 2024-05-22 14:44:18 | archlinux | label |      | /btrfs/@home/test/Desktop   |   495 |  268 | 16.5 GiB |
|          |                     |           |       |      | /btrfs/@home/test/Documents |       |      |          |
|          |                     |           |       |      | /btrfs/@home/test/Downloads |       |      |          |
| 1c42e574 | 2024-05-22 14:44:50 | archlinux | label |      | /btrfs/@home/test/Desktop   |   576 |  267 | 19.3 GiB |
|          |                     |           |       |      | /btrfs/@home/test/Documents |       |      |          |
|          |                     |           |       |      | /btrfs/@home/test/Downloads |       |      |          |
| b2381bfb | 2024-05-22 14:46:25 | archlinux | label |      | /btrfs/@home/test/Desktop   |   658 |  267 | 22.2 GiB |
|          |                     |           |       |      | /btrfs/@home/test/Documents |       |      |          |
|          |                     |           |       |      | /btrfs/@home/test/Downloads |       |      |          |
6 snapshot(s)

Each snapshot has 3 different sources: Desktop, Documents and  Downloads  , that is right.
Some of them should have blank Documents.
Issue:
I checked to run ls the latest snapshot b2381bfb:
$ rustic ls b2381bfb:btrfs/@home/test/  shows:
[INFO] using config /etc/rustic/rustic.toml
[INFO] repository local:/home/test/Desktop/rustic: password is correct.
[INFO] using cache at /home/test/.cache/rustic/e1787b1f622aa5a803b70a94e11175bb8f004ed3d01f4be97a4e976de018476a
[00:00:00] reading index...               ████████████████████████████████████████          8/8                                                                                [00:00:00] getting snapshot...            ████████████████████████████████████████          0                                                                                [INFO] getting snapshot...
"Desktop"
"Downloads"

But where is the empty directory "Documents"?
I checked restic to mount this snapshot, but there is no "Documents" in this snapshot.
I checked some older snapshots they have no "Documents".
Config:
Here is a config for test on VM.
[global]
log-level = "info"

[repository]
repository = "/home/test/Desktop/rustic"
password = "test"

[forget]
keep-last = 10

[backup]
git-ignore = true # Respect all gitignore files anywhere
label = "label"
glob = [
  "!.snapshots/",
  "!.cache/",
]

[[backup.sources]]
source = "/btrfs/@home/test/Desktop /btrfs/@home/test/Documents /btrfs/@home/test/Downloads"

If you want to remove all snapshots, it is easier to remove the repo and re-create it. In general, removing snapshots only frees space if you run a prune afterwards.

Yes, prune does a two-phase pruning by default which allows parallel operations on a repository. Therefore all data is just marked for removal.

This error comes when the paths can't be sanitized because they (some?) don't exist.
Can you please run rustic backup --log-level debug by manually giving the paths? I think the most important thing is first to check why you snapshot misses some dir, or am I interpreting something wrong?

Ok, I tried to reproduce the issue and can confirm that an empty dir (as part of the source) is simply not backuped. There might be some exceptions when using multiple dirs, but just running a backup of Desktop should give you the same result.


Failure to run NSpecRunner under Microsoft Moles

I'm unable to run NSpecRunner (v<IP_ADDRESS>) under Microsoft Moles.
When I issue the command:
moles.runner.exe /r:c:\dev\TestProject\tools\nspec\NSpecRunner.exe TestProjectSpec.dll

I get the following exception:
Microsoft Moles Runner v0.94.51023.0 -- http://research.microsoft.com/moles -- .
NET v4.0.30319
Copyright (c) Microsoft Corporation 2007-2010. All rights reserved.

instrumenting...started

Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'file:///c:\dev\TestProject\tools\nspec\NSpecRunner.exe'
 or one of its dependencies. An attempt was made to load a program with an incorrect format.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm,Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Microsoft.Moles.Runner.MolesRunner.RunnerRunner.Run(String runner, String[] args)
   at Microsoft.Moles.Runner.MolesRunner.RunnerRunner.Run(String runner, String[] args)
   at Microsoft.Moles.Runner.MolesRunner.LaunchRunnerEntryPoint(MolesRunnerOptions options)
   at Microsoft.Moles.Runner.MolesRunner.RunnerMain(String[] args)
   at Microsoft.Moles.Runner.Program.Main(String[] args)

No activity.


chore(avm-simulator): formatting and fixes

Please read contributing guidelines and remove this line.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#5092  👈
#5091
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @fcarreiro and the rest of your teammates on  Graphite

Merge activity

Mar 11, 6:44 AM EDT: Graphite rebased this pull request as part of a merge.


Questions Regarding Agent Output and Loops

Hey there,
I'm working on a couple of simple modules and had a couple of questions.

Is it possible to have job output appear regardless of where you are in Empire?
Is it possible to have a job repeat n times (or until it's killed)?

Here are a couple of use cases:

I'd like to monitor a user's computer until they launch a certain process or open a certain connection
I'd like the notification of that alert to interrupt anything I'm doing so I can act on it

This was the result of a couple of finicky time-sensitive tasks I ran into on a recent engagement. Figured one or both would be helpful features in Empire.

Currently job output is resigned to Agent menus only to keep the main UI from being cluttered.
Jobs aren't currently repeatable, but we're thinking of trying to incorporate this into the architecture in a programatic way, just haven't had time to implement something "proper" yet. But we will revisit :)


Added the sun moon toggle to navbar

Why This PR Adds Value

Have changed the previous toggle to a sun moon toggle, showing a sun for the light mode and moon for the dark mode.
Have added the toggle to the upper left corner of the navbar
Made dark mode the default theme for the page

What This PR Adds

It adds a toggle.scss file for the css of the sun moon toggle.
navbar.html was changed to change the positioning of the toggle.
assets/js/dark-mode.js was changed to make dark mode the default.

Screenshot
Dark Mode:

Light mode:

How This PR Could Be Improved

This prove could be improved by fixing the dark mode colors for the overlay card which is related to issue #65

Issue This PR Closes
This closes #48

Hey @Inoxia25! I just merged a bunch of PRs that look like they've caused a few conflicts 😢 Are you able to go through and try and correct them?

@robzwolf yup just solved them

@robzwolf I think i messed up my code while solving the merge conflicts  :cry:  working on the changes

@robzwolf made the changes! Could you please review it once again


Not detecting changed directories

Hi @cjmanca!
First of all I want to say that this is an amazing tool! Thanks for all your work on this!
I believe I've discovered a bit of a bug related to change detection. After the initial processing, I have been adding media, but plex-credits-detect has not been detecting it. It only detects after a restart of the application. I did some troubleshooting and I found that the Plex database query was returning incorrectly.
I opened the db open in DB Browser, and you can see there is a changed directory at 9:16.

However, in the code, it's returning no rows after 8:55.

I even tweaked the code a bit to return all rows from the directories table, and result.Get<DateTime>("updated_at") still showed the old date.
I'm not sure if this is related to the fact that Plex seems to be using SQLite in WAL mode. But I tried creating the connection with sb.JournalMode = SQLiteJournalModeEnum.Wal and that didn't help.

The only thing that fixed this issue for me was closing and reopening the connection at the beginning of GetRecentlyModifiedDirectories. I suppose it's not the worst solution in the world since it happens at most 1/minute, but it doesn't seem right. If you have more experience with SQLite, may you'll have some idea why the queries seem to be returning stale data!

Seems to be working fine right now on my current working version. I just tested as follows:

Launched PCD
Renamed a video
"Scan Library Files" in Plex
Waited for ~60 seconds until PCD did it's next check

PCD correctly saw the changed directory and scanned it.
That said - I've been doing some fairly extensive database changes on my current working version, so it's possible I already accidentally fixed a bug that may have been causing it. You could grab the "in-progress" branch if you'd like to see if it's helped before the next release.

Yes, my Plex DB also has the shm/wal files. The Plex DB is configured in "write ahead log" mode (WAL), which I believe is a persistent database setting, and should be detected by connecting applications. That said - I'll change my connection string to explicitly use the WAL journal mode to be safe.
I suspect what may have solved it was properly closing query result connections. In researching some of the database locking issues, I found that apparently result connections must be explicitly closed, which I didn't realize before. It's possible that the unclosed previous results were interfering with subsequent queries.

Fixed by #34


Update for service steps. - [closed]

In GitLab by @liyanq528 on Nov 30, 2017, 01:51
Merges dev-refactor-service-ui -> dev-refactor-service-config

In GitLab by @wknet123 on Nov 13, 2019, 10:12
the build is FAILED console log

In GitLab by @wknet123 on Nov 13, 2019, 10:12
closed


How to turn off loading of the original manga title?

How can I prevent the program from loading the original title of the manga in Japanese? I don't need it.

Update is in version 1.4.11


daemon: Allow to enable PCAP recorder in non-lb mode

Previously, the PCAP recorder [1] was enabled only when running the
lb-only mode. However, there was an ask from users, who are running KPR
in the XDP mode, to have means to observe the LB traffic (tcpdump
cannot be used for XDP progs).
Why we didn't allow it before? Our main concern was potential verifier
complexity issues. But considering that the opt is disabled by default,
it's up to a user to take the potential risk.
Tested manually on the 5.16 kernel with the following cmds:
./daemon/cilium-agent  --debug=true --enable-ipv4=true
--enable-ipv6=false --disable-envoy-version-check=true
--tunnel=disabled --k8s-kubeconfig-path=/home/vagrant/.kube/config
--kube-proxy-replacement=strict --native-routing-cidr=<IP_ADDRESS>/16
--enable-ipv4-masquerade=true --auto-direct-node-routes=true
--enable-hubble=true --enable-recorder=true --bpf-lb-acceleration=native
--bpf-lb-acceleration=testing-only

# create nginx pod and expose it via NodePort service

hubble record --server=unix:///var/run/cilium/hubble.sock "<IP_ADDRESS>/0
0 <IP_ADDRESS>/32 31894 TCP"

# access the svc from outside

2022-01-24T10:25:03Z Status: 14 packets (1106 bytes) written

[1]: https://cilium.io/blog/2021/05/20/cilium-110#pcap

No need to run the full CI.


Fix load errors

Fixes load errors by adding a predefined api call as standard value for the textInput.
Do you like this idea?

Ready for next review. Added a button, deleted some unused code and added a variable to store a boilerplate URL, which makes it easier to test the app.


[Bug] Turning on and off automatic updates makes Paddy stop working

Bug report
Expected behavior:
When turning on and off the automatic updates, I'd expect the plugin to work when turning it back on.
Actual behavior:
At some point (after turning on and off a view times), the plugin isn't working even though automatic updates are on. I need to quit Sketch to make it work again.
Steps to reproduce:
Turn automatic updates on and off a bunch of times (let some time pass in between, not sure exactly when this breaks).

Nevermind it was my mistake this time (last time it was actually broken). I'll reopen if it happens again.


Does not work with a gitignored .classpath

I have .classpath in my gitignore and generate it for each project I work on. This makes autocomplete-java not do anything at all.
I have tracked the issue to this offending line which uses atom.workspace.scan. This doesn't match ignored files. This was introduced in f6947d96f26314425ec680013d38fdcf78172a5a.
Taking my .classpath out of .gitignore and everything refreshes as expected.
Is there a reason for using atom.workspace.scan ?

I do have this problem too, I would like to maintain configuration files out of versioning, not everyone uses atom here.

I actually created my own package for autocomplete. It's not "done" (is it ever?), but  use it daily.
Check it out: https://atom.io/packages/autocomplete-java-minus


prometheus_target_reload_length_seconds metric is given inconsistent labels

The description of this metric is "Actual interval to reload the scrape pool with a given configuration."
It is given observations here: with a label interval, a duration like "30s".
However the interval can be overridden for different targets, and that loop is iterating over a map, so the value of interval when it arrives at the Observe is unpredictable.
This bug was introduced by #10916, which was fixing a worse bug that the override was lost.
The simplest fix seems to be to use the default interval for the job, ignoring overrides.
I don't know why interval was used as a label for this metric - job_name would seem more useful to me.  But that would be a breaking change.

This is not actually a bug, just hard-to-read code.  I added a test in #13914.


[Design]Fail on Browser warnings

For now I just want to see what this does x-plat.

We'll take puppeteer before this, so closing.


chore(main): release faro-shop 0.33.1

:robot: I have created a release beep boop
0.33.1 (2024-07-24)
Bug Fixes

make caddy answer the correct hostname (#636) (c863843)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

faro-shop-0.33.1
:sunflower:


AddUTF8Font panics with file not found

If the file cannot be found, AddUTF8Font panics instead of returning an error:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x525b45]

goroutine 1 [running]:
github.com/jung-kurt/gofpdf.(*Fpdf).addFont(0xc0000e2000, 0x5a46eb, 0x4, 0x0, 0x0, 0xc00007e060, 0x53, 0x1)
	/home/ajstarks/gowork/src/github.com/jung-kurt/gofpdf/fpdf.go:1603 +0x4c5
github.com/jung-kurt/gofpdf.(*Fpdf).AddUTF8Font(...)
	/home/ajstarks/gowork/src/github.com/jung-kurt/gofpdf/fpdf.go:1585
main.main()
	/home/ajstarks/work/utftest.go:26 +0x260
exit status 2

Thanks for the report, @ajstarks. I'll look into it.

Should be fixed with 641cda87ac3cf98cf58400cb3ce7513b6cc74295. Please reopen if this is still a problem.

confirmed fixed.  thanks.


TestPusherErrClosedRetry test faild

Description
https://github.com/containerd/containerd/actions/runs/3178917535/jobs/5180917457#step:13:237
=== Failed
=== FAIL: remotes/docker TestPusherErrClosedRetry (unknown)
panic: close of closed channel

goroutine 132 [running]:
github.com/containerd/containerd/remotes/docker.(*pushWriter).Close(0xc0000639e0)
	D:/a/containerd/containerd/src/github.com/containerd/containerd/remotes/docker/pusher.go:407 +0xb6
github.com/containerd/containerd/remotes/docker.dockerPusher.push.func2()
	D:/a/containerd/containerd/src/github.com/containerd/containerd/remotes/docker/pusher.go:290 +0x433
created by github.com/containerd/containerd/remotes/docker.dockerPusher.push
	D:/a/containerd/containerd/src/github.com/containerd/containerd/remotes/docker/pusher.go:276 +0x2d1e

DONE 1121 tests, 9 skipped, 1 failure in 498.075s

Steps to reproduce the issue

Describe the results you received and expected
No failed.
What version of containerd are you using?
main
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response

/assign

@lengrongfu Which platform did this test fail?, and how can I reproduce this?

@lengrongfu Which platform did this test fail?, and how can I reproduce this?

This github action is in the windows platform flow error:   https://github.com/containerd/containerd/actions/runs/3178917535/jobs/5180917457#step:13:237
I am my macos debug TestPusherErrClosedRetry func  reproduce this issues. reproduce step:

use debug run TestPusherErrClosedRetry.
breakpoint at func (pw *pushWriter) Close() error{} +411, When running to a breakpoint, wait a few seconds before running the next step，this issue can be reproduced.


Update, Cleaning and levels compatibility

Some cleaning of some functions
Implement a workaround for levels compatibility (Some testing pending)
Fix of pf2e sightlayer constructor
Implement debouncing on pf2e
Implement correctly socketlib

Ty for the hard work man.


Use SQLite for the standard docker compose setup

The docker-compose.yml that's used by default when running docker compose up should provide the simplest DJ setup possible to allow for easier demos and core development. So instead of including a postgres container and storing the metadata there, it should rely on the default behavior of DJ to use SQLite if no INDEX is set in the .env file.
A postgres backed DJ server should still be optionally available using a docker compose override.
Start a DJ server that's backed by SQLite
docker compose up

Start a DJ server that's backed by Postgres
docker compose -f docker-compose.yml -f docker-compose.postgres.yml up

Implemented in #226.


Separate annotation per enum value

Following up on https://github.com/swagger-api/swagger-core/issues/1012 I'd like a service to return an Enum type and then document enum values by providing a separate annotation per value. I expect Swagger to aggregate these annotations so that all values and their descriptions are listed in the resulting documentation.

+1. (Yes, github should have a voting button.)

@cowwoc @bgrant0607 how would you propose this is represented in the description?  For example, the current enum system uses primitive arrays:
myValue:
  properties:
    statusFields:
       type: string
       enum:
          - 1
          - 2

I suppose these could be objects, but we'll have to be prescriptive of the structure.

Each enum entry could be an object with name and documentation properties (or however you want to call it).

+1

@fehguy @cowwoc Or there could be a separate enumDescriptions array (keeping backwards compatibility) where the amount of descriptions should match the amount of enums. Perhaps it's not very pretty but it would be a way forward.

I would love to be able to use an object/hash for enums. For example I've got an app with credit card transactions that use rather cryptic values for the CVV checks. Here's what I'm forced to do to document it:
cvv_check:
  type: string
  title: CVV check
  description: |
    When processed, result from checking the CVV/CVC value on the transaction.

    * `D` - Suspicious transaction
    * `I` - Failed data validation check
    * `M` - Match
    * `N` - No Match
    * `P` - Not Processed
    * `S` - Should have been present
    * `U` - Issuer unable to process request
    * `X` - Card does not support verification
  enum:
    - D
    - I
    - M
    - N
    - P
    - S
    - U
    - X
  maxLength: 1

It would be much nicer to just have:
cvv_check:
  type: string
  title: CVV check
  description: When processed, result from checking the CVV/CVC value on the transaction.
  enum:
    D: Suspicious transaction
    I: Failed data validation check
    M: Match
    N: No Match
    P: Not Processed
    S: Should have been present
    U: Issuer unable to process request
    X: Card does not support verification
  maxLength: 1

Clients could either just use the keys and ignore the values, or show both in a <select> HTML element.

+1

I think there's a similar proposal for this for draft 5 of JSON Schema, will look for it.

Parent issue: #579

+1

Currently the enum feature allows any kind of JSON thing in it – objects, arrays, strings, numbers, even mixed (though I'm not sure if things other than strings are supported by various toolings).
With the map variant proposed by @drewish we would be limited to strings. (This is not necessarily a problem for most cases, I just wanted to point it out.)
A more flexible version (though more verbose) would be to have an array of value/description pairs:
cvv_check:
  type: string
  title: CVV check
  description: When processed, result from checking the CVV/CVC value on the transaction.
  enum:
    - value: D
     description: Suspicious transaction
    - value: I
      description: Failed data validation check
    - value: M:
      description: Match
    - value: N
      description: No Match
    - value: P
      description: Not Processed
    - value: S
      description: Should have been present
    - value: U
      description: Issuer unable to process request
    - value: X
      description: Card does not support verification

I guess this corresponds to what @cowwoc proposed.

Tackling PR: #741

I would be interested in this feature: I know it's not supported, are there any plans to introduce this in the future?

The recommended way in JSON Schema to do this (using draft-06's const, but one-element enums work in OpenAPI and are effectively constants) is:
cvv_check:
  type: string
  title: CVV check
  description: When processed, result from checking the CVV/CVC value on the transaction.
  oneOf:
    - const: D
      description: Suspicious transaction
    - const: I
      description: Failed data validation check
    - const: M:
      description: Match
    - const: N
      description: No Match
    - const: P
      description: Not Processed
    - const: S
      description: Should have been present
    - const: U
      description: Issuer unable to process request
    - const: X
      description: Card does not support verification

Thanks! This seems clean, but unfortunately seems also not supported in swagger-codegen 2.2.3 (I just tried) :(

I came here looking to see how I could do this - I wanted to be able to programmatically get the labels for options and thus build a <select>. I just wanted to weigh in.
The concern for maintaining backward-compatibility for enum is legitimate and it doesn't look like we've used options yet so that could be a more formal way of specifying this? Essentially it has the exact same semantics as an HTML select box, inasmuch as the select box doesn't know or care how the actual values are to be treated. In HTML, all option values are strings, and are returned as such, and the application semantics determine whether to convert it to an integer or not.
Finger-in-the-air feeling is that oneOf could be difficult to optimise for this situation, and enumDescriptions just sounds clumsy (without meaning offence). Plus, options recalls the semantics of HTML, which this closely resembles. I definitely agree that a new property that implies these semantics is a good idea.

@webron, @handrews – Can you please consider this improvement once again, for the version 3.1.0? I believe that the suggested solution is more a workaround and might postpone proper adoption and implementation of enums in the OpenAPI format.
According to https://json-schema.org/understanding-json-schema/reference/generic.html#enumerated-values, the enum keyword is the one that "is used to restrict a value to a fixed set of values". Thus, if somebody wants to find all the enums in the API (manually or programmatically), currently they can just search for enum and get all the enum instances.
If we encourage people to use a new construction like this for enums:
  oneOf:
    - const: D
      description: Suspicious transaction

it will become problematic to find all enums and also to support in relevant tooling.
I personally really like the idea of the following format, but not sure what's your reasoning against it:
enum:
    - value: D
      description: Suspicious transaction

In general, this issue seems to be super-important for proper adoption of the OpenAPI format by the documentation communities. Currently, we have to struggle a lot to keep the description in sync with the actual lists of enum values, and see a lot of problems caused by that (e.g. some values are missing, some exposed by mistake, some have spelling errors or mistakenly follow PascalCase instead of camelCase).
Please offer a good solution to this problem in OpenAPI 3.1. This new version is already a breakthrough, but maybe we can make it even better? :-)

@a-akimov Since we don't want to have differences between JSON Schema and "OAS flavoured JSON Schema" again, this looks like a an issue that should be discussed in the JSON Schema project. The advantage in sticking to standard JSON Schema is that we can use standard JSON Schema validators when building tools.

@OAI/tsc  (or at least some subset of it) agrees with @ahx assessment.

As suggested by @ahx and @OAI/tsc (some subset of it), I've initiated this discussion with JSON Schema folks. If anyone is interested in contributing, please leave your comments in https://github.com/json-schema-org/json-schema-spec/issues/1062.

As suggested by @ahx and @OAI/tsc (some subset of it), I've initiated this discussion with JSON Schema folks. If anyone is interested in contributing, please leave your comments in https://github.com/json-schema-org/json-schema-spec/issues/1062.

As suggested by @ahx and @OAI/tsc (some subset of it), I've initiated this discussion with JSON Schema folks. If anyone is interested in contributing, please leave your comments in json-schema-org/json-schema-spec#1062.

It doesn't appear to have got any further though. This is really important for documentation purposes (as you all know).

Hi all, could you please provide an example of an enum with a label if it is already possible in OAS?

+1

@pedy711 @jearton the solution for OAS 3.1 is as detailed here: https://github.com/OAI/OpenAPI-Specification/issues/348#issuecomment-336194030

@pedy711 @jearton the solution for OAS 3.1 is as detailed here: #348 (comment)

But Swagger-UI doesn't support OAS3.1 yet.

This is the equivalent in OAS 3.0 (although of course, if tooling vendors don't support it, or OAS 3.1, that's something you have to raise on their repos as we cannot do anything about it from here - the Swagger UI issue for OAS 3.1 support is swagger-api/swagger-ui#5891).
Anyway, in OAS 3.0 you can just use 1-element enums in place of const:
cvv_check:
  type: string
  title: CVV check
  description: When processed, result from checking the CVV/CVC value on the transaction.
  oneOf:
    - enum: [D]
      description: Suspicious transaction
    - enum: [I]
      description: Failed data validation check
    - enum: [M]
      description: Match
    - enum: [N]
      description: No Match
    - enum: [P]
      description: Not Processed
    - enum: [S]
      description: Should have been present
    - enum: [U]
      description: Issuer unable to process request
    - enum: [X]
      description: Card does not support verification

This is a real problem, at Redocly we have this extension x-enumDescriptions to try to help the situation, but it's not great since it only supports simple types - sharing it as an example of usage "in the wild"  https://redocly.com/docs/api-reference-docs/specification-extensions/x-enum-descriptions/

@lornajane it's definitely a real problem, but should we hold onto this or declare it to be a JSON Schema issue and not one that we will address?  We could consider adding another JSON Schema extension keyword to 3.2, but that just starts widening the gap with standard JSON Schema again.

I vote we hold onto this for now, it's not obvious what the best answer is, but I think it would be a good addition to have at some point - for docs tools particularly where the extra context can really help users.

And once we know the answer this is a good place for pointing to it.

@ralfhandl I've tagged this and other issues with schema-object so that we can get a general ruling on how much, if any, schema work we want to keep in this project.  I've put it on the agenda for this week's TDC call.


Proxy stops working while on Editor

Hi,
I've come to find that every time I edit a request/response or form with Vim, while on the editor, the proxy stops working until I exit. I ask if that's intended and if so, would it be in scope to add multi threaded capabilities while editing.
Thank You.

Hi @mariolima,
That's not really intentional, but nontrivial to fix currently I'm afraid. PRs are welcome!

Now we have an asyncio main loop, this is easier to fix. We can spawn the editor/pager using the asyncio subprocess mechanism, and then await the result.


cliconfig: Do not rely on platform dependent code

The 	github.com/docker/docker/pkg/system import was only being used to call to os.MkdirAll so it seems unnecessary to pull in all of system/* when this is all that is necessary.
Additionally, this was causing problems with attempting to vendor cliconfig using Godeps, as it would only vendor the necessary files based on the platform it's running on, this was seen when vendoring the package on a Mac, and then attempting to build on a Linux box due to github.com/docker/docker/pkg/units/ not being properly included vendored.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "patch-1" git@github.com:ecnahc515/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

I would assume that on windows we need the special logic in pkg/system/filesys_windows.go.
@jhowardmsft correct?

Yes, we need this for windows support. Sorry.

afaik, the filesys_windows.go makes sure this works with Volumes, but I don't think that's a requirement for docker config generally, so I don't think it should make a difference. Perhaps the things in filesys_* can just check runtime.GOOS and then call to os.Mkdir? In any case, the fact that these are in the system package is the real issue (regarding vendoring). Even if we just copied these files to their own package it would fix my problem.

@swernli

oh maybe it's not needed afterall...
https://github.com/docker/docker/commit/52f4d09ffb376ffaa6677cb1e0413c6a97f53f24 is the commit that added this.

unless someone can come up with a reason why we need that \Volume logi for docker config, I'm SGTM on this one.

I whipped out my sed/goimports for this: https://github.com/docker/docker/compare/master...ecnahc515:cliconfig_fix if the current PR is unsatisfactory.

@duglin I can't think of a reason. Maybe @swernli has a different opinion, but I'm pretty sure we don't.

You do know that on my "long and growing list of things to do" was a universal replacement of os.mkdirall with system.mkdirall, and a golint or other type of check that it's applied. Thanks for making me cross one thing off that list, finally ;)

The spot fix seems fine to me.  If this is something that might cause problems for other vendored packages that rely on pkg/system and @ecnahc515 larger fix above (https://github.com/docker/docker/compare/master...ecnahc515:cliconfig_fix) would eliminate that, then we can also do that.
The one place we know volume paths get used is for the mounted read/write layer for the container.  Other than that, they are unlikely to be used, so I agree that cliconfig likely doesn't need the modified version.

Ping @jhowardmsft @duglin @swernli Can we move forward on this?

Yup, LGTM.

yup sorry got distracted.
LGTM

ping @tiborvass @jfrazelle

ping @tiborvass @jfrazelle

LGTM


Merge SpringTypeReferenceProvider into SprintTypeReference

The PR also includes a few more renames and also adds a prototype for FindTypes.

@Laurens-W I renamed TypeReference.TypeReferenceProvider to TypeReference.Provider and the same for SpringTypeReferenceProvider. What do you think?

@Laurens-W I renamed TypeReference.TypeReferenceProvider to TypeReference.Provider and the same for SpringTypeReferenceProvider. What do you think?

Makes sense, no need to duplicate the name since it's an inner now


Docs: Add sphinx-click to the documentation.

Summary
Sphinx has a contrib plugin for click. It would be nice to auto-doc it.
I have used it in my own app recently - example:

https://sphinx-click.readthedocs.io/en/latest/

poetry add -G docs sphinx-click
Add sphinx-click to the conf.py
Use it to document our CLI automatically

Reference:
https://discord.com/channels/919193495116337154/1061269663750836234/1095917360591949904

Would we still be able to easily document the env variable alternatives for the CLI flags with this?


Chapter 6: Cannot seed database

Hi Team,
I trust this message finds you in good spirits. 🌟 Your commitment to the project is truly appreciated, and we welcome your active involvement.
We've identified an issue post-seeding the database. Although the storage isn't empty, there are discrepancies we need your expertise to address:

Description: After seeding the database, non-empty storage is observed.
However, when checking the tables list, it appears to be empty, and the connection status remains stuck at Connecting:

This discrepancy is hindering the expected behavior of the system. We would greatly appreciate your insights and contributions to resolve this issue.
Details:
Issue Title: Database Seeding Discrepancy
Description: Non-empty storage, yet tables list is empty, and connection status is Connecting.
Thank you for your ongoing support!

Actually issue is reproducing on macOS, while on windows I can see Connected status in Storage -> Dashobard -> Data

Thank you for reporting this @daweed311, are you still seeing this issue in the Vercel dashboard?

Yes, only on macOS device

I am experiencing the same issue on Windows in addition to the missing_connecting_string error after running the seeding command.
An error occurred while attempting to seed the database: VercelPostgresError: VercelPostgresError - 'missing_connection_string': You did not supply a 'connectionString' and no 'POSTGRES_URL' env var was found.

Hi !
Just rename .env.local to .env worked for me

$ npm run seed

seed
node -r dotenv/config ./scripts/seed.js

node:events:492
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND ep-cool-butterfly-22386990-pooler.ap-southeast-1.postgres.vercel-storage.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)
Emitted 'error' event on WebSocket instance at:
at emitErrorAndClose (D:\projects\nextjs-dashboard\node_modules\ws\lib\websocket.js:1016:13)
at ClientRequest. (D:\projects\nextjs-dashboard\node_modules\ws\lib\websocket.js:864:5)
at ClientRequest.emit (node:events:514:28)
at TLSSocket.socketErrorListener (node:_http_client:501:9)
at TLSSocket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'ep-cool-butterfly-22386990-pooler.ap-southeast-1.postgres.vercel-storage.com'
}
Node.js v18.17.0

Hi !
Just rename .env.local to .env worked for me
I did. But not working for me

Having similiar issue (please note this issue is not the connection string issue, slightly different). This symptom has been sited 3 times now

https://github.com/vercel/next-learn/issues/476
https://github.com/vercel/next-learn/issues/484#issuecomment-1849731025

Solutions that will not work for me:
-adding POSTGRES_URL (it is specified as can be seen in stacktrace below)

Using .env.development.local OR a .env.local file suggestion. These do NOT exist, I only had .env.example

npm run seed

> seed
> node -r dotenv/config ./scripts/seed.js

node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: getaddrinfo ENOTFOUND ep-icy-cell-a47ky353-pooler.us-east-1.postgres.vercel-storage.com
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (C:\work\projects\nextjs-dashboard\node_modules\ws\lib\websocket.js:1016:13)
    at ClientRequest.<anonymous> (C:\work\projects\nextjs-dashboard\node_modules\ws\lib\websocket.js:864:5)
    at ClientRequest.emit (node:events:518:28)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:518:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'ep-icy-cell-a47ky353-pooler.us-east-1.postgres.vercel-storage.com'
}

Node.js v20.11.0

Ideas?

I'm facing the same issue on a Mac M1 with postgresql installed using brew and POSTGRES_URL properly set (ie I can connect using psql with the same url)

attached a version of data.ts that is an avoidance of the database (and the database issue). Might be useful until someone solves what this problem is.
data.txt

Hi !
Just rename .env.local to .env worked for me

Thanks , it worked for me too
I was stuck for  atleast 1 hour coz of this problem 🙃

Hi !
Just rename .env.local to .env worked for me

Thanks , it worked for me too I was stuck for atleast 1 hour coz of this problem 🙃

I have no .env.local, I had .env.example, which I renamed to .env (as per the tutorial). This did NOT fix it.

Hi !
Just rename .env.local to .env worked for me

Thanks , it worked for me too I was stuck for atleast 1 hour coz of this problem 🙃

I have no .env.local, I had .env.example, which I renamed to .env (as per the tutorial). This did NOT fix it.

share the screeshot if you can

Hi !
Just rename .env.local to .env worked for me

Thanks , it worked for me too I was stuck for atleast 1 hour coz of this problem 🙃

I have no .env.local, I had .env.example, which I renamed to .env (as per the tutorial). This did NOT fix it.

share the screeshot if you can

See https://github.com/vercel/next-learn/issues/484#issuecomment-1920045791 for details

@daweed311  did you find any solution for this?

no just used static file (to avoid db usage)  i attached to issue.

@daweed311 did you find any solution for this?

Unfortunately, no.
I completed this tutorial on a Windows device.

The sql is all wrong.
const users = [
{
id: '410544b2-4001-4271-9855-fec4b6a6442a',
name: 'User',
email<EMAIL_ADDRESS>password: '123456',
},
];
Attempting to insert this data leads to
An error occurred while attempting to seed the database: error: trailing junk after numeric literal at or near "410544b"
The database tables are not being set up correctly

Yes, @openSourceBugs comment is correct.
You need to take 2 steps to fix it:

Use double quotations in the placeholder-daja.js JSON values (as shown below), because the Template Literals (backticks) strings on the seed.js queries are being rendered without single quotes in the values, so they fail. I've attached the fixed JS file, and a snippet below if you wanna do it by hand.

const users = [
  {
    id: "'410544b2-4001-4271-9855-fec4b6a6442a'",
    name: "'User'",
    email<EMAIL_ADDRESS>    password: "'123456'",
  },
];

hashedPassword is a calculated value (doesn't come from the placeholders) so it needs to be fixed in situ: \'${hashedPassword}\' (by adding single quotation marks on seed.js)

Optional:
If you are trying to run the tutorial without connecting to Vercel's cloud, and the @vercel/postgres database client is giving you problems, you can replace it completely with node-postgres.
Just install it with npm install node-postgres then import it in replacement of Vercel's:
//const { db } = require('@vercel/postgres');
const { Client } = require('pg');
const client = new Client({
    user: 'postgres',
    password: 'PASSWORD',
    host: 'localhost',
    port: '5432',
    database: 'nextjs-dashboard-postgres',
});

If you don't set the Config dictionary, it will take the environment variables, just like Vercel's.
And replace all the client.sql with client.query(...) in seed.js like this:
    await client.query(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp"`);
    // Create the "users" table if it doesn't exist
    const createTable = await client.query(`
      CREATE TABLE IF NOT EXISTS users (
        id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
        name VARCHAR(255) NOT NULL,
        email TEXT NOT NULL UNIQUE,
        password TEXT NOT NULL
      );
    `);

And finally, fix the main function:
async function main() {
  await client.connect();

  await seedUsers(client);
  await seedCustomers(client);
  await seedInvoices(client);
  await seedRevenue(client);

  await client.end();
}

These changes made the trick for me.
Cheers!
placeholder-data.js.txt

The sql is all wrong.
const users = [ { id: '410544b2-4001-4271-9855-fec4b6a6442a', name: 'User', email<EMAIL_ADDRESS>password: '123456', }, ];
Attempting to insert this data leads to An error occurred while attempting to seed the database: error: trailing junk after numeric literal at or near "410544b"
So basically, the placeholder-js data needs to be sanitized and not evalulate to something else. Postgres is thinking that subtraction is being done due to absence of correct quotes.

Yes, @openSourceBugs comment is correct.
You need to take 2 steps to fix it:

Use double quotations in the placeholder-daja.js JSON values (as shown below), because the Template Literals (backticks) strings on the seed.js queries are being rendered without single quotes in the values, so they fail. I've attached the fixed JS file, and a snippet below if you wanna do it by hand.

const users = [
  {
    id: "'410544b2-4001-4271-9855-fec4b6a6442a'",
    name: "'User'",
    email<EMAIL_ADDRESS>    password: "'123456'",
  },
];

hashedPassword is a calculated value (doesn't come from the placeholders) so it needs to be fixed in situ: \'${hashedPassword}\' (by adding single quotation marks on seed.js)

Optional:
If you are trying to run the tutorial without connecting to Vercel's cloud, and the @vercel/postgres database client is giving you problems, you can replace it completely with node-postgres.
Just install it with npm install node-postgres then import it in replacement of Vercel's:
//const { db } = require('@vercel/postgres');
const { Client } = require('pg');
const client = new Client({
    user: 'postgres',
    password: 'PASSWORD',
    host: 'localhost',
    port: '5432',
    database: 'nextjs-dashboard-postgres',
});

If you don't set the Config dictionary, it will take the environment variables, just like Vercel's.
And replace all the client.sql with client.query(...) in seed.js like this:
    await client.query(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp"`);
    // Create the "users" table if it doesn't exist
    const createTable = await client.query(`
      CREATE TABLE IF NOT EXISTS users (
        id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
        name VARCHAR(255) NOT NULL,
        email TEXT NOT NULL UNIQUE,
        password TEXT NOT NULL
      );
    `);

And finally, fix the main function:
async function main() {
  await client.connect();

  await seedUsers(client);
  await seedCustomers(client);
  await seedInvoices(client);
  await seedRevenue(client);

  await client.end();
}

These changes made the trick for me.
Cheers!
placeholder-data.js.txt

The sql is all wrong.
const users = [ { id: '410544b2-4001-4271-9855-fec4b6a6442a', name: 'User', email<EMAIL_ADDRESS>password: '123456', }, ];
Attempting to insert this data leads to An error occurred while attempting to seed the database: error: trailing junk after numeric literal at or near "410544b"
So basically, the placeholder-js data needs to be sanitized and not evalulate to something else. Postgres is thinking that subtraction is being done due to absence of correct quotes.

Jesus, thank you man, underrated comment

Comment ajoutées des données à la base de données vercel/postgres lors d'une sumission de formulaire

@daweed311 hey there! I have solved this by changing the node version according to package.json.

file name Edit  .env.example -> .env

still this isn't working on MacOs

Hi !
Just rename .env.local to .env worked for me

It's worked for me! Thanks.

@daweed311  just you need to update the node version
It worked for me

I am not able to reproduce this. Please open a new issue if you are still having trouble here. Thank you!
We are also making the seeding easier in this PR by allowing you to hit a URL in the browser: https://github.com/vercel/next-learn/pull/764

Months later, this is still an issue on MacOS.

Months later, this is still an issue on MacOS.

see their learning chapter 6 again. https://nextjs.org/learn/dashboard-app/setting-up-your-database
Actually they keep on updating


dapphub libraries are not found, but compile fine

Similar to #70
This is the tree for https://github.com/dapphub/ds-thing
tree -d
.
├── lib
│   ├── ds-auth
│   │   ├── lib
│   │   │   └── ds-test
│   │   │       └── src
│   │   └── src
│   ├── ds-math
│   │   ├── lib
│   │   │   └── ds-test
│   │   │       └── src
│   │   └── src
│   ├── ds-note
│   │   ├── lib
│   │   │   └── ds-test
│   │   │       └── src
│   │   └── src
│   └── ds-test
│       └── src
├── out
└── src

It looks like it'd be correct for finding the files. For example under src/thing.sol there are three imports:
import 'ds-auth/auth.sol';
import 'ds-note/note.sol';
import 'ds-math/math.sol';

These libraires are under lib/ds-auth/src/auth.sol etc...

@nanexcool  you will need to add the path for "lib" in the dependencies module
and the contracts in "src". The original library was dappsys and that was the basis, so it has to work :)
I will post a sample ASAP of the settings.

"solidity.packageDefaultDependenciesContractsDirectory": "src",
"solidity.packageDefaultDependenciesDirectory": "lib",

And the compilation using vscode

Thank you very much, that worked! I got confused because in the description I saw:
"Libraries will have the same name as their folder they are included. Solidity files will be in the 'src' folder. Libraries will be included in the 'lib' folder."
Thanks again!


Transform for blackboxing memories - rebased

Replaces #249
I merged a few commits together and changed messages to leave a blank line after the first line.

Looks like it's ok? At least +1,137 −44 is the same?
Re: Jenkins -- I'm not super sure how it works. I assume it just checks that default rocket FIRRTL passes?
I can separately run assembly tests on this version now that master's been merged (rather than merging master locally).

I think Jenkins runs Chisel3, Firrtl, and rocket chips tests (at least for default configurations). I hope we can add other configurations and/or BOOM, etc. in the future.
If you can run the rocket-chip tests and confirm it works I can go ahead and merge (which will actually trigger jenkins anyway because it always runs when master changes)

I'm running with my transform turned on, and at least it's already gotten through the first couple of tests. It'll take some time to get through all of them... Jenkins won't catch when my transform is on, but at least it'll prove that my transform didn't break anything when it's not used...

@ben-k @mwachs5 -- this should be more or less the same as versions you guys have tried in the past, save for lots of code style + restructuring tweaks. Can you guys double check that the versions of Rocket you guys are using compile + simulate?
I've run with the generic replseqmem branch, but if you have anything fancier to try this on before this initial version gets merged, that'd be a good sanity check.

I've been keeping up to date with your branch and tried with the latest as of Sunday, but I can try with this exact version in the morning. Can you update the replseqmem rocket -chip branch (or I can if it's simple)

@jackkoenig the assembly tests I ran looked OK.
@mwachs5 I bumped rocket-chip replseqmem


Cannot click into "Core Setup" in latest update 3.1.7

Going into Configure Setting I cannot click the "Core Setup" button. I disabled all other modules just to double check there wasn't a conflict.

@MrPrimate already tried that still doesn't open.
Also some console logs if this helps when clicking the button
Secrets.js:81          POST http://localhost:3000/proxy/auth net::ERR_CONNECTION_REFUSED
(anonymous) @ Secrets.js:81
checkCobalt @ Secrets.js:80
getData @ Settings.js:325
_render @ foundry.js:5067
_render @ foundry.js:5780
render @ foundry.js:5026
_onClickSubmenu @ foundry.js:71156
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
logger.js:76 DDB Importer | ERR > Cobalt cookie check error
log @ logger.js:76
error @ logger.js:96
(anonymous) @ Secrets.js:92
Promise.catch (async)
(anonymous) @ Secrets.js:91
checkCobalt @ Secrets.js:80
getData @ Settings.js:325
_render @ foundry.js:5067
_render @ foundry.js:5780
render @ foundry.js:5026
_onClickSubmenu @ foundry.js:71156
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
logger.js:76 DDB Importer | ERR > TypeError: Failed to fetch
log @ logger.js:76
error @ logger.js:96
(anonymous) @ Secrets.js:93
Promise.catch (async)
(anonymous) @ Secrets.js:91
checkCobalt @ Secrets.js:80
getData @ Settings.js:325
_render @ foundry.js:5067
_render @ foundry.js:5780
render @ foundry.js:5026
_onClickSubmenu @ foundry.js:71156
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
logger.js:76 DDB Importer | ERR > TypeError: Failed to fetch
at http://localhost:30000/modules/ddb-importer/dist/main.js:19859:5
at new Promise ()
at checkCobalt (http://localhost:30000/modules/ddb-importer/dist/main.js:19858:10)
at DDBSetup.getData (http://localhost:30000/modules/ddb-importer/dist/main.js:32457:32)
at DDBSetup._render (http://localhost:30000/scripts/foundry.js:5067:29)
at DDBSetup._render (http://localhost:30000/scripts/foundry.js:5780:17)
at DDBSetup.render (http://localhost:30000/scripts/foundry.js:5026:10)
at SettingsConfig._onClickSubmenu (http://localhost:30000/scripts/foundry.js:71156:16)
at HTMLButtonElement.dispatch (http://localhost:30000/scripts/jquery.min.js:2:43064)
at y.handle (http://localhost:30000/scripts/jquery.min.js:2:41048)
log @ logger.js:76
error @ logger.js:96
(anonymous) @ Secrets.js:94
Promise.catch (async)
(anonymous) @ Secrets.js:91
checkCobalt @ Secrets.js:80
getData @ Settings.js:325
_render @ foundry.js:5067
_render @ foundry.js:5780
render @ foundry.js:5026
_onClickSubmenu @ foundry.js:71156
dispatch @ jquery.min.js:2
y.handle @ jquery.min.js:2
foundry.js:747 TypeError: Failed to fetch
at Secrets.js:81:1
at new Promise ()
at checkCobalt (Secrets.js:80:1)
at DDBSetup.getData (Settings.js:325:32)
at DDBSetup._render (foundry.js:5067:29)
at DDBSetup._render (foundry.js:5780:17)
at DDBSetup.render (foundry.js:5026:10)
at SettingsConfig._onClickSubmenu (foundry.js:71156:16)
at HTMLButtonElement.dispatch (jquery.min.js:2:43064)
at y.handle (jquery.min.js:2:41048)

@MrPrimate ok not sure why it happened cannot seem to recreate this now but I clicked "reset DBB Importer Settings" and then i was able to click the "Core setup" button. Also after this I had to re-attach the Compendiums to the right ones. From what I can tell this all happened after the lastest v10 b286 core update and updating your module to the latest 3.1.7

This looks like your running a local ddb-proxy. Please make sure that is running correctly, or switch back to mine, as mentioned in the ddb-proxy readme, I don't provide support for that.


[Bug]  Server does not properly shut down when Mod is enabled

Checks

[X] I confirm that I have searched for existing issues before reporting to avoid duplicate reporting.
[X] I confirm that this problem still exists with only MCDiscordChat and Fabric API installed.
[X] I confirm that I followed the MCDC Docs and read the Changelog, but this problem still exists.

Java Version
17
Minecraft Version
1.19
MCDiscordChat Version
2.0.0 Alpha 3
Description
Server does not properly shut down when Mod is loaded.
says all chunks and dimensions are saved, but it never stops

)
To Reproduce
Setup server start.
run for 30 seconds no one logs in.
The discord bot says server started.
shut down MC server.
hangs in this state.
Log
[Pterodactyl Daemon]: Updating process configuration files...
[Pterodactyl Daemon]: Ensuring file permissions are set correctly, this could take a few seconds...
container@pterodactyl~ Server marked as starting...
[Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete...
[Pterodactyl Daemon]: Finished pulling Docker container image
container@pterodactyl~ java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
container@pterodactyl~ java -Xms6G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs/ -Daikars.new.flags=true -Dterminal.jline=false -Dterminal.ansi=true -jar fabric-server-launch.jar nogui
Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture
[13:03:11] [main/INFO]: Loading Minecraft 1.19 with Fabric Loader 0.14.7
[13:03:11] [main/INFO]: Loading 53 mods:
- com_fasterxml_jackson_core_jackson-annotations 2.13.3 via mcdiscordchat
- com_fasterxml_jackson_core_jackson-core 2.13.3 via mcdiscordchat
- com_fasterxml_jackson_core_jackson-databind 2.13.3 via mcdiscordchat
- com_google_code_gson_gson 2.9.0 via mcdiscordchat
- com_neovisionaries_nv-websocket-client 2.14 via mcdiscordchat
- com_squareup_okhttp3_okhttp 4.9.3 via mcdiscordchat
- com_squareup_okio_okio 2.10.0 via mcdiscordchat
- com_vdurmont_emoji-java 5.1.1 via mcdiscordchat
- fabric 0.56.0+1.19
- fabric-api-base 0.4.9+e62f51a3a9 via fabric
- fabric-api-lookup-api-v1 1.6.7+9ff28f40a9 via fabric
- fabric-biome-api-v1 9.0.13+b2a4a624a9 via fabric
- fabric-command-api-v1 1.2.5+f71b366fa9 via fabric
- fabric-command-api-v2 2.1.1+cda9839ba9 via fabric
- fabric-commands-v0 0.2.22+df3654b3a9 via fabric
- fabric-containers-v0 0.1.27+df3654b3a9 via fabric
- fabric-content-registries-v0 3.1.0+4a3ec384a9 via fabric
- fabric-convention-tags-v1 1.0.8+37622d24a9 via fabric
- fabric-crash-report-info-v1 0.2.3+bd0a0d4aa9 via fabric
- fabric-data-generation-api-v1 5.0.1+2a5b9210a9 via fabric
- fabric-dimensions-v1 2.1.27+72da3b3da9 via fabric
- fabric-entity-events-v1 1.4.16+9ff28f40a9 via fabric
- fabric-events-interaction-v0 0.4.26+9ff28f40a9 via fabric
- fabric-events-lifecycle-v0 0.2.25+df3654b3a9 via fabric
- fabric-game-rule-api-v1 1.0.19+18990361a9 via fabric
- fabric-item-api-v1 1.5.4+767db26ea9 via fabric
- fabric-item-groups-v0 0.3.23+9ff28f40a9 via fabric
- fabric-lifecycle-events-v1 2.1.0+33fbc738a9 via fabric
- fabric-loot-api-v2 1.0.1+9e7660c6a9 via fabric
- fabric-loot-tables-v1 1.1.1+9e7660c6a9 via fabric
- fabric-message-api-v1 1.0.1+513f4a59a9 via fabric
- fabric-mining-level-api-v1 2.1.8+33fbc738a9 via fabric
- fabric-networking-api-v1 1.0.27+7fe97409a9 via fabric
- fabric-networking-v0 0.3.14+df3654b3a9 via fabric
- fabric-object-builder-api-v1 4.0.5+9ff28f40a9 via fabric
- fabric-particles-v1 1.0.8+dc39553aa9 via fabric
- fabric-registry-sync-v0 0.9.16+92cf9a3ea9 via fabric
- fabric-rendering-data-attachment-v1 0.3.12+9ff28f40a9 via fabric
- fabric-rendering-fluids-v1 3.0.5+9ff28f40a9 via fabric
- fabric-resource-conditions-api-v1 2.0.9+e62f51a3a9 via fabric
- fabric-resource-loader-v0 0.5.3+9e7660c6a9 via fabric
- fabric-screen-handler-api-v1 1.2.6+9ff28f40a9 via fabric
- fabric-transfer-api-v1 2.0.9+e62f51a3a9 via fabric
- fabric-transitive-access-wideners-v1 1.1.1+9e7660c6a9 via fabric
- fabricloader 0.14.7
- java 17
- mcdiscordchat 1.19-2.0.0-alpha.3
- minecraft 1.19
- net_dv8tion_jda 5.0.0-alpha.12 via mcdiscordchat
- net_sf_trove4j_trove4j 3.0.3 via mcdiscordchat
- org_apache_commons_commons-collections4 4.4 via mcdiscordchat
- org_jetbrains_kotlin_kotlin-stdlib 1.7.0 via mcdiscordchat
- org_json_json 20220320 via mcdiscordchat
[13:03:11] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/home/container/libraries/net/fabricmc/sponge-mixin/0.11.4+mixin.0.8.5/sponge-mixin-0.11.4+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER
[13:03:11] [main/INFO]: Compatibility level set to JAVA_16
[13:03:12] [main/INFO]: Compatibility level set to JAVA_17
[13:03:16] [main/INFO]: Building unoptimized datafixer
[13:03:18] [main/INFO]: -----------------------------------------
[13:03:18] [main/INFO]: MCDiscordChat (MCDC) 2.0.0-alpha.3
[13:03:18] [main/INFO]: By Xujiayao
[13:03:18] [main/INFO]:
[13:03:18] [main/INFO]: More information + Docs:
[13:03:18] [main/INFO]: https://blog.xujiayao.top/posts/4ba0a17a/
[13:03:18] [main/INFO]: -----------------------------------------
[13:03:19] [main/INFO]: Login Successful!
[13:03:19] [JDA MainWS-WriteThread/INFO]: Connected to WebSocket
[13:03:19] [JDA MainWS-ReadThread/INFO]: Finished Loading!
[13:03:19] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[13:03:21] [main/INFO]: [fabric-registry-sync] Loaded registry data [file 1/4]
[13:03:25] [main/INFO]: Loaded 7 recipes
[13:03:26] [main/WARN]: Found validation problem in {minecraft:entities/ender_dragon}.pools[0].entries[0]: Unknown loot table called minecraft:entities/reference/extra/ender_dragon
[13:03:26] [main/WARN]: Found validation problem in {minecraft:entities/bat}.pools[2].entries[0]: Unknown loot table called minecraft:entities/reference/extra/bat
[13:03:26] [main/INFO]: Loaded 1346 advancements
[13:03:27] [main/WARN]: Failed to parse level-type default, defaulting to minecraft:normal
[13:03:27] [main/INFO]: Applied 0 biome modifications to 0 of 63 new biomes in 1.727 ms
[13:03:27] [Server thread/INFO]: Starting minecraft server version 1.19
[13:03:27] [Server thread/INFO]: Loading properties
[13:03:27] [Server thread/INFO]: Default game type: SURVIVAL
[13:03:27] [Server thread/INFO]: Generating keypair
[13:03:27] [Server thread/INFO]: Starting Minecraft server on <IP_ADDRESS>:25593
[13:03:27] [Server thread/INFO]: Using epoll channel type
[13:03:27] [Server thread/INFO]: Preparing level "Atlascraft"
[13:03:40] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
say test
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:47] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[13:03:48] [Worker-Main-1/INFO]: Preparing spawn area: 24%
[13:03:48] [Worker-Main-1/INFO]: Preparing spawn area: 24%
[13:03:48] [Worker-Main-1/INFO]: Preparing spawn area: 69%
[13:03:49] [Server thread/INFO]: Time elapsed: 9503 ms
[13:03:49] [Server thread/INFO]: Done (22.216s)! For help, type "help"
container@pterodactyl~ Server marked as running...
[13:03:51] [Server thread/INFO]:  test
[13:03:52] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2040ms or 40 ticks behind
[13:04:26] [JDA MainWS-ReadThread/INFO]: [Discord]  test
test
[13:04:30] [Server thread/INFO]: Unknown or incomplete command, see below for error
[13:04:30] [Server thread/INFO]: test<--[HERE]
say test
[13:04:34] [Server thread/INFO]:  test
container@pterodactyl~ Server marked as stopping...
stop
[13:04:41] [Server thread/INFO]: Stopping the server
[13:04:41] [Server thread/INFO]: Stopping server
[13:04:41] [Server thread/INFO]: Saving players
[13:04:41] [Server thread/INFO]: Saving worlds
[13:04:43] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Atlascraft]'/minecraft:overworld
[13:04:49] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Atlascraft]'/minecraft:the_end
[13:04:49] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Atlascraft]'/minecraft:the_nether
[13:04:49] [Server thread/INFO]: ThreadedAnvilChunkStorage (Atlascraft): All chunks are saved
[13:04:49] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[13:04:49] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[13:04:49] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
Config
{
"generic": {
"useEngInsteadOfChin": true,
"botToken": "",
"botPlayingStatus": "Minecraft",
"botListeningStatus": "",
"webhookUrl": "",
"channelId": "981778683570303049",
"consoleLogChannelId": "",
"useUuidInsteadOfName": true,
"avatarApi": "https://mc-heads.net/avatar/%player%.png",
"broadcastCommandExecution": true,
"allowMentions": true,
"modifyChatMessages": true,
"useServerNickname": true,
"announceHighMspt": true,
"msptCheckInterval": 5000,
"msptLimit": 50,
"mentionAdmins": true,
"updateChannelTopic": true,
"channelTopicUpdateInterval": 600000,
"excludedCommands": [
"/tell"
],
"adminsIds": [
"863952714538418178"
]
},
"multiServer": {
"enable": false,
"host": "<IP_ADDRESS>",
"port": 5000,
"name": "SMP",
"botIds": []
},
"textsZH": {
"unformattedResponseMessage": "    ┌──── <%name%> %message%",
"unformattedChatMessage": "[%server%] <%name%> %message%",
"unformattedOtherMessage": "[%server%] %message%",
"formattedResponseMessage": [
{
"text": "    ┌──── ",
"bold": true,
"color": "dark_gray"
},
{
"text": "<%name%> ",
"bold": false,
"color": "%roleColor%"
},
{
"text": "%message%",
"bold": false,
"color": "dark_gray"
}
],
"formattedChatMessage": [
{
"text": "[%server%] ",
"bold": true,
"color": "blue"
},
{
"text": "<%name%> ",
"bold": false,
"color": "%roleColor%"
},
{
"text": "%message%",
"bold": false,
"color": "gray"
}
],
"formattedOtherMessage": [
{
"text": "[%server%] ",
"bold": true,
"color": "blue"
},
{
"text": "%message%",
"bold": false,
"color": "gray"
}
],
"serverStarted": "服务器已启动！",
"serverStopped": "服务器已关闭！",
"joinServer": "%playerName% 加入了服务器",
"leftServer": "%playerName% 离开了服务器",
"deathMessage": "%deathMessage%",
"advancementTask": "%playerName% 达成了进度 [%advancement%]",
"advancementChallenge": "%playerName% 完成了挑战 [%advancement%]",
"advancementGoal": "%playerName% 达成了目标 [%advancement%]",
"highMspt": "服务器 MSPT (%mspt%) 高于 %msptLimit%！",
"consoleLogMessage": "[%time%] [INFO] %message%",
"offlineChannelTopic": ":x: 服务器离线 | 最后更新于：<t:%lastUpdateTime%:f>",
"onlineChannelTopic": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% 位玩家在线 | 服务器玩家总数：%uniquePlayerCount% | 服务器于 <t:%serverStartedTime%:R> 启动 | 最后更新于：<t:%lastUpdateTime%:f>",
"onlineChannelTopicForMultiServer": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% 位玩家在线 | 服务器玩家总数：%uniquePlayerCount% | %onlineServerCount% 个服务器在线 [%onlineServerList%] | 服务器于 <t:%serverStartedTime%:R> 启动 | 最后更新于：<t:%lastUpdateTime%:f>"
},
"textsEN": {
"unformattedResponseMessage": "    ┌──── <%name%> %message%",
"unformattedChatMessage": "[%server%] <%name%> %message%",
"unformattedOtherMessage": "[%server%] %message%",
"formattedResponseMessage": [
{
"text": "    ┌──── ",
"bold": true,
"color": "dark_gray"
},
{
"text": "<%name%> ",
"bold": false,
"color": "%roleColor%"
},
{
"text": "%message%",
"bold": false,
"color": "dark_gray"
}
],
"formattedChatMessage": [
{
"text": "[%server%] ",
"bold": true,
"color": "blue"
},
{
"text": "<%name%> ",
"bold": false,
"color": "%roleColor%"
},
{
"text": "%message%",
"bold": false,
"color": "gray"
}
],
"formattedOtherMessage": [
{
"text": "[%server%] ",
"bold": true,
"color": "blue"
},
{
"text": "%message%",
"bold": false,
"color": "gray"
}
],
"serverStarted": "Server started!",
"serverStopped": "Server stopped!",
"joinServer": "%playerName% joined the game",
"leftServer": "%playerName% left the game",
"deathMessage": "%deathMessage%",
"advancementTask": "%playerName% has made the advancement [%advancement%]",
"advancementChallenge": "%playerName% has completed the challenge [%advancement%]",
"advancementGoal": "%playerName% has reached the goal [%advancement%]",
"highMspt": "Server MSPT (%mspt%) is above %msptLimit%!",
"consoleLogMessage": "[%time%] [INFO] %message%",
"offlineChannelTopic": ":x: Server offline | Last updated: <t:%lastUpdateTime%:f>",
"onlineChannelTopic": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% player(s) online | %uniquePlayerCount% unique player(s) ever joined | Server started <t:%serverStartedTime%:R> | Last updated: <t:%lastUpdateTime%:f>",
"onlineChannelTopicForMultiServer": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% player(s) online | %uniquePlayerCount% unique player(s) ever joined | %onlineServerCount% server(s) online [%onlineServerList%] | Server started <t:%serverStartedTime%:R> | Last updated: <t:%lastUpdateTime%:f>"
}
}

in addition to this. Messages are sent from the discord to MC, but not the other way around.

This is a known problem (https://github.com/Xujiayao/MCDiscordChat/issues/36#issuecomment-1142364668), and is fixed 6 days ago. 6f5ef9e9d48b2f4b5f3283388aa53d11703d612c

in addition to this. Messages are sent from the discord to MC, but not the other way around.

What do you mean? Add screenshots to explain.

Meaning a Chat that is sent in Discord, gets sent to Minecraft, but the chat from Minecraft does not get sent back to discord.

Add Discord screenshots and Minecraft Log of your testing to help explain, otherwise I have no way of knowing what went wrong.


Element switching order

Problem
When running the following example, the element is switching order.
I have found this issue occurring sporadically since v0.18.
Usually minor tweaking to html! layout would solve this so I haven't taken time to make a minimal example until now.
Steps To Reproduce
Run this following example:
use gloo_timers::future::sleep;
use std::time::Duration;
use wasm_bindgen_futures::spawn_local;
use yew::prelude::*;

#[function_component(Top)]
fn top() -> Html {
    let loaded = use_state_eq(|| false);

    {
        let loaded = loaded.clone();
        use_effect_with_deps(
            move |_| {
                spawn_local(async move {
                    sleep(Duration::from_millis(1000)).await;
                    loaded.set(true);
                });
                || {}
            },
            (),
        );
    }

    if *loaded {
        html! { <>{"<Top />"}</> }
    } else {
        html! {
{"<Top (loading...) />"}
}
    }
}

#[function_component(Bottom)]
pub(crate) fn bottom() -> Html {
    let loaded = use_state_eq(|| false);

    use_effect_with_deps(
        move |_| {
            spawn_local(async move {
                sleep(Duration::from_millis(100)).await;
                loaded.set(true);
            });
            || {}
        },
        (),
    );

    html! {
{"<Bottom />"}
}
}

#[function_component(App)]
pub(crate) fn app() -> Html {
    let loaded = use_state_eq(|| false);

    use_effect_with_deps(
        move |_| {
            loaded.set(true);

            || {}
        },
        (),
    );

    html! {

            <Top />
            <Bottom />

    }
}

fn main() {
    yew::start_app::<App>();
}

Expected behavior
<Top />
<Bottom />

Screenshots
https://user-images.githubusercontent.com/11693215/154812304-e2cfc699-38c6-4b79-b71a-44922b15bbae.mov
Environment:

Yew version: master
Rust version: 1.58
Target, if relevant: wasm32-unknown-unknown
Build tool, if relevant: not relevant
OS, if relevant: not relevant
Browser and version, if relevant: not relevant

Questionnaire

[x] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

Does the issue occur if you add keys to the list in the app component?

Does the issue occur if you add keys to the list in the app component?

Yes. I added key={1} to top and key={2} to bottom and it's still occurring.

This might have been fixed by #2330 , at least I can't reproduce this locally with yew@master.


Impling notification

Option in Implings plugin to get notifications about specific impling types when they appear/spawn.

This is in the client already.


ipMatchFromFile gives error "Failed to open file" even when file exists

Hi,
When using this rule, nginx does not start and gives me the following error: "Failed to open file userdata_wl_IPs".
SecRule TX:REAL_IP "@ipMatchFromFile userdata_wl_IPs" \
        "id:210480,phase:1,allow,nolog,rev:3,severity:5,tag:'CWAF',tag:'Generic'"

The userdata_wl_IPS does exist in the same folder as the "rules.conf" file that refers to it. I also tried to copy the userdata file to some other folders higher up (e.g., in the folder of the main .conf file that in turn refers to rules.conf) - but always the same issue.

This was tested on the v3/master branch of ModSecurity.
Running on nginx-1.13.8.
Compiled with "git clone --depth 1 https://github.com/SpiderLabs/ModSecurity-nginx.git".

Fixed as of: e3b6b4ccff5b4388bde4485049af382a21d4cbb8

thanks for the report


How to add agent in other instance ?

Please answer these questions before submitting your issue.

Why do you submit this issue?
[x] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?
How to add the agent in the other instance

Bug

Which version of SkyWalking, OS and JRE?
SkyWalking

Which company or project?
Carsome

Requirement or improvement

Please describe about your requirements or improvement suggestions.
Detail in documentation regarding installation and usage

What is other instance? Unclear question.

What is other instance? Unclear question.

I want to add other endpoint for example i want to check 200 response at http://<IP_ADDRESS>

Still, don't understand what is your meaning. Are you saying you want response code 200 metrics? If yes, do that in OAL, it is supported. But UI doesn't support that.


Go: Bump Go version to 1.23

This PR updates the version of Go in the PR checks to 1.23.
Merge / deployment checklist

[ ] Confirm this change is backwards compatible with existing workflows.
[ ] Confirm the readme has been updated if necessary.
[ ] Confirm the changelog has been updated if necessary.

Any word on when this can merged or anyone got a work around in the meantime?


Include a count of entries in associated sections doesn't work when a section starts with a number

Affected Symphony version(s) : 2.7.0 and previous versions?
PHP version(s) : 5.6
OS(es) : OS X
Include a count of entries in associated sections doesn't work when the associated section starts with a number.
error parsing attribute name in Entity, line: 894
/data/sites/web/moovne/www/symphony/lib/toolkit/class.xsltprocess.php:141

Interesting that we get an error in this case, because no error is thrown if the name of a Data Source starts with a number (which will result in invalid XML as well).
Symphony is all about XML, so I suggest that, for the following items, Symphony should ensure that the first character of the handle must be a letter:

fields
sections
data sources

(AFAIK, letters and underscores are allowed in element names, but there is no big sense in a Symphony handle starting with an underscore.)

Yup nice catch. But I think that this is a breaking change, and thus, should not be released in the LTS version.

But we could also fix it easily, by replacing the number with its English equivalent.
2fast4you would become twofast4you

But that would a breaking change as well, because existing handles would change. :-)

But that would a breaking change as well, because existing handles would change. :-)

I meant only in the XML output! Sorry I should have mention this ;)
I would never change anything in the DB: Just prevent the crash

Hmm, yes that might work.

Looks like it won't be the first time we change things values to output in xml: the query string oauth_token becomes url-oauth-token (notice the _ which get translated to -).
Note that a Data Source that starts with a number is allowed, but also crashes the XML.
I wonder if we should add a little notice to tell the user what will happen.
@michael-e ? @wdebusschere ? @brendo ?

+1 for a notice, e.g.:

Hey, it's about XML here! You know XML, don't you?

:-)

That said, I don't oppose "fixing" the name if there is a message.

Do we all still agree that the proper fix is to prevent the user from creating section, fields, data sources and events that start with a digit ?

IMHO it's definitely better to completely prevent such names than to "magically fix the handle".

Great, 3.0.0 will do this.


Implement weave consense

Fixes #1994.

I rebased this against master

I rebased this against master

Any comments @bboreham?
Docs deliberately missing from this PR to avoid clashing with the documentation restructuring - will add some after that has merged.

Docs deliberately missing from this PR to avoid clashing with the documentation restructuring - will add some after that has merged.

Please don't defer updating the docs.

I guess we could have done this with a dummy allocation for a zero-size range, to avoid a new queue and data type.
But no specific complaints about the way you did it.

I guess we could have done this with a dummy allocation for a zero-size range, to avoid a new queue and data type.

I did consider it, but I felt it was cleaner to have a proper operation for it.
Rebased on master + added some docs.


Separate write tests

we think this will reduce test flakiness

do we want to turn HMR back on in the other tests now that these ones have been separated out? pro is that it'd be more like what users see. con is that it makes it easier to inadvertently break the tests in a hard-to-diagnose manner

do we want to turn HMR back on in the other tests now

tempted to leave it off for now, on the basis that if we add a test that depends on HMR we'll be reminded to put it in the writes test app

Perhaps we should also leave it off in the writes app then. It's not safe for two HMR tests to be in the same app and the existing tests don't need HMR on

Perhaps we should also leave it off in the writes app then. It's not safe for two HMR tests to be in the same app and the existing tests don't need HMR on

the writes test is in serial mode so it should be safe to have it on there. testing writes with hmr=false feels like a big risk to miss possible errors happening for the user that has hmr=true by default.
For read-only tests the risk is smaller but still there, so if it's stable i'd reenable hmr everywhere.

i'll try re-enabling it everywhere then we can see if we get any flakiness. hopefully not

Saw a couple of flakes, but only one was a dev test. I think we can conclude that it's safe to keep HMR enabled


Update to support the new device registration flow

This PR fixes #232 by pulling in resin-register-device@3 (see resin-io/resin-register-device#22 and resin-io/resin-register-device#25 for background).
This PR brings the resin-sdk API in line with resin-register-device, and that adds the various changes to the tests required to make this work. Device registration now works in Node and browsers. Also clarifies some tests and reenables some tests that were temporarily disabled 2 months ago, and now pass.
I've favoured internal consistency for this change over backward compatibility here, which is debatable. Breaking changes are:

generateUUID is now generateUniqueKey, and is no longer async
register no longer returns the device, now just { id, uuid, api_key }).

These are more or less the same APIs as resin-register-device. We could transform these here to make this backward compatible (wrapping generateUniqueKey to make it async; doing an extra request after every register call to get the device and then attaching api_key to that result) but both of those changes are a little messy internally and have downsides. If we're happy breaking compatibility, I think this PR is the better end result.
Other minor point is that I've called the new { id, uuid, api_key } return type "device registration info", but I haven't described the format anywhere, so it's not easy for users to know exactly what'll be in that. Can't see any examples of how we document return object types in JSDoc, let me know if there's a clear way I should add more detail.
This PR is on top of #239, because otherwise the tests won't pass, and I've used that as a base for this PR so you can see the changes here independently. I'll can shift it to sdk-browser once the tests PR has been merged.

The tests PR is merged, good to rebase.

We should remember to bring the registration-related changes in the CLI when we upgrade the SDK version there.
I think the CLI doesn't have tests ATM.

Can you please rebase and resolve conflicts as I've squashed the commits in the sdk-browser branch?

I've pulled in all your comments and rebased.

LGTM, please squash before merging.

Oh BTW you need to rebuild the docs with npm run docs

Squashed down to just two commits: the actual changes of this PR, and a separate one for the re-enabling the CORS test, since that's a totally separate change, and it'd be good to be able to follow that back in future.


[AzureFunctions][CustomHandler]Remove preview flag

cc @gzuber  @anthonychu
Stacks updates here:  https://github.com/pragnagopa/azure-functions-supported-runtime-stacks/pull/21

@gzuber - if this issue requires just updating the stacks content, please assign it to me

AzureFunctions


add calculations for geometry of panels.  Optimal tilt and Azimuth

http://pvwatts.nrel.gov/pvwatts.php


Any way of using it with Django 4.0?

Can I integrate it with Django 4.0?

Sure, as it's tested against Django main branch.


Weird default style triggers for some basic controls like Button

First of all, thanks for bringing us this great product! Really appreciated!
Describe the bug
Button and many other controls (like ToggleButton, CheckBox etc) provide default style triggers, like the one for pointerover here:
https://github.com/AvaloniaUI/Avalonia/blob/bbfb2c17d6ddc2b545e378e8b480fae0ac830707/src/Avalonia.Themes.Fluent/Controls/Button.xaml#L45-L46
This (and similarly constructed) trigger(s) (i.e. ones using a TemplateSelector) somewhat contradict with the TemplateBinding in the default ControlTemplate:
https://github.com/AvaloniaUI/Avalonia/blob/bbfb2c17d6ddc2b545e378e8b480fae0ac830707/src/Avalonia.Themes.Fluent/Controls/Button.xaml#L28-L30
As a simple Style like this will not function correctly anymore, at least visually:
<Style Selector="Button:pointerover">
    <Setter Property="Background"
            Value="Red" />
</Style>

DevTools will show me that the Button has Red background, but the rendering will use the IBrush "ButtonBackgroundPointerOver".
I understand there are several ways to work this around, but why not rely on that TemplateBinding in the first place?
Is there a good reason to use a TemplateSelector in these default style triggers?
If so, what am I missing?
To Reproduce
<Window.Resources>
    <SolidColorBrush x:Key="ButtonBackgroundPointerOver"
                     Color="Green" />
</Window.Resources>

<Window.Styles>
    <Style Selector="Button:pointerover">
        <Setter Property="Background"
                Value="Red" />
    </Style>
</Window.Styles>

<Button Content="hello" />

Steps to reproduce the behavior:

Use the above xaml within a Window

Expected behavior
My Button should render with Red background, instead of Green, when hovering over it.
Desktop:

OS: Windows
Version 0.10.10

@kekekeks @grokys Would appreciate if one of you guys clarified this a little bit for me.

This page should help you with your problem
https://docs.avaloniaui.net/docs/styling/troubleshooting

@maxkatz6 Thanks for your feedback.
I'm aware of those docs, and I mentioned in the description that I know how to work these issues around.
This issue is more about pointing out a flaw in the default style triggers.

Closing, as it seems to be intentional as per #2662.
Thanks @maxkatz6 for pointing this out!