text:
services: add new block fetching from NeoFS service

[ ] documentation update
[ ] tests

Still have something to fix in BlockFetcher before benchmarks.

@AliceInHunterland, also please reorganize/squash commits to make the PR structure clear. 0f4dbbee0504b8eeaa3796369e83e58c7bbc3e2a may be the first commit in a raw because it doesn't depend on other changes.

@AliceInHunterland, take a look at https://github.com/nspcc-dev/neo-go/pull/3515/commits/589841563de078dbb3041e8b1aa614f07b5ed79c and ensure you understand it, there's a shutdown process for Blockfetcher service implemented, questions are welcomed. This commit should be merged into the service-related commit.

Filename
ms
Block Height
Avg ms/1K Blocks
Timeout
Logs

SkipIndexFilesSearch: false

neogo-oib-10000-bq-10000-w10000.log
1803435
465820
3871.53
30m
Logs

neogo-oib-10000-bq-40000.log
1800326
470979
3822.52
30m

neogo-oib-10000-bq-10000-w1000.log
1823734
467954
3897.25
30m

neogo-oib-8000-bq-40000-w1000.log
1825217
461961
3951.02
30m

neogo-oib-8000-bq-8000-w500.log
1810582
469292
3858.11
30m

neogo-oib-8000-bq-8000-w500.log
1800650
486261
3703.05
30m

neogo-oib-8000-bq-40000-w500.log
1799876
447389
4023.07
30m

neogo-oib-100k-bq-200k-w500.log
1799919
412022
4368.50
30m

neogo-oib-1000-bq-2000-w500.log
672935
216737
3104.85

fail

neogo-oib-1000-bq-2000-w100.log
1801330
465058
3873.34
30m

neogo-oib-8000-bq-32000-w500_60min.log
2902400
837815
3464.25
60m

SkipIndexFilesSearch: true

neogo-index-oib-16000-bq-40000-w2000.log
1805766
476710
3787.98
30m

neogo-oib-index-8000-bq-8000-w500.log
1800670
487830
3691.18
30m

neogo-oib-index-8000-bq-40000-w500.log
1810972
490053
3695.46
30m

neogo-oib-index-8000-bq-32000-w500.log
1802607
502887
3584.52
30m

neogo-oib-index-8000-bq-16000-w500.log
1799940
487605
3691.39
30m

neogo-oib-index-8000-bq-32000-w500_2.log
2399943
923247
2599.46
40m
BlockDownloader: block height mismatch then p2p

neogo-oib-index-8000-bq-32000-w500_3.log
2409762
681271
3537.16
40m

neogo-oib-index-8000-bq-32000-w500_4.log
2442571
723872
3374.31
40m

neogo-oib-index-8000-bq-32000-w500_5.log
2405396
712686
3375.11
40m

neogo-oib-index-8000-bq-32000-w500_6.log

Failed to objectGet block {"error": "header: status: code = 1024 message = storage engine is closed"}  at the beginning

Enabled: false

neogo-p2p.log
1243070
408989
3039.37
30m

neogo-p2p2.log
1799885
345093
5215.65
30m
Overall time in logs

neogo-p2p2.log
1252662
345093
3629.93
30m
Time until the last persist

neogo-p2p3.log
2399849
866092
2770.89
40m

neogo-p2p-60.log
2527980
935500
2702.28
60m

@roman-khimov, ready for review.

@AliceInHunterland
2024-09-10T08:10:22.6955777Z === RUN   TestDumpBin/output_directory_with_no_write_permission
2024-09-10T08:10:22.6956902Z INFO	initial gas supply is not set or wrong, setting default value	{"InitialGASSupply": "52000000"}
2024-09-10T08:10:22.6958532Z INFO	P2PNotaryRequestPayloadPool size is not set or wrong, setting default value	{"P2PNotaryRequestPayloadPoolSize": 1000}
2024-09-10T08:10:22.6960052Z INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2024-09-10T08:10:22.6961634Z INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee": 900000000000}
2024-09-10T08:10:22.6963145Z INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2024-09-10T08:10:22.6964772Z INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2024-09-10T08:10:22.6965947Z INFO	restoring blockchain	{"version": "0.2.12"}
2024-09-10T08:10:22.6967091Z INFO	service hasn't started since it's disabled	{"service": "Prometheus"}
2024-09-10T08:10:22.6968618Z INFO	service hasn't started since it's disabled	{"service": "Pprof"}
2024-09-10T08:10:22.6969523Z     executor.go:279:
2024-09-10T08:10:22.6970634Z         	Error Trace:	D:/a/neo-go/neo-go/internal/testcli/executor.go:279
2024-09-10T08:10:22.6972184Z         	            				D:/a/neo-go/neo-go/cli/server/dump_bin_test.go:77
2024-09-10T08:10:22.6973157Z         	Error:      	An error is expected but got nil.
2024-09-10T08:10:22.6974475Z         	Test:       	TestDumpBin/output_directory_with_no_write_permission
2024-09-10T08:10:22.6975776Z === RUN   TestDumpBin/zero_blocks_(full_chain_dump)
2024-09-10T08:10:22.6977384Z INFO	initial gas supply is not set or wrong, setting default value	{"InitialGASSupply": "52000000"}
2024-09-10T08:10:22.6979761Z INFO	P2PNotaryRequestPayloadPool size is not set or wrong, setting default value	{"P2PNotaryRequestPayloadPoolSize": 1000}
2024-09-10T08:10:22.6981493Z INFO	MaxBlockSize is not set or wrong, setting default value	{"MaxBlockSize": 262144}
2024-09-10T08:10:22.6982912Z INFO	MaxBlockSystemFee is not set or wrong, setting default value	{"MaxBlockSystemFee": 900000000000}
2024-09-10T08:10:22.6984399Z INFO	MaxTransactionsPerBlock is not set or wrong, using default value	{"MaxTransactionsPerBlock": 512}
2024-09-10T08:10:22.6986102Z INFO	MaxValidUntilBlockIncrement is not set or wrong, using default value	{"MaxValidUntilBlockIncrement": 5760}
2024-09-10T08:10:22.6988631Z INFO	restoring blockchain	{"version": "0.2.12"}
2024-09-10T08:10:22.6990087Z INFO	service hasn't started since it's disabled	{"service": "Prometheus"}
2024-09-10T08:10:22.6991347Z INFO	service hasn't started since it's disabled	{"service": "Pprof"}
2024-09-10T08:10:22.6992432Z === RUN   TestDumpBin/invalid_config_file
2024-09-10T08:10:22.6993594Z config 'invalid-config-path' doesn't exist and no matching embedded config was found
2024-09-10T08:10:22.6994705Z --- FAIL: TestDumpBin (0.66s)
2024-09-10T08:10:22.6995597Z     --- PASS: TestDumpBin/missing_output_directory (0.05s)
2024-09-10T08:10:22.6996568Z     --- PASS: TestDumpBin/successful_dump (0.06s)
2024-09-10T08:10:22.6997516Z     --- PASS: TestDumpBin/invalid_block_range (0.05s)
2024-09-10T08:10:22.6998678Z     --- FAIL: TestDumpBin/output_directory_with_no_write_permission (0.06s)
2024-09-10T08:10:22.6999901Z     --- PASS: TestDumpBin/zero_blocks_(full_chain_dump) (0.21s)
2024-09-10T08:10:22.7000930Z     --- PASS: TestDumpBin/invalid_config_file (0.00s)

@AliceInHunterland, another test is failing on Win:
2024-09-10T09:41:30.9508836Z === RUN   TestServiceConstructor/invalid_wallet
2024-09-10T09:41:30.9509095Z     blockfetcher_test.go:97:
2024-09-10T09:41:30.9510116Z         	Error Trace:	D:/a/neo-go/neo-go/pkg/services/blockfetcher/blockfetcher_test.go:97
2024-09-10T09:41:30.9511759Z         	Error:      	"open wallet: open invalid/path/to/wallet.json: The system cannot find the path specified." does not contain "no such file or directory"
2024-09-10T09:41:30.9512252Z         	Test:       	TestServiceConstructor/invalid_wallet
2024-09-10T09:41:30.9512552Z --- FAIL: TestServiceConstructor (0.01s)
2024-09-10T09:41:30.9513103Z     --- PASS: TestServiceConstructor/empty_configuration (0.00s)
2024-09-10T09:41:30.9513567Z     --- PASS: TestServiceConstructor/no_addresses (0.00s)
2024-09-10T09:41:30.9514038Z     --- PASS: TestServiceConstructor/default_values (0.00s)
2024-09-10T09:41:30.9514540Z     --- PASS: TestServiceConstructor/SDK_client (0.00s)
2024-09-10T09:41:30.9515017Z     --- FAIL: TestServiceConstructor/invalid_wallet (0.00s)
2024-09-10T09:41:30.9515139Z FAIL
2024-09-10T09:41:30.9515641Z FAIL	github.com/nspcc-dev/neo-go/pkg/services/blockfetcher	0.063s

authors: AliceInHunterland AnnaShaleva

repo: nspcc-dev/neo-go


text:
Change setup to point to new readme

Setup was pointing to the old README.md and fails.  This changes to point to README.rst. #49

@holdenk I tried to run the setup but failed because of this

A note on the build here -- it seems like maybe something in kubepy needs an update. The build is failing unrelated to your PR.
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-gJKK6i/kubepy/setup.py", line 1, in <module>
        from pip.req import parse_requirements
    ImportError: No module named req

I'm going to go ahead and merge this so you can keep working with the coffee boat. 😄 ☕ ⛵

Thanks @rgbkrk !

source: gharchive/pull-request

authors: BryanCutler rgbkrk

license_type: permissive

license_source: github-api


text:
ctrl - enter is going to the next line.

Hi All,
While pressing the ctrl - enter to compile the python code, it cursor is going to the next line.
Any quick help to resolve. I'm in the middle of some important code debugging.
Appreciate your help.
Thanks,
Vishal

Can you try opening up your keybinding resolver w/ atom ctrl-.? See what command is actually running when you press ctrl-enter.
ctrl-enter (or cmd-enter on mac) is mapped to hydrogen:run, which should not be moving the cursor at all with our default keybindings. If you are pressing shift-enter, this is mapped to hydrogen:run-and-move-down and the cursor moving to the next line is expected.

Currently it is set to newline.

Can you please tell how to fix this? It'll be really helpful.

I dont see hydrogen anywhere in your screenshot. Are you sure you have it installed?
Try running hydrogen:run from the atom command palette, does that work as expected?

Yes Ben. I have it installed.
I just sent the screenshot of Keybindings.

pfa-

yes Ben. I have installed it.
I just sent the screenshot of keybindings.
pfa-

Can you try the key bind resolver with ctrl-. Either hydrogen:run is not running at all, or another command is running on top of it causing the cursor position to change.

I am having similar issues. hydrogen:move-and-run-down runs the entire document instead of moving to the next line. It seems to only run till the end of document when the cursor is on a def/class line. I used ctrl-. to see what key binding is getting called, here's a screenshot.

@vishal786btc It looks like Hydrogen isn't correctly installed. Could you try and reinstall it?

I have had the same issue occur a few times recently. It seems to be related to the hydrogen installation getting corrupted somehow. A reinstall fixes it.

Closing as stale

source: gharchive/issue

authors: BenRussert jollymike krystalzeng kylebarron lgeiger vishal-nas vishal786btc

repo: nteract/hydrogen

license: mit

license_source: bigquery


text:
preview have a problem

Thank you for this package,It's very nice.
But I found a petty problem
code:
for x in range(1, 11):
    print('{0:2d} {1:3d} {2:4d}'.format(x, x*x, x*x*x))

the first line is doesn't work under the preview:
1   1    1
 2   4    8
 3   9   27
 4  16   64
 5  25  125
 6  36  216
 7  49  343
 8  64  512
 9  81  729
10 100 1000

It's not a problem at all.
Output of kernel is trimmed. And if in your case it breaks indentation, in many other cases it helps a lot. Hydrogen is just kernel runner, so it deals with all kernel differences. For example, some kernels(julia) add newline to any output and some only on special occasions, others don't do it at all. Which you should agree, will look more inconsistent.

thanks a lot for your reply.


text:
long runtime of even fail hydrogen atom

Everything was working fine. Until suddenly even a simple print('example') line didn't even run anymore with hydrogen. I use the atom editor.
See attached a screenshot. Hopefully someone can help me out :)

It is continuously showing that icon next to print(pay).

Could you open atom in dev mode (View --> Developer --> Open in Dev Mode...) and post a screenshot of the dev console (View --> Developer --> View Dev Console...) after running the command?

Hi Igeiger, Thanks for the quick response. What is the difference with dev mode? I've done what you said, but couldn't find the view you meant called View Dev Console (see screenshot).

Oh I'm sorry I meant Toggle Developer Tools

ah oke, I've run the code in the first screenshot I posted and did what you said resulting in this:

@lgeiger  or anyone else who knows how to solve this issue?

You next need to open the console so we can see the errors:

Indeed very useful to learn how to debug this way. Above you can see the error I found. Could someone explain this error and tell me how to solve it?

This is what I found on Stackoverflow: http://stackoverflow.com/questions/9768444/possible-eventemitter-memory-leak-detected
It says that I've to run this line:
process.setMaxListeners(0);
However, I am new to Python/Atom so if this is the solution, where should I run this line then? Once I run this line in Atom I get this error:
Traceback (most recent call last):
  File "/Users/***/Documents/Pyhton/Project/test.py", line 1, in <module>
    process.setMaxListeners(0)
NameError: name 'process' is not defined

The error doesn't seem to come from Hydrogen directly.
Is it also there if Hydrogen isn't running? Which version of Atom are you using?

I am using version 1.12.9 and it happens only with hydrogen. For example this line of code:
x = 1
print(x)
Then it keeps on running showing that icon in the first screenshot I posted saying that Python 3 is busy.
However, when I look at the console in dev mode, then it doesn't show an error, but the program just doesn't run. Only a couple of warnings (see screenshot):

This way I can't continue working in python so would be appreciated if anyone can help me to find the solution :)

Could you expand the Hydrogen logs like this?

In particular Hydrogen ResultView: Add result and the logs after that are interesting.

Here it is:

Thanks, everything looks normal here.
Please check that you haven't disabled Use Shadow DOM under Settings > Editor. This option should be enabled and was removed in Atom 1.13.

I guess you mean atom > preferences > editor. I don't even see the option Use Shadow DOM there...   so what can I do to get hydrogen running?

Could you try updating Atom to the latest version?

I am using the latest version already. Checked for it, but Atom itself says so.

Atom 1.13 is the latest stable version: https://github.com/atom/atom/releases/tag/v1.13.0

@orijjsjje
Does this issue only happy when you execute code that invokes input?
If so, does Hydrogen show a window prompting for an input?
Does the dev console log show any messages about the input?

@lgeiger found out that installing 13.1.1 doesn't solve the issue. Restarting the kernel does temporarily.
@n-riesco yes only when it invokes input and yes it shows that window, once I press enter the issue of endless runtime occurs. Here above you can see in the screenshots what the dev console communicates. Would be great if you could help me solving this.

@orijjsjje I just tried your original example multiple times and don't encounter this issue.
You said everything worked fine in the past. Have you changed your python environment in between?

@orijjsjje I'll close this for now, feel free to reply if you are still having trouble.

authors: BenRussert lgeiger n-riesco orijjsjje rgbkrk


text:
Certain keys should probably never be converted to int/float/date

PL's -10.0 ticker is interpreted as a float. I'm not aware of any others that actually cause a problem, but especially with floats there is always the chance it will be represented as something like -10.0000000000000001 and then not cast back to a string properly. If one is accidently interpreted as a date (which has special handling code) that might be a problem too.

Yep, I'm perfectly aware of that. it's not the only case; characters or transaction reasons only containing numbers are another problem, etc.
Feel free to substitute the default _autocast function with something ever so slightly smarter. It's the reason I included the attribute name in the parameters of it.

authors: ntt nuxi

repo: ntt/eveapi


text:
🛑 Secret Site BIS is down

In 0567cd9, Secret Site BIS ($SECRET_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Secret Site BIS is back up in 04d407e after 37 minutes.

license: MIT


text:
🛑 Secret Site BIS is down

In 2fc45cc, Secret Site BIS ($SECRET_SITE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Secret Site BIS is back up in 5bdaa54 after 12 minutes.


text:
Fix 'primary_key' on primary-key-less tables

Currently, nulldb is erroring when it encounters a habtm relationship. It's erroring on the connection adapter's primary_key, since habtm dosen't have one. I think it's OK for primary_key to return nil, since this is the definition for the mysql adapter:
def primary_key(table)
  pk_and_sequence = pk_and_sequence_for(table)
  pk_and_sequence && pk_and_sequence.first
end

Note the last line can return nil if pk_and_sequence is nil, so I take this to mean AR is OK with primary_key returning nil.

Hey Woody--I don't have tons of time to put in to nulldb maintenance. Do you want me to add you as a collaborator and then you can take care of this yourself?  I certainly trust you to write quality code.

I'd be down with that. Thanks!

Cool, I just converted nulldb to an organization and added you to the team.  Feel free to merge your stuff in.
At some point, we should get CI setup on travis as that will help us keep things working.  If you get an itch to work on some other nulldb stuff and want to take care of that, have at it...otherwise I'll try to get to it at some point (like after I'm done with VCR 2.0).

Pushed a fix

authors: myronmarston woahdae

repo: nulldb/nulldb


text:
[Bug]: network-online.target not available

Describe the bug
Some unit configurations won't be able to exist due to missing network target.
systemctl status
● DESKTOP-S8SIUD6
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Sat 2022-05-21 12:31:34 MDT; 5min ago
   CGroup: /
           ├─user.slice
           │ └─user-1000.slice
           │   ├─user@1000.service
           │   │ ├─init.scope
           │   │ │ ├─867 /lib/systemd/systemd --user
           │   │ │ └─868 (sd-pam)
           │   │ └─dbus.service
           │   │   └─1125 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
           │   └─session-c1.scope
           │     ├─ 714 login -f
           │     ├─ 874 -zsh
           │     ├─1159 systemctl status
           │     └─1160 less
           ├─init.scope
           │ └─1 /sbin/init systemd.setenv=WSL_DISTRO_NAME=Ubuntu systemd.setenv=WSL_INTEROP=/run/WSL/11_interop systemd.setenv=WSLENV=WT_SESSION::WT_PROFILE_ID --unit=multi-user.target
           └─system.slice
             ├─snap-lxd-19188.mount
             │ └─101 snapfuse /var/lib/snapd/snaps/lxd_19188.snap /snap/lxd/19188 -o ro,nodev,allow_other,suid
             ├─systemd-udevd.service
             │ └─89 /lib/systemd/systemd-udevd
             ├─cron.service
             │ └─160 /usr/sbin/cron -f
             ├─polkit.service
             │ └─169 /usr/lib/policykit-1/polkitd --no-debug
             ├─systemd-timedated.service
             │ └─1158 /lib/systemd/systemd-timedated
             ├─networkd-dispatcher.service
             │ └─167 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
             ├─ModemManager.service
             │ └─288 /usr/sbin/ModemManager
             ├─systemd-journald.service
             │ └─69 /lib/systemd/systemd-journald
             ├─atd.service
             │ └─190 /usr/sbin/atd -f
             ├─unattended-upgrades.service
             │ └─282 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
             ├─ssh.service
             │ └─290 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
             ├─snapd.service
             │ └─178 /usr/lib/snapd/snapd
             ├─rsyslog.service
             │ └─173 /usr/sbin/rsyslogd -n -iNONE
             ├─snap-core18-1988.mount
             │ └─102 snapfuse /var/lib/snapd/snaps/core18_1988.snap /snap/core18/1988 -o ro,nodev,allow_other,suid
             ├─snap-snapd-11036.mount
             │ └─103 snapfuse /var/lib/snapd/snaps/snapd_11036.snap /snap/snapd/11036 -o ro,nodev,allow_other,suid
             ├─dbus.service
             │ └─161 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
             └─systemd-logind.service
               └─182 /lib/systemd/systemd-logind

I don't think WSL2 needs a network-online.target, but it might help to simulate it for units which need it.
Steps to reproduce
Given this service file:
# consul.service
[Unit]
Description="HashiCorp Consul - A service mesh solution"
Documentation=https://www.consul.io/
Requires=network-online.target
After=network-online.target

[Service]
User=consul
Group=consul
ExecStart=/opt/homebrew/opt/consul/bin/consul agent -server -ui -datacenter dc1 -bind 127.0.0.1
ExecReload=/bin/kill --signal HUP $MAINPID
KillMode=process
KillSignal=SIGTERM
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

When this command is run under a user slice (see #13):
# install homebrew for linux: https://brew.sh
# install consul with `brew install consul`
brew services start -v consul --file consul.service

Then this is the expected result:
/usr/bin/systemctl --user daemon-reload
/usr/bin/systemctl --user start homebrew.consul
Failed to start homebrew.consul.service: Unit network-online.target not found.
Error: Failure while executing; `/usr/bin/systemctl --user start homebrew.consul` exited with 5.

Expected behavior
The unit consul.service should run.
Windows version
19044.1706
Linux kernel version
Linux DESKTOP-S8SIUD6 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Distro
Ubuntu 20.04
How did you install that distro?
Enabled distrod in an existing WSL2 distro
Logs
12,414,1322381248,-;Distrod: [DEBUG] distrod-exec: exec_command_in_distro
12,415,1322381360,-;Distrod: [DEBUG] Executing a command in the distro.
12,416,1322381596,-;Distrod: [DEBUG] Failed to ignore signal Sys(EINVAL)
12,417,1322381894,-;Distrod: [DEBUG] Failed to ignore signal Sys(EINVAL)
12,418,1322382025,-;Distrod: [DEBUG] Distro::exec_command.
12,419,1322385124,-;Distrod: [DEBUG] Container::exec_command.
12,420,1322385724,-;Distrod: [DEBUG] Triple fork done.
12,421,1322386068,-;Distrod: [DEBUG] dropping privilege. kmsg logging in the child ends here.
12,423,1341357189,-;Distrod: [DEBUG] distrod-exec: exec_command

additional comment
Interestingly, if you remove the network-online.target and then run the command again, brew thinks it starts, but the unit isn't actually running:
$ brew services start -v consul --file ref-configs/consul.service
/usr/bin/systemctl --user daemon-reload
/usr/bin/systemctl --user start homebrew.consul
/usr/bin/systemctl --user enable homebrew.consul
Created symlink /home/sienna/.config/systemd/user/multi-user.target.wants/homebrew.consul.service → /home/sienna/.config/systemd/user/homebrew.consul.service.
==> Successfully started `consul` (label: homebrew.consul)
$ brew services list
Name   Status User   File
consul none   sienna
$ systemctl status
● DESKTOP-S8SIUD6
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Sat 2022-05-21 12:31:34 MDT; 24min ago
   CGroup: /
           ├─user.slice
           │ └─user-1000.slice
           │   ├─user@1000.service
           │   │ ├─init.scope
           │   │ │ ├─2788 /lib/systemd/systemd --user
           │   │ │ └─2789 (sd-pam)
           │   │ └─dbus.service
           │   │   └─3040 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
           │   └─session-c3.scope
           │     ├─2733 login -f
           │     ├─2794 -zsh
           │     ├─3288 systemctl status
           │     └─3289 less
           ├─init.scope
           │ └─1 /sbin/init systemd.setenv=WSL_DISTRO_NAME=Ubuntu systemd.setenv=WSL_INTEROP=/run/WSL/11_interop systemd.setenv=WSLENV=WT_SESSION::WT_PROFILE_ID --unit=multi-user.target
           └─system.slice
             ├─snap-lxd-19188.mount
             │ └─101 snapfuse /var/lib/snapd/snaps/lxd_19188.snap /snap/lxd/19188 -o ro,nodev,allow_other,suid
             ├─systemd-udevd.service
             │ └─89 /lib/systemd/systemd-udevd
             ├─cron.service
             │ └─160 /usr/sbin/cron -f
             ├─polkit.service
             │ └─169 /usr/lib/policykit-1/polkitd --no-debug
             ├─networkd-dispatcher.service
             │ └─167 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
             ├─ModemManager.service
             │ └─288 /usr/sbin/ModemManager
             ├─systemd-journald.service
             │ └─69 /lib/systemd/systemd-journald
             ├─atd.service
             │ └─190 /usr/sbin/atd -f
             ├─unattended-upgrades.service
             │ └─282 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
             ├─ssh.service
             │ └─290 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
             ├─snapd.service
             │ └─178 /usr/lib/snapd/snapd
             ├─rsyslog.service
             │ └─173 /usr/sbin/rsyslogd -n -iNONE
             ├─snap-core18-1988.mount
             │ └─102 snapfuse /var/lib/snapd/snaps/core18_1988.snap /snap/core18/1988 -o ro,nodev,allow_other,suid
             ├─snap-snapd-11036.mount
             │ └─103 snapfuse /var/lib/snapd/snaps/snapd_11036.snap /snap/snapd/11036 -o ro,nodev,allow_other,suid
             ├─dbus.service
             │ └─161 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
             └─systemd-logind.service
               └─182 /lib/systemd/systemd-logind
$ ps uax
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.0 169424 13428 ?        Ss   12:31   0:00 /sbin/init systemd.setenv=WSL_DISTRO_NAME=Ubuntu systemd.setenv=WSL_INTEROP=/run/WSL/11_interop systemd.setenv=WSLENV=WT_SESSION::WT_PROFILE_ID --unit=multi-user.target
sienna         3  0.0  0.0  10536  2532 pts/0    S    12:31   0:00 distrod-exec -- /usr/bin/zsh -zsh
sienna         4  0.0  0.0  15612  7564 pts/0    S    12:31   0:00 -zsh
root          69  0.0  0.0  53248 20804 ?        S<s  12:31   0:00 /lib/systemd/systemd-journald
root          89  0.0  0.0  21616  6956 ?        Ss   12:31   0:00 /lib/systemd/systemd-udevd
root         101  0.0  0.0   3704  1592 ?        Ss   12:31   0:00 snapfuse /var/lib/snapd/snaps/lxd_19188.snap /snap/lxd/19188 -o ro,nodev,allow_other,suid
root         102  0.0  0.0   3760  1780 ?        Ss   12:31   0:00 snapfuse /var/lib/snapd/snaps/core18_1988.snap /snap/core18/1988 -o ro,nodev,allow_other,suid
root         103  0.0  0.0   3644  1604 ?        Ss   12:31   0:00 snapfuse /var/lib/snapd/snaps/snapd_11036.snap /snap/snapd/11036 -o ro,nodev,allow_other,suid
root         160  0.0  0.0   8540  2796 ?        Ss   12:31   0:00 /usr/sbin/cron -f
message+     161  0.0  0.0   7560  4696 ?        Ss   12:31   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root         167  0.0  0.0  29900 18316 ?        Ss   12:31   0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
root         169  0.0  0.0 232716  6724 ?        Ssl  12:31   0:00 /usr/lib/policykit-1/polkitd --no-debug
syslog       173  0.0  0.0 224348  6512 ?        Ssl  12:31   0:00 /usr/sbin/rsyslogd -n -iNONE
root         178  0.0  0.1 1390152 47600 ?       Ssl  12:31   0:00 /usr/lib/snapd/snapd
root         182  0.0  0.0  16820  7808 ?        Ss   12:31   0:00 /lib/systemd/systemd-logind
daemon       190  0.0  0.0   3796  2352 ?        Ss   12:31   0:00 /usr/sbin/atd -f
root         282  0.0  0.0 108116 20432 ?        Ssl  12:31   0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
root         288  0.0  0.0 314332 10576 ?        Ssl  12:31   0:00 /usr/sbin/ModemManager
root         290  0.0  0.0  12176  6852 ?        Ss   12:31   0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
root        2732  0.0  0.0  11032  4592 pts/0    S    12:55   0:00 sudo login -f sienna
root        2733  0.0  0.0  10440  4680 pts/0    S    12:55   0:00 login -f
sienna      2788  0.1  0.0  21360 10868 ?        Ss   12:55   0:00 /lib/systemd/systemd --user
sienna      2789  0.0  0.0 170784  5540 ?        S    12:55   0:00 (sd-pam)
sienna      2794  0.1  0.0  15088  7104 pts/0    S    12:55   0:00 -zsh
sienna      3040  0.0  0.0   7108  3920 ?        Ss   12:55   0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
sienna      4171  0.0  0.0  10616  3260 pts/0    R+   12:57   0:00 ps uax

Not quite sure why it's not registered, but it doesn't error out.

Update: I did get it working, just not with the network/user/group configs. I'm going to leave this open for now since network-online.target isn't available, even though I was able to work through my issue.
Given this configuration:
[Unit]
Description="HashiCorp Consul - A service mesh solution"
Documentation=https://www.consul.io/

[Service]
ExecStart=/home/linuxbrew/.linuxbrew/bin/consul agent -server -ui -datacenter dc1 -data-dir /tmp/pleiades -bind 127.0.0.1
ExecReload=/bin/kill --signal HUP $MAINPID
KillMode=process
KillSignal=SIGTERM
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

And this command to setup symlinks:
sudo ln -s $PWD/consul.service /etc/systemd/system/consul.service

When this command is run:
sudo systemctl enable consul

Then this is the result:
$ sudo systemctl start consul
$ sudo systemctl status consul
● consul.service - "HashiCorp Consul - A service mesh solution"
     Loaded: loaded (/etc/systemd/system/consul.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-05-21 13:08:34 MDT; 4s ago
       Docs: https://www.consul.io/
   Main PID: 6956 (consul)
      Tasks: 13 (limit: 30700)
     Memory: 28.5M
     CGroup: /system.slice/consul.service
             └─6956 /home/linuxbrew/.linuxbrew/bin/consul agent -server -ui -datacenter dc1 -data-dir /tmp/pleiades -bind 127.0.0.1

May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.265-0600 [INFO]  agent.router: Initializing LAN area manager
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.266-0600 [INFO]  agent.server: Adding LAN server: server="DESKTOP-S8SIUD6 (Addr: tcp/127.0.0.1:8300) (DC: dc1)"
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.266-0600 [INFO]  agent.server.autopilot: reconciliation now disabled
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.266-0600 [INFO]  agent.server: Handled event for server in area: event=member-join server=DESKTOP-S8SIUD6.dc1 area=wan
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.266-0600 [WARN]  agent: [core]grpc: addrConn.createTransport failed to connect to {dc1-127.0.0.1:8300 DESKTOP-S8SIUD6.dc1 <nil> 0 <nil>}. Err: connection error: desc = "transport: Error while dialing dia>
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.267-0600 [INFO]  agent: Started DNS server: address=127.0.0.1:8600 network=udp
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.267-0600 [INFO]  agent: Started DNS server: address=127.0.0.1:8600 network=tcp
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.267-0600 [INFO]  agent: Starting server: address=127.0.0.1:8500 network=tcp protocol=http
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.267-0600 [INFO]  agent: started state syncer
May 21 13:08:34 DESKTOP-S8SIUD6 consul[6956]: 2022-05-21T13:08:34.267-0600 [INFO]  agent: Consul agent running!

And it was verified to be available via curl:
curl -v localhost:8500
*   Trying 127.0.0.1:8500...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8500 (#0)
> GET / HTTP/1.1
> Host: localhost:8500
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Content-Type: text/html; charset=utf-8
< Location: /ui/
< Date: Sat, 21 May 2022 19:08:55 GMT
< Content-Length: 39
<
Moved Permanently.

* Connection #0 to host localhost left intact

And the browser:

repo: nullpo-head/wsl-distrod


text:
Multi controller support

Summary
Similar to Argo Workflows, support multi controller deployment in one cluster/namespace.
Potential solution:
a.) Controller will have a instance-id configuration
b.) Controllers having a instance-id will only take care of Pipeline and Vertex which has same instance-id annotated
c.) Controller without instance-id config will not handle any pipeline, Vertex with instance-id annotated
d.) This logic applies to both cluster scope installation and namespace scope installation
e.) How to handle InterStepBufferService? Shall we follow the same logic?
f.) When doing multi-controller deployment in one namespace (either cluster scope or namespace scope), the configmaps used for different controller deployments should be different, and the admin (anyone who makes the deployment) is responsible for make the change in the deployment manifests, it is not required as a feature to be supported automatically without any manual change.
Use Cases
This can help Numaplane to do no-downtime upgrade when there's a controller upgrade.

Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

should instance-id be the numaflow version?

should instance-id be the numaflow version?

It should not tied to version, the admin (or any platform automates this) should decide what to use. Nothing stops ppl running multiple controllers for different namespaces in one cluster, even they are in the same version.

So in a single namespace as well we can have multiple controllers running the same version?

authors: kohlisid vigith whynowy

repo: numaproj/numaflow


text:
Request np.ravel() implementation in NoPython mode

Thank you and great work!

Do you need the copying behaviour? Otherwise you may try reshape(-1) (which according to the Numpy docs is equivalent).

It is true that ravel() would guarantee the result is seen as contiguous, though, which reshape(-1) would not.

I, myself don't need the copying behaviour for now, So I will use reshape(-1) for now! Thank you

Fixed in PR #1509.

authors: nunocalaim pitrou

repo: numba/numba


text:
Fix IPC handling of sliced cuda array.

Note: cuda IPC API always give the same IPC handle for any pointer from the same allocation.
The fix adds tracking of the offset from the base pointer.

kicked a gpu smoke test

Passed buildfarm cuda smoke test

Thanks for the patch, this seems fine on inspection and the buildfarm is passing. Merging.

authors: sklam stuartarchibald


text:
Use O0 to enable inline and not affect loop-vectorization by later O3…

… passes

this seems to fix ufunc not being vectorized

Related to #6371:

OSX, all builds: Bizarrely, numba.tests.npufunc.test_errors.TestFloatingPointExceptions.test_remainder_float is failing with an assertion error, the length of the warnings/error messages doesn't match (essentially, none were found when one was expected).

Marking as RTM because #6395 passed CI


text:
Remove cu{blas,sparse,rand,fft} from library checks

These libraries are not needed by Numba, and pyculib, which used them,
is deprecated / discontinued. There is therefore no point in checking
for these libraries.
Prior to this commit, the library check:
$ python -c "from numba import cuda; cuda.cudadrv.libs.test()"

gave (for example):
Finding cublas from System
	located at /usr/local/cuda/lib64/libcublas.so.11.2.2.29
	trying to open library...	ok
Finding cusparse from System
	located at /usr/local/cuda/lib64/libcusparse.so.11.3.1.29
	trying to open library...	ok
Finding cufft from System
	located at /usr/local/cuda/lib64/libcufft.so.10.4.0.29
	trying to open library...	ok
Finding curand from System
	located at /usr/local/cuda/lib64/libcurand.so.10.2.3.29
	trying to open library...	ok
Finding nvvm from System
	located at /usr/local/cuda/nvvm/lib64/libnvvm.so.4.0.0
	trying to open library...	ok
Finding cudart from System
	located at /usr/local/cuda/lib64/libcudart.so.11.2.29
	trying to open library...	ok
Finding cudadevrt from System
	located at /usr/local/cuda/lib64/libcudadevrt.a
Finding libdevice from System
	searching for compute_20...	ok
	searching for compute_30...	ok
	searching for compute_35...	ok
	searching for compute_50...	ok

Now it only prints:
Finding nvvm from System
	located at /usr/local/cuda/nvvm/lib64/libnvvm.so.4.0.0
	trying to open library...	ok
Finding cudart from System
	located at /usr/local/cuda/lib64/libcudart.so.11.2.29
	trying to open library...	ok
Finding cudadevrt from System
	located at /usr/local/cuda/lib64/libcudadevrt.a
Finding libdevice from System
	searching for compute_20...	ok
	searching for compute_30...	ok
	searching for compute_35...	ok
	searching for compute_50...	ok

Buildfarm ID: numba_smoketest_cuda_yaml_58.

Buildfarm ID: numba_smoketest_cuda_yaml_58.

Passed.

authors: gmarkall stuartarchibald


text:
Internal error: Storage->getDriver->getAdapter

Larastan Version: v0.2.4
--level used: 0

Description:
Getting this error:
php artisan code:analyse --paths="app/Jobs/ElvisExport.php" --level=0
 ------ --------------------------------------------------------------
  Line   ElvisExport.php
 ------ --------------------------------------------------------------
         Internal error:
         Run PHPStan with --debug option and post the stack trace to:
         https://github.com/phpstan/phpstan/issues/new
 ------ --------------------------------------------------------------

With debug:
   Illuminate\Container\EntryNotFoundException  :

  at /home/vagrant/code/vendor/laravel/framework/src/Illuminate/Container/Container.php:613
    609|         if ($this->has($id)) {
    610|             return $this->resolve($id);
    611|         }
    612|
  > 613|         throw new EntryNotFoundException;
    614|     }
    615|
    616|     /**
    617|      * Resolve the given type from the container.

  Exception trace:

  1   Illuminate\Container\Container::get("League\Flysystem\FilesystemInterface")
      /home/vagrant/code/vendor/nunomaduro/larastan/src/Concerns/HasContainer.php:64

  2   NunoMaduro\Larastan\Methods\Pipes\Macros::resolve("League\Flysystem\FilesystemInterface")
      /home/vagrant/code/vendor/nunomaduro/larastan/src/Methods/Pipes/Macros.php:41

Laravel code where the issue was found:
$tmpPath = Storage::disk('tmp')->getDriver()->getAdapter();

This issue should be fixed, can you guys make a quick test?

Much better! Thanks!

authors: nunomaduro phh

repo: nunomaduro/larastan


text:
Yahoo API

It seems that the Yahoo API that you use has recently stopped working (or very unstable ?), returning error "No definition found for Table yahoo.finance.xchange"

@maximee44 Acknowledged. I will consider moving to a different API in the future. Thanks!

Hi, here i wrote some code to access to a new API (Yahoo one stopped definitively since early November) then it works, with only few modifications :
`// New API Access
        let url = URL(string: "https://free.currencyconverterapi.com/api/v4/convert?q=USD_" + currentInputCurrency! + ",USD_" + currentOutputCurrency! + "")
        let task = URLSession.shared.dataTask(with:url!, completionHandler: {(data, response, error) in
            guard let data = data, error == nil else { return }

        let fetchedInputRateJson: NSNumber
        let fetchedOutputRateJson: NSNumber
        do {
            let json = try JSONSerialization.jsonObject(with: data) as! [String:Any]
            let results = json["results"] as! [String: Any]
            let usd1 = results["USD_" + currentInputCurrency! + ""] as! [String: Any]
            let usd2 = results["USD_" + currentOutputCurrency! + ""] as! [String: Any]
            fetchedInputRateJson = usd1["val"] as! NSNumber
            fetchedOutputRateJson = usd2["val"] as! NSNumber
        } catch {
            print("Error fetching currencies: \(error)")
            return
        }

        let fetchedInputRate = String(describing: fetchedInputRateJson)
        let fetchedOutputRate = String(describing: fetchedOutputRateJson)

        print("Input json: \(fetchedInputRate)")
        print("Output json: \(fetchedOutputRate)")`

Here i wrote a new API access (Yahoo one stopped definitively in early November), then it works with only few modifications :
//New API Access
        let url = URL(string: "https://free.currencyconverterapi.com/api/v4/convert?q=USD_" + currentInputCurrency! + ",USD_" + currentOutputCurrency! + "")
        let task = URLSession.shared.dataTask(with:url!, completionHandler: {(data, response, error) in
            guard let data = data, error == nil else { return }

        let fetchedInputRateJson: NSNumber
        let fetchedOutputRateJson: NSNumber
        do {
            let json = try JSONSerialization.jsonObject(with: data) as! [String:Any]
            let results = json["results"] as! [String: Any]
            let usd1 = results["USD_" + currentInputCurrency! + ""] as! [String: Any]
            let usd2 = results["USD_" + currentOutputCurrency! + ""] as! [String: Any]
            fetchedInputRateJson = usd1["val"] as! NSNumber
            fetchedOutputRateJson = usd2["val"] as! NSNumber
        } catch {
            print("Error fetching currencies: \(error)")
            return
        }

        let fetchedInputRate = String(describing: fetchedInputRateJson)
        let fetchedOutputRate = String(describing: fetchedOutputRateJson)

        print("Input json: \(fetchedInputRate)")
        print("Output json: \(fetchedOutputRate)")

@maximee44 The free.currencyconverterapi.com API has a limit on the free plan. I will consider other options for getting the exchange rates, but thank you for raising this issue!

any new update ? we can use fee api ?

@isotepro no updates at this stage.
I need to find an API that offers the same that Yahoo offered:

An API to get exchange rates
Free
Without limit of number of requests per day

That doesn't seem to exist. But free.currencyconverterapi.com that @maximee44 suggested comes close.
I'm considering updating the app to use free.currencyconverterapi.com, or to pull it out from the store until there's a suitable API. I'll update the ticked on how that goes.

this also have issue
`let url = URL(string: "https://query.yahooapis.com/v1/public/yql?q=" +
"select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(" +
"%22USD" + self.code + "%22)&diagnostics=true&env=store%3A%2F%2F" +
"datatables.org%2Falltableswithkeys")
        let task = URLSession.shared.dataTask(with: url!, completionHandler: {(data, response, error) in

            guard data != nil else {
                print("Error performing Yahoo query.")
                hideActivityIndicator()
                return
            }

            let xml = SWXMLHash.parse(data!)

            guard let rate = xml["query"]["results"]["rate"]["Rate"].element?.text else {
                print("Could not parse XML request.")
                hideActivityIndicator()
                return
            }`

@istorepro thank you. please open a new issue or a merge request to fix that issue.

Hi
Maybe you can add this free API
http://www.mycurrency.net/page/Free+Currency+Converter+API

repo: nunosans/currency


text:
[T4A7][W09-B2]Duan Yichen

Ready for review

Good try, but you are a bit off from TDD. For example, a TDD session starts by adding a failing test, not by adding an empty method. Also, you TDD adds bit of test code and bit of functional code in tandem (you were supposed to commit after each step), not all add tests first. Please take a look at the course handouts and suggested readings given in the assignment description to get a good understanding of TDD.
Please close the PR after reading comments.

authors: Yichen-D damithc


text:
[W6.1h][T09-B3] Niu Yunpeng

Add Printable Interface
Let phone, email, address and name implement Printable
Add test case

Go ahead and close the PR.

Reopening PR as I accidentally closed it.

Close this PR since it has been reviewed by the tutor.

authors: ngsikai yunpengn


text:
[W5.11R][T09-B4] Daniel Ng Sze Yao

Implemented the ability for the address book to sort the people in it by name alphabetically by adding a "sort" command.
Updated necessary java files and also added a new functional class called SortCommand.java
Performed necessary tests using JUnit

Acknowledgments given to @traceurgan for inspiration :)

@HEARTOFAL1ON Some comments added. Please close the PR after reading comments.

Thank you for your review


text:
Use demo output for super simple loading indicator

Just a cursive text message, but since that gets replaced as soon as everything is ready, it works fine.
Fixes #43
Preview:

Updated with a subtle pulse animation on the loading indicator, to make it more obvious that something is happening in the background.

repo: nushell/demo


text:
backwards binary compatibility of libmuser

In libmuser we export some critical structs, e.g. lm_dev_info, lm_cap_t. Doing so makes coding for the user simpler, however we risk not being able to upgrade libmuser while maintaining backward compatibility, since we won't be able to modify these structs without breaking it. Therefore it would be better to make these structs opaque and introduce public functions for e.g. initializing lm_dev_info. @swapnili @franciozzy thoughts?
If we still want to keep some structs public, we might have to do something similar to VFIO: introduce an argsz member at the beginning of the struct so that we know the amount of data passed by the user and only append new struct members whenever we have to change them.

We should make most libmuser structs private and use functions instead.

For an example, let's take lm_cap_t. Currently, if we need to add a cap that changes the ABI size of lm_cap_t, that breaks ABI compatibility completely for all existing clients, because we have an array of lm_cap_t incoming in lm_dev_info_t.
But instead we could have something like:
lm_ctx_add_pci_cap(lm_ctx_t *ctx, uint8_t cap_id, char *cap_buf, size_t cap_size);
If we want to support a new capability, then, we don't need to make incompatible changes to the API and ABI (though of course older libmuser versions won't support the new cap).
I think Thanos is suggesting we review the entire API for this sort of issue, and in general avoid exporting any public struct. Probably the first step here is to go through the API in detail and see what potential issues we can identify here.

I think Thanos is suggesting we review the entire API for this sort of issue, and in general avoid exporting any public struct. Probably the first step here is to go through the API in detail and see what potential issues we can identify here.

Exactly!

fixed by #115

authors: jlevon tmakatos

repo: nutanix/muser


text:
签名组件报错

nutui-uniapp 版本号
1.7.8
平台
h5
重现链接
https://uniapp-nutui.tech/components/business/signature.html
重现步骤
官网上的例子就无法使用
期望的结果是什么？
无法使用
实际的结果是什么？
h5和APP端均可使用
环境信息
No response
其他补充信息
No response

这是uniapp内部缺陷，升级uniapp版本即可 uniapp 4.15.2024050802

repo: nutui-uniapp/nutui-uniapp


text:
How about update .gitignore ?

Like this https://github.com/github/gitignore/blob/master/Node.gitignore

From my point of view, it's not necessary.
the current .gitignore has enough rules in agreement with a standard Nuxt project.
Then, after create your project from vue-cli, you can custom your .gitignore as you wish.
In addition, you can to push your global rules  in your global .gitignore config:
https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
https://gist.github.com/subfuzion/db7f57fff2fb6998a16c

I like your answer. 👍

authors: NicoPennec limichange

repo: nuxt-community/starter-template


text:
WebpackOptionsValidationError, Unable to build

The command nuxt build fails throwing an error WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. on Heroku.
Stack trace:
nuxt:build Building... +0ms
[AXIOS] Base URL: https://now-staging.hl.com/ , Browser: https://now-staging.hl.com/
  nuxt:build App root: /Users/aslam/Work/hl-student-web +0ms
  nuxt:build Generating /Users/aslam/Work/hl-student-web/.nuxt files... +0ms
  nuxt:build Generating files... +5ms
  nuxt:build Generating routes... +17ms
  nuxt:build Building files... +26ms
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.module.rules[2].use should be one of these:
   non-empty string | function | object { loader?, options?, query? } | function | [non-empty string | function | object { loader?, options?, query? }]
   Details:
    * configuration.module.rules[2].use should be a string.
    * configuration.module.rules[2].use should be an instance of function.
    * configuration.module.rules[2].use should be an object.
    * configuration.module.rules[2].use should be one of these:

Complete stacktrace: https://gist.github.com/aslam/b1e4bfb4a8c07ce158dd44ccaafdaea1
My package.json looks like this: https://gist.github.com/aslam/d14bf1efdfcec8a1dcbcce32ab3fd5d9
and nuxt.config.js: https://gist.github.com/aslam/35302868dbc9ab75ad6deae7e89f53cf
The build works locally. I have specified the node and npm versions to use in package.json so that the Heroku box also use the same versions as I am.
"node": "6.11.0",
"npm": "3.10.10",
"yarn": "0.27.5"

Excuse me, can you provide your nuxt.config.js?

@shirohana sure:
module.exports = {
  /*
  ** Router config
  */
  router: {
    middleware: ['namespace', 'check-auth']
  },
  /*
  ** Headers of the page
  */
  head: {
    title: 'HL Student - Web',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: 'Nuxt.js project' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' }
    ]
  },
  /*
  ** Customize the progress-bar color
  */
  loading: { color: '#3B8070' },
  /*
  ** Build configuration
  */
  build: {
    vendor: ['vuetify', 'vuelidate']
  },
  modules: [
    '@nuxtjs/pwa',
    '@nuxtjs/component-cache',
    ['@nuxtjs/axios', {
      baseURL: 'https://now-staging.hl.com/',
      credentials: false,
      requestInterceptor: function _reqInterceptor (config, { store }) {
        if (store.getters.accessToken) {
          config.headers.common['Authorization'] = 'Bearer ' + store.getters.accessToken
        }

        return config
      }
    }]
  ],
  plugins: [
    '~plugins/vuex-router-sync.js',
    '~plugins/vuetify.js',
    '~plugins/vuelidate.js',
    '~plugins/firebaseConfig.js'
  ],
  css: [
    { src: '~assets/style/app.styl', lang: 'styl' },
    { src: '~assets/style/typography.scss', lang: 'scss' }
  ]
}

Currently, I am able to do a local build via nuxt build successfully. However, this is still failing on Heroku.

In the webpack project they pointed me to configuration.module.rules[2].use[2].options is not an object.

Should be fixed with the last release, feel free to comment or reopen this issue if the bug persists.

authors: alexchopin aslam shirohana


text:
Dynamic nested path

How to be in this situation?

Conditions:

params _lang and _alias dynamic
link pages/_alias.vue  to pages/_lang/_alias.vue...

~My solutions (did not work):~
~1. redirect to next route... beforeEnter (to, from, next) => {}~
~2. merge files: pages/_lang/index.vue and pages/_lang/_alias.vue~
~3. set page validate params (only render page 404, no reroute)~
~4. no priority at route (no function)~
~....~

Created file pages/_lang.vue for pages/_lang/index.vue and pages/_lang/_alais.vue, remove file pages/_alias.vue...
Result:
/ - ok
/en - ok
/en/test - ok
/test - unavailable

Created a repository to demonstrate my situation.
This repository not available pages: /test1, /test2, because the file /middleware/i18n.js in the line 7 exit.
How to make instead of exit redirect to another route? Or are there other options?

Hi, you could use the router-module instead of the default pages FS router in your case.
https://github.com/nuxt-community/router-module

authors: Serdgjo alexchopin


text:
Nuxt.js program in Linux memory overflow problem

I used Nuxt.js to build my blog application, deployed in linux, the memory used is too high.
My server using ubuntu operating system, 1g memory, I use pm2 persistent node application.
I deploy my project every time, you can see the memory is normal, about 80m or so,
After a period of time, the memory will soar to more than 500m, the final memory overflow, resulting in server crashes,
When I found that memory usage up to 90% of the time, I kill off the nuxt process, pm2 immediately restart it, then returned to normal
I am curious, why is my memory usage going up all the time?
my nuxt.js applaction code
Here is the screenshot
Abnormal state

normal status

My solution is set the max_memory_restart: "160M" attribute to ecosystem.config.js for pm2, the pm2 will listen the app memory, it will auto restart the app when the memory beyonds 160m, it can works, but it's not right solution.
I get the document from Nuxt.js, i try to set the nuxt.config.js cache: false or  cache:{ max: 20, maxAge: 600000 } , but i think it does not work well.
I would like to find a better source of the problem, as well as the solution, thanks!

I have the same problem, but found a workaaround for this. I use idle-gc and --expose-gc flag for node.

@hendrysadrak You have not tried, whether it is caused by the cache mechanism?

@surmon-china  I think it is because how node garbage collection is done. It doesnt do gc when you have memory available, when you run out of memory, then it starts gc.

@surmon-china Also, i don't use nuxt start. I did a script which is similiar to https://nuxtjs.org/api/nuxt-render

@hendrysadrak I will try do you solution, thanks!

Hi, thanks for the report.
@surmon-china Can you confirm and close the issue, if it's due to GC and if it solves the problem when you will give a try?

@alexchopin OK:)

authors: alexchopin hendrysadrak surmon-china


text:
Unexpected token export

Does models directory support ES6?
I'm trying to export a variable but I got **Unexpected token export** error.
models/album/index.js
let x = 'x'

export default x

Wrong issue. Remove this issue if it's possible. @Atinux


text:
Infinite loop on hot reload when async import

Hello. I've found odd behavior of hot reload - when I try to make await import on the @formatjs package I'm getting an infinite loop (refreshing browser). I'm using Safari in this case (which don't support intl.numberformat fully).

Versions

nuxt: 2.14.6
node: 12.15.0

Reproduction
import {shouldPolyfill} from '@formatjs/intl-numberformat/should-polyfill'

export async function loadLanguagePolyfills(locale: string) {
  await polyfillIntlNumberformat(locale)
}

export async function polyfillIntlNumberformat(locale: string) {
    if (shouldPolyfill()) {
        await import('@formatjs/intl-numberformat/polyfill')
    }
    if ((Intl.NumberFormat as any).polyfilled) {
      try {
        await import(`@formatjs/intl-numberformat/locale-data/${locale}`)
      }
      catch {
        await import('@formatjs/intl-numberformat/locale-data/en')
      }
    }
}

Additional Details

Steps to reproduce

Run code above in plugin
Run nuxt server
Enter the site
Make small change (anything which can trigger hot reload)

What is Expected?
No infinite loop
What is actually happening?

I have the exact same issue, I don't think the reload is cause by the dynamic import because it happen also when using the static import.
import '@formatjs/intl-numberformat/polyfill'
import '@formatjs/intl-numberformat/locale-data/en' // locale-data for en
import '@formatjs/intl-numberformat/locale-data/fr' // locale-data for en

Hi. Try to use plugin.
import { Plugin } from '@nuxt/types'
const polyfill: Plugin = async (context) => {
  if (process.server) {
    return
  }
  const code = ‘fr’
  await Promise.all([
    polyfillIntlNumberFormat(code)
  ])
}
export default polyfill

async function polyfillIntlNumberFormat(code: string) {
  if (!detectIntlNumberFormat()) {
    console.log('polyfilling intl number format')
    await import(‘@formatjs/intl-numberformat/polyfill’)
    console.log('polyfilling intl number format locale', code)
    await import(`@formatjs/intl-numberformat/locale-data/${code}`)
  }
}

it works without any problems

I do not use Typescript

It will work without types I believe ;)

As I said i tried both example inside a Nuxt plugin and it still cause an infinite loop.
import '@formatjs/intl-numberformat/polyfill'
import '@formatjs/intl-numberformat/locale-data/en' // locale-data for en
import '@formatjs/intl-numberformat/locale-data/fr' // locale-data for fr

and
import {shouldPolyfill} from '@formatjs/intl-numberformat/should-polyfill'
async function polyfill(locale: string) {
  if (shouldPolyfill()) {
    // Load the polyfill 1st BEFORE loading data
    await import('@formatjs/intl-numberformat/polyfill')
  }
  if (Intl.NumberFormat.polyfilled) {
    switch (locale) {
      default:
        await import('@formatjs/intl-numberformat/locale-data/en')
        break
      case 'fr':
        await import('@formatjs/intl-numberformat/locale-data/fr')
        break
    }
  }
}

Seems like i have to import both en plus en-CA, and fr plus fr-CA .
Only importing fr/en or fr-CA/en-CA does not work and result in a refresh loop.


text:
chore: upgrade circleci config to v2.1

Types of changes

[ ] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

This upgrades the current circleci config to v2.1. One of the main benefits of v2.1 is that builds can be automatically cancelled when a new build is triggered, see here for more info. This could save some time in some cases.
This config is based on the config I have been using for nuxt/vue-meta and nuxt/press
Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly. (PR: #)
[ ] I have added tests to cover my changes (if not applicable, please state why)
[ ] All new and existing tests are passing.

Btw, the tests for this PR are still using the old config

@clarkdo Feel free to make changes to this pr yourself if you really believe this is a blocking issue

I don’t think it blocks anything, it’s just in reviewing, we can hear feedback from others, if no concerns, it can be merged

Cool

@clarkdo Thank you for merging :hugs:
@pi0 Pinging you for visibility so you know circleci pipelines are now enabled

authors: clarkdo pimlie


text:
If you jump from a page that has not introduced a module to a page that has introduced a module in the form of CDN, an error will be reported

For example, I have three routing pages: / A, / B, / C
I did not introduce echarts.js in the form of CDN on the / A and / b pages; However, I introduced it locally on the / C page
<script>
export default{
    head: {
      script: [{
        src: 'https://www.xxx.xxx/echarts.min.js'
      }]
    },
}
</script>

At this time, if I forcibly refresh the page on any page of a and B (Ctrl + F5); When you jump to page C, the following error will be reported:
An error occurred while showing the error page

Unfortunately an error occurred and while showing the error page another error occurred

Error details: ReferenceError: echarts is not defined
[Go back to home](http://192.168.0.100:1258/)

I noticed that this was caused by not reloading the CDN JS in the head after switching the route. I want to know how to solve this problem

This is something you can use the callback property for, you can set a local variable once the script is loaded which can trigger the logic to run.

authors: harlan-zw sunny-fun

repo: nuxt/nuxt


text:
error page not shown after abortNavigation

Environment

Operating System: Windows_NT
Node Version:     v14.19.1
Nuxt Version:     3.0.0-rc.11
Nitro Version:    0.5.4
Package Manager:  yarn@1.22.15
Builder:          vite
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-i5nygk?file=error.vue
Describe the bug
When throwing an error or aborting navigation from middleware nuxt does not render the error.vue page but instead shows the default nuxt error page. If this is not the intended usage of abortNavigation please provide an alternative.
using showError on a page using middlewares would trigger the same issue.
Additional context
No response
Logs
No response

I am having the same issue.
@danielroe  The same is not working if we use  instead of
How would it work if we use ?
Here's the repro https://stackblitz.com/edit/github-i5nygk-gnbczq?file=pages%2Findex.vue

@jahidanowar You are using 3.0.0-rc11. Here's an updated stackblitz: https://stackblitz.com/edit/github-i5nygk-tpvqbg.
Note also this linked issue: https://github.com/nuxt/nuxt/issues/15432.

@jahidanowar You are using 3.0.0-rc11. Here's an updated stackblitz: https://stackblitz.com/edit/github-i5nygk-tpvqbg.
Note also this linked issue: #15432.

Well, it seems like it's working fine. I think the issue could be closed.

I think the remaining edge case is that perhaps a fatal error thrown in middleware with abortNavigation should show an error page.

authors: danielroe jahidanowar vis97c xanderbarkhatov


text:
Escaping nested routing when pages are split into different layers

Environment

Operating System: Darwin
Node Version:     v18.15.0
Nuxt Version:     3.5.1
Nitro Version:    2.4.1
Package Manager:  pnpm@8.5.0
Builder:          vite
User Config:      -
Runtime Modules:  -
Build Modules:    -

Reproduction
https://github.com/wonszfill/nuxtLayersNestedRoutes
Repository containing example with three layers

front (main layer)
orders
contractors
The repository contains two branches, showing difference in behaviour of nested routing when pages are split into layers.

Describe the bug
When routing is splitted into layers it is possible to escape nested routing.
Page contractorId is supposed to have some nested routes -> conractors profile, data etc. These pages should have common menu set up in [contractorId]. On the other hand there happens to be [officeId] page, which must not have said common menu from [contractorId] nested routing.
When these pages are set up in a way where [contractorId] and desired nested routes are in separate layer from [officeId] in works in that way - content from [contractorId] is not visible in [officeId].
Layers documentation does not cover this topic (nested pages). As for my use case, behaviour described above could be beneficial, but I understand that it could be considered as bug and fixed in the future, impacting my current routing.
Additional context
No response
Logs
No response

Hey @wonszfill, thanks for the issue and reproduction repo!
It's hard to follow exactly what the issue is you're describing. Do you think you could also make a minimal reproduction highlighting the issue in StackBlitz? :pray:
Any reduced complexity would be a plus

@harlan-zw I think it is the same bug that i describe and make a minimal repro in this issue : #15687

Okay, let's track there.

authors: danielroe harlan-zw slarrasoain wonszfill


text:
feat(vue-app): added nuxt-loading events

Types of changes

[ ] Bug fix (a non-breaking change which fixes an issue)
[x] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

Resolves #7893, added the following events to nuxt-loading:

progress (on percentage change)
started
paused
resumed
failed
finished

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly. (PR: #)
[x] I have added tests to cover my changes (if not applicable, please state why)
[x] All new and existing tests are passing.

Codecov Report

Merging #7930 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev    #7930   +/-   ##
=======================================
  Coverage   68.92%   68.92%
=======================================
  Files          91       91
  Lines        3846     3846
  Branches     1041     1041
=======================================
  Hits         2651     2651
  Misses        971      971
  Partials      224      224

Flag
Coverage Δ

#unittests
68.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37c903f...82a4a4b. Read the comment docs.

Hi @rotem-bar and thanks for PR :heart: We have to keep it pending for next semver/minor release which is after nuxt3 api was more stable. Meanwhile you can override it by creating app/components/nuxt-loading.vue

#7930
Merge pull requested
packages/vue-app/template/components/nuxt-loading.vue

#7930
Merge pull requested
packages/vue-app/template/components/nuxt-loading.vue

As Nuxt 2 is currently in maintenance-mode until June 30, 2024, we are not aiming to merge any more features and so, regretfully, I am closing this PR. My apologies that we weren't able to include it in v2.17 🙏

authors: codecov-commenter danielroe hafixo pi0 rotem-bar


text:
[FEA] Allow users to write, compile, and load custom sources/stages/sinks without recompiling all of morpheus

Is your feature request related to a problem? Please describe.
Currently, users need to build Morpheus from source in order to get access to the CMake configuration and header files necessary to develop C++ stages & messages outside of the source tree.
Describe the solution you'd like
Install headers & cmake config file. This requires altering the CMake files to add the correct install options.

Completion Criteria

[ ] Updated CMake files to include C++ headers and CMake configuration files when installing the CMake project
[ ] Inclusion of the headers and config files in the Morpheus conda package (Should be included automatically from previous item)
[ ] Addition of an example which builds a C++ stage using Morpheus headers

[ ] This example should be optionally included when building from the Morpheus root (See MRC for an example)
[ ] This example should be able to be compiled from outside the Morpheus root project as well (See MRC for an example)
[ ] This project should install into the python environment to make testing easy (See MRC for an example)
[ ] This example should be built as a part of CI to ensure it does not get out of date

[ ] [Optional] Update developer examples to follow the pattern established in the example above

authors: dagardner-nv mdemoret-nv

repo: nv-morpheus/Morpheus


text:
Always corrects to empty git subcommands

thefuck shows the right correction but always executes a empty git subcommand.
Actual output:
λ Imagine ~ → git commot
git: 'commot' is not a git command. See 'git --help'.

Did you mean this?
        commit
λ Imagine ~ → fuck
git commit [enter/↑/↓/ctrl+c]
' is not a git command. See 'git --help'.

Expected output:
git commit being executed
This is run on cygwin with zsh.

Buggy Configuration:
OS: Windows
Terminal: Any *nix shell
Python: Any (Installed on Windows)
When on above configuration, the python uses CRLF for newline, but the shell does not understand CR character. This gives errors while setting the alias and running corrected commands.
Solution can be to prevent \n translation to CRLF when OS is Windows and Shell is not powershell.
If anybody has any idea how to prevent that translation, please do help.

authors: divykj inputfalken

repo: nvbn/thefuck


text:
🛑 Kubeflow ML Platform is down

In a099aaf, Kubeflow ML Platform (https://kubeflow.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kubeflow ML Platform is back up in 6e60ac2.

repo: nvgsg/lab-upptime


text:
🛑 PufferAI HPC Portal is down

In 51dc07b, PufferAI HPC Portal (https://hpc.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PufferAI HPC Portal is back up in 6c93934.


text:
🛑 Kubeflow ML Platform is down

In 7ec6c73, Kubeflow ML Platform (https://kubeflow.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kubeflow ML Platform is back up in 0812bf3.


text:
🛑 PufferAI HPC Portal is down

In f516517, PufferAI HPC Portal (https://hpc.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PufferAI HPC Portal is back up in 9c4d847.


text:
🛑 Kubeflow ML Platform is down

In 17f5480, Kubeflow ML Platform (https://kubeflow.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kubeflow ML Platform is back up in abe4e52.


text:
Seperate out the lsp functionality (like - references) and add a functionality to navigate document symbol.

Separating the lsp functionalities from builtin's to keep it minimal and have a potential to add more lsp related features. Such as vim.lsp.buf.document_symbol()

@the-codingguy both document_symbol and workspace_symbol are already supported :)
https://github.com/nvim-lua/telescope.nvim/blob/3d423a3b592ab49cbe89a4bf88d2cab6bd663509/lua/telescope/builtin.lua#L159
https://github.com/nvim-lua/telescope.nvim/blob/3d423a3b592ab49cbe89a4bf88d2cab6bd663509/lua/telescope/builtin.lua#L190

Yeah, I think we can close this.
At some point, we will probably split builtin into multiple files and then just have built be the thing that exposes all of them.

authors: clason the-codingguy tjdevries


text:
builtin.buffers() split/vsplit/tab mappings do not work

Steps to reproduce

Open a buffer
:lua require'telescope.builtin'.buffers()
Select a buffer and press <c-x> or <c-v> or <c-t>

Actual behavior
After a small hang, the selected buffer opens in-place of the current one.
Expected behavior
It should open the selected buffer in a split/vsplit/tab accordingly as stated in telescope.nvim#mappings. The same issue does not seem to occur with other builtin pickers.

Hey thanks for your report. I just implemented a "hack", i'm not 100% sure about.
Could you test #99.

Yes, it fixes it!


text:
[Feature request] Toggle command

Would be nice a toggle command, that allows to hide the Spectre window.
By the way, nice name! Spectre it's one of my favorites heroes 😄

Thanks i really like that name too. even i always play support and offlane.

Hi @windwp how to use command resume_last_search()? I use open() and search in spectre window, and use :q to exit. Then I use open() again and resume_last_search(), but nothing is resumed in spectre window.

This issue is marked as closed, but I was not able to figure out how to toggle the panel via the same keymap (which I believe is what the original issue was about).
I was able to get the desired behavior with this keymap function which relies on spectre.state:
vim.keymap.set("n", "<leader>sp", function()
    local spectre = require("spectre")
    local spectre_state = require("spectre.state")

    local is_open = false
    if spectre_state.bufnr ~= nil then
        local wins = vim.fn.win_findbuf(spectre_state.bufnr)
        if next(wins) ~= nil then -- check if wins is empty
            is_open = true
        end
    end

    if is_open then
        spectre.close()
    else
        spectre.open()
    end
end, { desc = "Toggle [S][P]ectre search" })

I have not yet figured out how to make it work with resume last search unfortunately.
@windwp did I miss a command or function that could provide this toggle behavior without having to implement this function?

Circling back, anyone reading this, no need to use my code anymore, this does exactly the same thing:
require("spectre").toggle()

authors: adelarsq fjchen7 itsFrank windwp

repo: nvim-pack/nvim-spectre


text:
ci: add stylua, luacheck, luarc, editorconfig, pre-commit hooks

Mostly sourced from https://github.com/nvim-tree/nvim-tree.lua

Can't we just avoid git hooks and have a shell script that runs luacheck/stylua/make? You'll have to do make anyway, you can't automate everything.

Can't we just avoid git hooks and have a shell script that runs luacheck/stylua/make? You'll have to do make anyway, you can't automate everything.

That is sensible. It sidesteps the git hooks issue.
Added to makefile and updated doc.

Much better thanks :)

repo: nvim-tree/nvim-web-devicons


text:
Feature/semver based version

Hopefully Fixes #41

Proposed Changes

using semver.coerce in getJavaVersion
using semver.satisfies-based comparison instead of float compare to eliminate '17.09' problem
subjectively cleaner version of findJavaVersionHome

Testing on non-mac platforms is required.

Codecov Report
Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (8bea8a9) 86.66% compared to head (3ffa9aa) 90.27%.

Files
Patch %
Lines

lib/java-caller.js
76.66%
7 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
+ Coverage   86.66%   90.27%   +3.61%
==========================================
  Files           3        3
  Lines         225      216       -9
==========================================
  Hits          195      195
+ Misses         30       21       -9

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

@NecroKote it seems nice :)
Maybe you can add more CircleCI tests so we are sure before I release a new version ?

@nvuillam I haven't really used CircleCi before and I'm not sure which tests I can add here.
So any guidance is much appreciated :)

I don't really like to let hand users make the tests after the release , I 'll generate a beta and test on a new version of npm-groovy-lint who contains more tests :)
But please can you handle MegaLinter errors ? :)

Sure, I'll check them out

Note: you can disable KICS, it's way too chatty :)

authors: NecroKote codecov-commenter nvuillam

repo: nvuillam/node-java-caller


text:
scheduling, unscheduling, and unpublishing

Trello Tickets

schedule publish
unpublish
toolbar updates
publish updates

Cool New Stuff

added ability to unpublish
added ability to schedule publish
added ability to unschedule publish
scheduling changes publish button color in the toolbar
publish pane is created dynamically based on publish/schedule state
when loading the page, it will display scheduled or published status
when re-scheduling, publishing now, or unpublishing, it will unschedule (if the page is scheduled to publish already) (CQ not doing this was a pain point, according to editors)
scheduling form uses native date and time fields
added db.urlToUri helper method
added expectBooleanResult and db.getHead
added edit.unpublishPage to match edit.publishPage
added edit.schedulePublish and edit.unschedulePublish
added page-state service
:cool: state.formatTime uses moment.js's neat formatting rules
added schedule progress color
updated disabled button styles

Next Steps

add message in the publish pane giving a more detailed article state (e.g. "this was published on Friday at 10am")
update edit.unschedulePublish when amphora changes (so we don't have to search through all the scheduled entries)

Coverage decreased (-1.07%) to 86.657% when pulling bbae45e20b0813d145ff63074db892d4e737f58a on schedule-ui into 2917175bf9441e17262464222d108ea38917b611 on master.

Coverage decreased (-0.8%) to 86.907% when pulling 0141c52859349c8271dc510b18398c39a89a3808 on schedule-ui into 2917175bf9441e17262464222d108ea38917b611 on master.

Coverage decreased (-0.8%) to 86.907% when pulling 8238bd9cd62e7b54efd238eb254db845dad2839b on schedule-ui into 2917175bf9441e17262464222d108ea38917b611 on master.

Coverage decreased (-0.8%) to 86.939% when pulling 8238bd9cd62e7b54efd238eb254db845dad2839b on schedule-ui into 2917175bf9441e17262464222d108ea38917b611 on master.

Coverage decreased (-0.8%) to 86.939% when pulling 8238bd9cd62e7b54efd238eb254db845dad2839b on schedule-ui into 2917175bf9441e17262464222d108ea38917b611 on master.

Coverage decreased (-0.07%) to 87.66% when pulling f2467dffcd9f0ae71e2db5e3c67708576b7cd4d2 on schedule-ui into 2917175bf9441e17262464222d108ea38917b611 on master.

Coverage increased (+0.2%) to 87.922% when pulling 0c73e8d0c373980aee60ecb9632f08eba15cebde on schedule-ui into 2917175bf9441e17262464222d108ea38917b611 on master.

:+1: from morgan, christian

authors: coveralls yoshokatana

repo: nymag/clay-kiln


text:
HW1

add problem 1 from fall2021
add collaborator box

Sorry, I have modified the files.


text:
Allow customising gateway properties when Identifiy is sent.

Is your feature request related to a problem? Please describe.
Currently, identify properties are hardcoded into the codebase.
Allowing to edit these would grant fine control over some undocumented behaviour. Like replacing the browser property to Discord iOS/Android to add a mobile status for example.
Describe the solution you'd like
Allow editing properties.
Describe alternatives you've considered
None.
Additional context
None.

Hi,
nyxx only implements features officially supported by the Discord API. The Discord documentation says those fields should be representative of the library used, so that is what nyxx uses. Passing customisable values to these fields is not supported.
This is possible with minimum patching, and I've uploaded a proof of concept to the hack/customizable-gateway-properties of my nyxx fork. I make no guarantees about the stability of this patch or whether it violates TOS.
I will keep that branch up to date at least for a while, but I encourage you to use your own. We will not be adding support for this to the main repo, and I won't be spending too much effort keeping that branch up to date.
Closing as unplanned.

authors: Noxits abitofevrything

repo: nyxx-discord/nyxx


text:
Support typescript indentation

It doesnt seem like tslint indent is supported, which exposes things like interfaces to inconsistent spacing.

Hi @dwasyluk, thanks for submitting this issue. Could you please provide an example?
Any kind of documentation will also be very helpful (maybe a link to TSLint?)

#219

closing this in favor of #201

authors: armano2 bradzacher dwasyluk weirdpattern

repo: nzakas/eslint-plugin-typescript


text:
remove PhantomData from gates

in https://github.com/o1-labs/proof-systems/blob/master/kimchi/src/circuits/polynomials/complete_add.rs#L50
#[derive(Default)]
pub struct CompleteAdd<F>(PhantomData<F>);

should be able to compile to
pub struct CompleteAdd<F>;

unless I'm missing something
(same for all the other gates)

will take a look ;)

Note: It won't compile as it is, the compiles requires (from my understanding) some type (like PhantomData) to pretend it actually stores a value, even though it doesn't. Removing it would probably require moving a few things around, not sure if that's what is wanted

Ah interesting, maybe I was wrong in my assumption. I though it was here because we used to need to call default() on it. What was the error you got btw?

parameter `F` is never used
consider removing `F`, referring to it in a field, or using a marker such as `PhantomData`
if you intended `F` to be a const parameter, use `const F: usize` insteadrustc [E0392](https://doc.rust-lang.org/error-index.html#E0392)

I would suspect that removing PhantomData entirely would require some structural changes, but not sure - I could also just be missing something, tried a few things already

Yeah I guess the error makes sense! You can't use a generic parameter if it's not used, hence PhantomData. Well thanks a lot for investigating this! Sorry for recommending a task with no better outcome :D

No worries, thats also a part of the process!


text:
[easy][gate] create constructor for gate

This will facilitate refactors on the gate, for example https://github.com/o1-labs/proof-systems/pull/793

Less verbose, good idea

authors: mimoo querolita


text:
Fixed several clippy warnings

This PR fixes some clippy warnings, in order to reduce the clippy output noise, so only relevant lints would be visible.

Thanks a lot @ZapAnton :+1: