Igonchar/tcomp 603 jdbc caching

What is the current behavior? (You can also link to an open issue here)
ClassLoader caching is enabled for JDBC components
What is the new behavior?
ClassLoader caching is disabled for JDBC components
Please check if the PR fulfills these requirements

[x] The commit message follows Talend standard
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[ ] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
Related to https://jira.talendforge.org/browse/TCOMP-603

Pull request test result: failure :x:

Depends on https://github.com/Talend/daikon/pull/256

Pull request test result: failure :x:

Pull request test result: success :star:

Why are we using Mocks? We should be testing this with actual databases. Even the basic tests should use something like HSQL which is simple. We should have tests for all drivers that we support with the actual databases.

Pull request test result: failure :x:

Pull request test result: success :star:


Automatic silent refresh can lead to a refresh request flood if refresh endpoint returns no new id_token

Describe the bug
Using the offline_access scope with an oidc compliant IdP and response mode code with PKCE, the initial auth request results in an id_token, an access_token and a refresh_token. The application sets up silent refresh using setupAutomaticSilentRefresh(). As soon as a token is about to expire (depending on the timeoutFactor), a silent refresh is triggered. If the IdP answers this request with a new access_token, but no new id_token, this leads to a new refresh request each second (since the id_token was not refreshed). With a lot of users of a web application this can lead to a huge load on the IdP. Not refreshing the id_token is perfectly valid according to RFC6749 Section 6 and OIDC Section 12.2.
Expected behavior
If no new id_token is received during a token refresh but the listenTo parameter of setupAutomaticSilentRefresh is set to any, an token_refresh_error should be emitted (to make the developer aware of this) or alternatively at least an exponential backoff should be applied.
Workaround
Set the listenTo parameter of setupAutomaticSilentRefresh to access_token, however, this is not really documented, not intuitive, and can easily be overlooked.

Thanks for pointing this out. The best way to fix this in short term is to call refreshToken by yourself. Then you are full in control over it.


Can't install irmin-unix on OS X Yosemite

I have ocaml 4.03 and OPAM 1.2.2 installed. When I try to install the irmin-unix package I get this message:
Dans-MacBook-Pro:ml danl$ opam install irmin-unix
The following dependencies couldn't be met:
  - git-unix -> cmdliner < 1.0.0
Your request can't be satisfied:
  - No package matches cmdliner<1.0.0.

No solution found, exiting

Do I have the wrong version of something?
Thanks,
Dan

Try to pin cmdliner to a lower version (0.9.8). I'll release a fix later today.

Ok, it seems your fix worked -- I got further. I deleted my ~/.opam and tried again... now it has trouble compiling src-unix/irmin_unix.ml.
This is my error:
File "src-unix/irmin_unix.ml", line 82, characters 42-60:
Error: This expression has type
         Irmin_watcher_core.t =
           int -> string -> (string -> unit Lwt.t) -> (unit -> unit) Lwt.t
       but an expression was expected of type
         Irmin.Private.Watch.hook =
           int ->
           string -> (string -> unit Lwt.t) -> (unit -> unit Lwt.t) Lwt.t
       Type unit is not compatible with type unit Lwt.t
Command exited with code 2.

Can you try to install irmin-unix.1.0.1 that has been released a few days ago (don't forget to remove the pins). Normally it should work fine with the latest cmdliner.

Yeah, my opam pins are removed, and cmdliner isn't the problem any more. Installing irmin-unix.1.0.1 yields the same error as my 2nd post... with mismatched type of Irmin_watcher.hook.

What does opam list give you?

Maybe this can help.  The error seems to show up with irmin-watcher.0.1.4 but not irmin-watcher.0.2.0. The interface of hook changed between those versions: https://github.com/samoht/irmin-watcher/compare/0.1.4...0.2.0#diff-8ff6e9fd0382333475707185e6fa1336R72.

Yes, that's indeed the cause of the error: there is a missing version constraint in irmin-unix, I'll add it.

See https://github.com/ocaml/opam-repository/pull/8760 and https://github.com/mirage/irmin/pull/428

That fixed it.


Errors detected while running the preLaunchTask on every task run

I have message "Errors detected while running the preLaunchTask" on every task run. But my preLaunchTask does not contain errors, when I run task via "F1->Tasks: Run task" there is no problem.
launch.json:
{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "Run local debug",
			"type": "node",
			"request": "launch",
			"cwd": "${workspaceRoot}/build",
			"program": "${workspaceRoot}/build/server.js",
			"outDir":  "${workspaceRoot}/build",
			"stopOnEntry": false,
			"sourceMaps": true,
			"preLaunchTask": "Build debug local"
		}
	]
}

tasks.json:
{
	"version": "0.1.0",
	"command": "npm",
	"isShellCommand": true,
	"showOutput": "silent",

	"tasks": [
		{
			"taskName": "Build debug local",
			"suppressTaskName": true,
			"args": ["run", "gulp", "--", "--stand=local"],
			"isBuildCommand": true
		}
	]
}

gulpfile.js:
gulp.task("default", function(done) {
	done();
});

package.json:
{
...
  "scripts": {
    "gulp": "./node_modules/.bin/gulp",
  }
...
}

Can you please attach a screenshot of your whole vscode with the error message you get.
Do you have some errors shown in the lower right corner of your screen?

This issue don't reproduce after restart vscode. Debug works perfectly. Please close it. Sorry.
Message displayed at top of window. Debug console was empty. In ouput console was not errors.

hi all,
I encounter the same issue seems like this.
When I started debugging at the first time(with F5), then error message didn't display. Then if I try to reconnect to debug instance(with Ctrl + Shirt + F5), the error message display.
I defined a task that compiles code from ES6 to ES5 and added it to preLaunchTask. Via "F1->Tasks: Run task" there is no problem.
something like this:

Anybody can help me? Although it wasn't a big problem, but it was really noisy.
Thx a lot.

Do you have some errors shown in the lower right corner of your screen?

@isidorn
Sorry for the delay, I didn't see any errors shown in the lower corner of my screen.

Then we would appreciate if you could create a repository on github where we can reproduce this behavior so we can investigate. Or some other way to reproduce this issue.

@isidorn
It seems that the issue only occurs on Ubuntu, caused I've tested it on Win 7 and Mac OS, the error message didn't display. Maybe it caused by some operations related to super user permissions. If I run VS Code by the super user, the error messages went away.
Anyway, thanks for your help.
My learning extension project is HERE if you need it for further discovery.
Hope you have a nice day !!

This is happening to me as well on Mac OS X.
When the error message starts appearing, clicking "Continue" on the message allows debugging to proceed normally (apparently the preLaunchTask, in my case a build step, actually worked fine).
In cases where the "errors detected" message appears on launch, there ARE errors listed at the bottom left of the VS Code window, but they don't appear to have been generated by my build preLaunchTask.
Instead, they are syntax errors that VS Code has found in an open editor file, unrelated to the preLaunchTask.  In my case, these errors were about the "require" call: [js] Cannot find name "require"
The problem with launching only starts appearing after a file is opened in the editor that contains syntax errors (generating errors like the one above).  Closing the file does not clear the errors, and so all subsequent launches begin displaying the "errors detected" message.
The errors can be cleared by restarting VS Code, so perhaps that is why some people have reported that the launching problem often (temporarily) goes away after restarting.

To me this happens as well.
First run is fine. But re-running fails. After a restart of vscode it works (only) once again.
In my case it happened after I installed some typings (typings install registry:env/meteor --global). When I remove them it works again.

@vuhrmeister can you please file a new issue with reproducable steps (possible a small repository I could access to investigate this issue) - thanks!

@isidorn will do, thx


Implement Google Cloud Vision for NSFW Image detection

Work in progress, request raised for cloud credits. Will work further after approval.


Rename and clarify get_auth_params() method in the Service module

Simple PR that just renames and documents the get_auth_params() method in the Service module.
The name of the method was confusing. It implied that it had something to do with the auth params (app_id, app_key, etc.), but it does not. This caused some confusion, see https://issues.jboss.org/browse/THREESCALE-1930 and I think it's not the first time that it happens.

We should at some point make reading the body optional and even POST should just read the query params.

I agree, but that means breaking users who rely on this behavior.
For now, I just wanted to clarify what the method does to avoid confusion.

For reference, I ran some benchmarks and summarized the results here


Can it using as a view

you can call display by CAdiplaylink

@chiuhotmob does that answer?
can you explain further, if you are still having issues?

@robbykraft thanks a lot. it works.


Networked multiplayer

We need:

Client and server separation (started in https://github.com/bfops/playform/issues/104)
Networking (look into https://github.com/AngryLawyer/string-telephone)
Multiplayer

This sounds fun!!
On Sun, Feb 8, 2015 at 2:06 PM Ben Foppa<EMAIL_ADDRESS>wrote:

We need:

Client and server separation (started in #104
https://github.com/bfops/playform/issues/104)
Networking
Multiplayer

—
Reply to this email directly or view it on GitHub
https://github.com/bfops/playform/issues/114.

I think a nice goal would be to make playform into something we actually like killing time with. Maybe a casual fighting game or something.

Moved world updates into a new thread in 452d77d2b3fe91a9081dde6dcc3bea1d7f81b7d5.

might be worthy of a read, if you plan on doing your own networking model: tribes networking model pdf

Looks interesting, thanks!

Added a client thread, and renamed some world* things to server*. c09d0091db3592898c78e64106a00dda380fc7dd

The server branch has most of the client/server split up done. It's jittery though - we need to look at latency and reducing the amount of messages being transferred (because processing each one increases latency).

The crates branch is keeping track of my progress on the client/server cratification.

Release builds are slow for low render distances. Need to fix up the bottlenecks for higher render distances and then this can be called done!

Merged 9e1d36ff206aa0dd8f02bdaea1bbaa8cd2185222.


mkinitcpio cannot enable netconf

Hello everybody!
I am trying to set up remote unlocking LUKS root partition (with dropbear) and faced an issue I cannot find the solution for.
What is done:

/boot is ordinary, / is encrypted

HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block netconf dropbear encryptssh sd-encrypt filesystems fsck)

ip=:::::ens33:dhcp in grub.cfg

while making

mkinitcpio -p linux
I got the following
Created symlink /tmp/mkinitcpio.Xdc5gE/root/etc/systemd/system/dbus-org.freedesktop.network1.service → /usr/local/lib/systemd/system/systemd-networkd.service.
Created symlink /tmp/mkinitcpio.Xdc5gE/root/etc/systemd/system/multi-user.target.wants/systemd-networkd.service → /usr/local/lib/systemd/system/systemd-networkd.service.
Unit /tmp/mkinitcpio.Xdc5gE/root/usr/local/lib/systemd/system/systemd-networkd.service is added as a dependency to a non-existent unit multi-user.target.
Created symlink /tmp/mkinitcpio.Xdc5gE/root/etc/systemd/system/sockets.target.wants/systemd-networkd.socket → /usr/local/lib/systemd/system/systemd-networkd.socket.
Failed to enable auxiliary unit systemd-network-generator.service, ignoring.
Failed to enable auxiliary unit systemd-networkd-wait-online.service, ignoring.
Systemd is enabled, but there are no .initramfs files under /etc/systemd/network; exit

therefore network doesnt work when it is time to unlock encrypted root partition, as I am told
[FAILED] Failed to start Network Configuration.
if I switch to udev, then process doesnt even go to the phase of asking the password and kicks me into rootfs
Could anybody give me a hint what and why it does happen?
Thanks in advance.

I was having the same issue.  I eventually got things working by using busybox for mkinitcpio instead of systemd.  I actually did figure out how to resolve this error message ("Systemd is enabled, but there are no .initramfs files under /etc/systemd/network; exit"), but then I had other issues.
HOOKS=(base udev autodetect modconf block netconf dropbear keyboard keymap consolefont encryptssh lvm2 filesystems resume fsck)

The instructions in the Arch wiki say to put netconf, dropbear, and encryptssh before filesystems.  I found that netconf, dropbear, and encryptssh actually need to go before encrypt.  Otherwise, the encrypt hook prompts for your disk password and waits, blocking netconf, dropbear, and encryptssh from starting.  Also, encryptssh actually prompts for your disk password locally as well as over SSH, so encrypt can be removed.
For what it's worth, I also added:
MODULES=(r8169)

Regarding how I resolved the error message: since I couldn't find any documentation about this anywhere, I looked into the source.  mkinitcpio-netconf looks for files named *.initramfs in /etc/systemd/network/.  For each matching file, mkinitcpio-netconf copies the file to /etc/systemd/network/ in the initramfs, but with the trailing .initramfs removed.  For example, if I have /etc/systemd/network/20-wired.network.initramfs, mkinitcpio-netconf will copy this file to /etc/systemd/network/20-wired.network in the initramfs.
However, when I did this (and eventually figured out that I needed to move netconf, dropbear, and encryptssh before sd-encrypt), systemd-networkd failed to start:

journalctl output
Dec 11 19:18:26 archlinux systemd[1]: Starting Network Configuration...
Dec 11 19:18:26 archlinux systemd[185]: systemd-networkd.service: Failed to determine user credentials: No such process
Dec 11 19:18:26 archlinux kernel: audit: type=1334 audit(1670815106.159:6): prog-id=8 op=LOAD
Dec 11 19:18:26 archlinux systemd[1]: Finished Load Kernel Modules.
Dec 11 19:18:26 archlinux kernel: audit: type=1130 audit(1670815106.166:7): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-modules-load comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=217/USER
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Dec 11 19:18:26 archlinux systemd[1]: Failed to start Network Configuration.
Dec 11 19:18:26 archlinux kernel: audit: type=1130 audit(1670815106.169:8): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=failed'
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 1.
Dec 11 19:18:26 archlinux systemd[1]: Stopped Network Configuration.
Dec 11 19:18:26 archlinux kernel: audit: type=1130 audit(1670815106.173:9): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux kernel: audit: type=1131 audit(1670815106.173:10): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux kernel: usb 2-1.2: new high-speed USB device number 3 using ehci-pci
Dec 11 19:18:26 archlinux systemd[188]: systemd-networkd.service: Failed to determine user credentials: No such process
Dec 11 19:18:26 archlinux systemd-journald[166]: Journal started
░░ Subject: The journal has been started
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The system journal process has started up, opened the journal
░░ files for writing and is now ready to process requests.
Dec 11 19:18:26 archlinux systemd-journald[166]: Runtime Journal (/run/log/journal/bf57765809d34a8e828dada0875ced57) is 8.0M, max 299.3M, 291.3M free.
░░ Subject: Disk space used by the journal
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Runtime Journal (/run/log/journal/bf57765809d34a8e828dada0875ced57) is currently using 8.0M.
░░ Maximum allowed usage is set to 299.3M.
░░ Leaving at least 149.6M free (of currently available 2.9G of disk space).
░░ Enforced usage limit is thus 299.3M, of which 291.3M are still available.
░░
░░ The limits controlling how much disk space is used by the journal may
░░ be configured with SystemMaxUse=, SystemKeepFree=, SystemMaxFileSize=,
░░ RuntimeMaxUse=, RuntimeKeepFree=, RuntimeMaxFileSize= settings in
░░ /etc/systemd/journald.conf. See journald.conf(5) for details.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit: BPF prog-id=6 op=LOAD
Dec 11 19:18:26 archlinux audit: BPF prog-id=7 op=LOAD
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-udevd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit: BPF prog-id=8 op=LOAD
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-modules-load comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=failed'
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit: BPF prog-id=9 op=LOAD
Dec 11 19:18:26 archlinux systemd-udevd[171]: Using default interface naming scheme 'v252'.
Dec 11 19:18:26 archlinux systemd-modules-load[167]: Inserted module 'r8169'
Dec 11 19:18:26 archlinux systemd[185]: systemd-networkd.service: Failed at step USER spawning /usr/lib/systemd/systemd-networkd: No such process
░░ Subject: Process /usr/lib/systemd/systemd-networkd could not be executed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The process /usr/lib/systemd/systemd-networkd could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Dec 11 19:18:26 archlinux systemd[188]: systemd-networkd.service: Failed at step USER spawning /usr/lib/systemd/systemd-networkd: No such process
░░ Subject: Process /usr/lib/systemd/systemd-networkd could not be executed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The process /usr/lib/systemd/systemd-networkd could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Dec 11 19:18:26 archlinux audit: BPF prog-id=0 op=UNLOAD
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journald comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=217/USER
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit systemd-networkd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 217.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd.service has entered the 'failed' state with result 'exit-code'.
Dec 11 19:18:26 archlinux systemd[1]: Failed to start Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has finished with a failure.
░░
░░ The job identifier is 51 and the job result is failed.
Dec 11 19:18:26 archlinux systemd[1]: Starting Network Configuration...
Dec 11 19:18:26 archlinux systemd[1]: Started Journal Service.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=failed'
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 2.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Automatic restarting of the unit systemd-networkd.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 11 19:18:26 archlinux systemd[1]: Stopped Network Configuration.
░░ Subject: A stop job for unit systemd-networkd.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit systemd-networkd.service has finished.
░░
░░ The job identifier is 56 and the job result is done.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit: BPF prog-id=10 op=LOAD
Dec 11 19:18:26 archlinux systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 56.
Dec 11 19:18:26 archlinux systemd[189]: systemd-networkd.service: Failed to determine user credentials: No such process
Dec 11 19:18:26 archlinux systemd[189]: systemd-networkd.service: Failed at step USER spawning /usr/lib/systemd/systemd-networkd: No such process
░░ Subject: Process /usr/lib/systemd/systemd-networkd could not be executed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The process /usr/lib/systemd/systemd-networkd could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=217/USER
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit systemd-networkd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 217.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd.service has entered the 'failed' state with result 'exit-code'.
Dec 11 19:18:26 archlinux systemd[1]: Failed to start Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has finished with a failure.
░░
░░ The job identifier is 56 and the job result is failed.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=failed'
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 3.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Automatic restarting of the unit systemd-networkd.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 11 19:18:26 archlinux systemd[1]: Stopped Network Configuration.
░░ Subject: A stop job for unit systemd-networkd.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit systemd-networkd.service has finished.
░░
░░ The job identifier is 61 and the job result is done.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit: BPF prog-id=11 op=LOAD
Dec 11 19:18:26 archlinux systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 61.
Dec 11 19:18:26 archlinux systemd[190]: systemd-networkd.service: Failed to determine user credentials: No such process
Dec 11 19:18:26 archlinux systemd[190]: systemd-networkd.service: Failed at step USER spawning /usr/lib/systemd/systemd-networkd: No such process
░░ Subject: Process /usr/lib/systemd/systemd-networkd could not be executed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The process /usr/lib/systemd/systemd-networkd could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=217/USER
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit systemd-networkd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 217.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd.service has entered the 'failed' state with result 'exit-code'.
Dec 11 19:18:26 archlinux systemd[1]: Failed to start Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has finished with a failure.
░░
░░ The job identifier is 61 and the job result is failed.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=failed'
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 4.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Automatic restarting of the unit systemd-networkd.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 11 19:18:26 archlinux systemd[1]: Stopped Network Configuration.
░░ Subject: A stop job for unit systemd-networkd.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit systemd-networkd.service has finished.
░░
░░ The job identifier is 66 and the job result is done.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit: BPF prog-id=12 op=LOAD
Dec 11 19:18:26 archlinux systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 66.
Dec 11 19:18:26 archlinux systemd[195]: systemd-networkd.service: Failed to determine user credentials: No such process
Dec 11 19:18:26 archlinux systemd[195]: systemd-networkd.service: Failed at step USER spawning /usr/lib/systemd/systemd-networkd: No such process
░░ Subject: Process /usr/lib/systemd/systemd-networkd could not be executed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The process /usr/lib/systemd/systemd-networkd could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=217/USER
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit systemd-networkd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 217.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd.service has entered the 'failed' state with result 'exit-code'.
Dec 11 19:18:26 archlinux systemd[1]: Failed to start Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has finished with a failure.
░░
░░ The job identifier is 66 and the job result is failed.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=failed'
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Automatic restarting of the unit systemd-networkd.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 11 19:18:26 archlinux systemd[1]: Stopped Network Configuration.
░░ Subject: A stop job for unit systemd-networkd.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit systemd-networkd.service has finished.
░░
░░ The job identifier is 71 and the job result is done.
Dec 11 19:18:26 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-networkd comm="systemd" exe="/init" hostname=? addr=? terminal=? res=success'
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Start request repeated too quickly.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd.service has entered the 'failed' state with result 'exit-code'.
Dec 11 19:18:26 archlinux systemd[1]: Failed to start Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit systemd-networkd.service has finished with a failure.
░░
░░ The job identifier is 71 and the job result is failed.
Dec 11 19:18:26 archlinux systemd[1]: systemd-networkd.socket: Failed with result 'service-start-limit-hit'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit systemd-networkd.socket has entered the 'failed' state with result 'service-start-limit-hit'.


Added both image and video using the google-search gem.

Added the google-search gem as a dependency in the gemspec
Added tests, but will need review on the tests and would appreciate feedback on how the tests can be improved

Should take care of  #306

Adding a dependency, especially a branded one, is a pretty big deal, this seems like it should be a separate library


It's not working for me

the console output is like this
[2015-12-01 14:25:13.784] ViewController.viewDidLoad():22 g255,255,0;WARNING[;: message

What XCode version do you use? I had several people test it under Xcode 7.1 and it worked at everyone.

My Xcode version is 7.1.1(7B1005)
OS X version is 10.11.1 Beta(15C48a)

It seems the escape character \u{001b} which comes before every color and the reset color is not correctly displayed. I mean the value from the line https://github.com/skreutzberger/SwiftyBeaver/blob/master/SwiftyBeaver/SwiftyBeaver.swift#L51
Can you try to run the following lines? It should print your console in color:
let escape = "\u{001b}"
let blue = "[fg0,0,255;"
let reset = "\u{001b}[0m"
let str = escape + blue + "I am blue" + reset
print(str)

still not working, the result is like below:
g0,0,255;I am blue

Alright, it seems your Xcode still requires the Xcode-Colors. I already have a built version which should work for you, too.
Please do the following:

Download the file XcodeColors.xcplugin.zip
Unzip it to "~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/"
Restart Xcode, allow the plugin

Thanks, now it's working for me, this is the result


Review CI configuration

drop go1.11
improve go modules support

Coverage remained the same at 84.168% when pulling 63872c862376c25744d94437a8e809b7476a3af8 on ldez:fix/ci into f2e1850dc90593826b13ea00b36fe630ac15919a on abronan:master.


Add filtering properties to OSL textures

This changelist adds filtering properties to texture calls in OSL shader generation, improving the visual consistency between generated OSL and other shading languages.
Previously, the "interp" property was omitted from texture calls in generated OSL, causing the default "smartcubic" filtering mode to be used.

This change addresses the OSL component of https://github.com/AcademySoftwareFoundation/MaterialX/issues/1525, and it may prove useful in OSL-based texture baking workflows.
I'm CC'ing @lfl-eholthouser for visibility, as she may be interested in integrating this change into her work.


%5Btool_crash%5D _Exception

%23%23 Command%0A%60%60%60%0Aflutter analyze%0A%60%60%60%0A%0A%23%23 Steps to Reproduce%0A1. ...%0A2. ...%0A3. ...%0A%0A%23%23 Logs%0A_Exception%0A%60%60%60%0A%0A%60%60%60%0A%60%60%60%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m Flutter %28Channel stable%2C 3.10.6%2C on macOS 12.6.8 21G725 darwin-x64%2C locale en-IN%29%0A    %1B%5B32m%E2%80%A2%1B%5B39m Flutter version 3.10.6 on channel stable at %2FUsers%2Fikokas%2FDocuments%2Fikokasprojects%2Fsdk%2Fflutter%0A    %1B%5B32m%E2%80%A2%1B%5B39m Upstream repository https%3A%2F%2Fgithub.com%2Fflutter%2Fflutter.git%0A    %1B%5B32m%E2%80%A2%1B%5B39m Framework revision f468f3366c %284 weeks ago%29%2C 2023-07-12 15%3A19%3A05 -0700%0A    %1B%5B32m%E2%80%A2%1B%5B39m Engine revision cdbeda788a%0A    %1B%5B32m%E2%80%A2%1B%5B39m Dart version 3.0.6%0A    %1B%5B32m%E2%80%A2%1B%5B39m DevTools version 2.23.1%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m Android toolchain - develop for Android devices %28Android SDK version 34.0.0-rc3%29%0A    %1B%5B32m%E2%80%A2%1B%5B39m Android SDK at %2FUsers%2Fikokas%2FLibrary%2FAndroid%2Fsdk%0A    %1B%5B32m%E2%80%A2%1B%5B39m Platform android-34%2C build-tools 34.0.0-rc3%0A    %1B%5B32m%E2%80%A2%1B%5B39m Java binary at%3A %2FApplications%2FAndroid Studio.app%2FContents%2Fjbr%2FContents%2FHome%2Fbin%2Fjava%0A    %1B%5B32m%E2%80%A2%1B%5B39m Java version OpenJDK Runtime Environment %28build 17.0.6%2B0-17.0.6b829.9-10027231%29%0A    %1B%5B32m%E2%80%A2%1B%5B39m All Android licenses accepted.%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m Xcode - develop for iOS and macOS %28Xcode 14.2%29%0A    %1B%5B32m%E2%80%A2%1B%5B39m Xcode at %2FApplications%2FXcode.app%2FContents%2FDeveloper%0A    %1B%5B32m%E2%80%A2%1B%5B39m Build 14C18%0A    %1B%5B32m%E2%80%A2%1B%5B39m CocoaPods version 1.12.1%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m Chrome - develop for the web%0A    %1B%5B32m%E2%80%A2%1B%5B39m Chrome at %2FApplications%2FGoogle Chrome.app%2FContents%2FMacOS%2FGoogle Chrome%0A%0A%1B%5B32m%5B%E2%9C%93%5D%1B%5B39m Android Studio %28version 2022.3%29%0A    %1B%5B32m%E2%80%A2%1B%5B39m Android Studio at %2FApplications%2FAndroid Studio.app%2FContents%0A    %1B%5B32m%E2%80%A2%1B%5B39m Flutter plugin can be installed from%3A%0A      %F

Hi @NitinSharmaIkokas
When opening an issue, please try to provide all or some of the information indicated in the template so that we can address this issue properly (See bug report template here)
Closing this issue. Once you updated the issue with more information, please write in the comments and I will re-open this for further discussion.


Stripe

We will be able to put the payment method creation form in a modal in a future PR if wanted, the issue in modal for 3DS does not longer exist according to stripe recently closed issue:  https://github.com/stripe/stripe-react-native/issues/177
Next PR will feature usage of a URL builder method instead of .replace

@AlixH Once you have addressed the requested changes, you need to put PRs back into the right pipeline and request again a review.
Thanks.


EHCI timeouts on BL616 as host

I do see many timeouts when using the USB host on a BL616. This can be "fixed" by adding a delay to EHCI usbh_submit_urb() like so:
    if (urb->timeout > 0) {
        usb_osal_msleep(1);      // <--- add a delay of 1ms
        /* wait until timeout or sem give */
        ret = usb_osal_sem_take(pipe->waitsem, urb->timeout);
        if (ret < 0) {
            goto errout_timeout;
        }
        ret = urb->errorcode;
    }

This makes the setup stable and e.g. running FATFS on top of MSC just works fine. But I am sure this delay is not a good solution and this will sure have a massive negative impact on performance.
I am seeing this on the current master, integrated into the latest bouffalo SDK.
Example usbhost with fatfs enabled.

Build:19:15:52,Aug 12 2023
Copyright (c) 2022 Bouffalolab team
======== flash cfg ========
flash size 0x00400000
jedec id     0xC86016
mid              0xC8
iomode           0x04
clk delay        0x01
clk invert       0x01
read reg cmd0    0x05
read reg cmd1    0x35
write reg cmd0   0x01
write reg cmd1   0x01
qe write len     0x02
cread support    0x01
cread code       0x20
burst wrap cmd   0x77
===========================
dynamic memory init success, ocram heap size = 173 Kbyte
sig1:ffffffff
sig2:0000f32f
cgen1:9f7ffffd
Starting usb host task...
starting scheduler
do not find /dev/ttyACM0
do not fi[I/USB] EHCI HCIVERSION:0100
[I/USB] EHCI HCSPARAMS:000001
[I/USB] EHCI HCCPARAMS:0006
t0 not finnd /dev/inpud /dev/sda

[I/USB] New high-speed device on Hub 1, Port 1 connected
[I/USB] New device found,idVendor:054c,idProduct:0243,bcdDevice:0100
[I/USB] The device has 1 interfaces
[I/USB] Enumeration success, start loading class driver
[I/USB] Loading msc class driver
[I/USB] Get max LUN:1
[I/USB] Ep=81 Attr=02 Mps=512 Interval=255 Mult=00
[I/USB] Ep=02 Attr=02 Mps=512 Interval=255 Mult=00
[I/USB] Capacity info:
[I/USB] Block num:7831552,block size:512
[I/USB] Register MSC Class:/dev/sda
do not find /dev/ttyACM0
do not find /dev/input0
do not find /dev/ttyACM0
data len:25
[I/USB] MSC_disk_read(0x22fc93c0,0,1)
[I/USB] MSC_disk_read(0x22fc93c0,62,1)
[I/USB] MSC_disk_read(0x22fc93c0,63,1)
test fatfs write
[I/USB] MSC_disk_read(0x22fc93c0,16446,1)
[I/USB] MSC_disk_read(0x22fc93c0,16447,1)
[I/USB] MSC_disk_read(0x22fc93c0,16448,1)
[I/USB] MSC_disk_write(0x22fc93c0,16448,1)
[I/USB] MSC_disk_read(0x22fc93c0,5496,1)
[I/USB] MSC_disk_write(0x22fc9a00,4423918,4)
write success, write len：2500
[I/USB] MSC_disk_write(0x22fc9600,4423922,1)
[I/USB] MSC_disk_write(0x22fc93c0,5496,1)
[I/USB] MSC_disk_write(0x22fc93c0,13123,1)
[I/USB] MSC_disk_read(0x22fc93c0,16448,1)
[I/USB] MSC_disk_write(0x22fc93c0,16448,1)
[I/USB] MSC_disk_write(0x22fc93c0,63,1)
[I/USB] MSC_disk_ioctl(0,(nil))
test fatfs read
[I/USB] MSC_disk_read(0x22fc93c0,16446,1)
[I/USB] MSC_disk_read(0x22fc93c0,16447,1)
[I/USB] MSC_disk_read(0x22fc93c0,16448,1)
[I/USB] MSC_disk_read(0x22fc9a00,4423918,4)
[I/USB] MSC_disk_read(0x22fc9600,4423922,1)
do not find /dev/ttyACM0
do not find /dev/input0
do not find /dev/ttyACM0
do not find /dev/input0
do not find /dev/ttyACM0
do not find /dev/ttyACM0
do not find /dev/input0
do not find /dev/ttyACM0
[E/USB] usbh_msc_bulk_in_transfer()=-116
[E/USB] msc data transfer error
read fail

With the delay:
  ____               __  __      _       _       _
 |  _ \             / _|/ _|    | |     | |     | |
 | |_) | ___  _   _| |_| |_ __ _| | ___ | | __ _| |__
 |  _ < / _ \| | | |  _|  _/ _` | |/ _ \| |/ _` | '_ \
 | |_) | (_) | |_| | | | || (_| | | (_) | | (_| | |_) |
 |____/ \___/ \__,_|_| |_| \__,_|_|\___/|_|\__,_|_.__/

Build:19:15:52,Aug 12 2023
Copyright (c) 2022 Bouffalolab team
======== flash cfg ========
flash size 0x00400000
jedec id     0xC86016
mid              0xC8
iomode           0x04
clk delay        0x01
clk invert       0x01
read reg cmd0    0x05
read reg cmd1    0x35
write reg cmd0   0x01
write reg cmd1   0x01
qe write len     0x02
cread support    0x01
cread code       0x20
burst wrap cmd   0x77
===========================
dynamic memory init success, ocram heap size = 173 Kbyte
sig1:ffffffff
sig2:0000f32f
cgen1:9f7ffffd
Starting usb host task...
starting scheduler
do not find /dev/ttyACM0
do not fi[I/USB] EHCI HCIVERSION:0100
[I/USB] EHCI HCSPARAMS:000001
[I/USB] EHCI HCCPARAMS:0006
t0 not finnd /dev/inpud /dev/sda

[I/USB] New high-speed device on Hub 1, Port 1 connected
[I/USB] New device found,idVendor:054c,idProduct:0243,bcdDevice:0100
[I/USB] The device has 1 interfaces
[I/USB] Enumeration success, start loading class driver
[I/USB] Loading msc class driver
[I/USB] Get max LUN:1
[I/USB] Ep=81 Attr=02 Mps=512 Interval=255 Mult=00
[I/USB] Ep=02 Attr=02 Mps=512 Interval=255 Mult=00
[I/USB] Capacity info:
[I/USB] Block num:7831552,block size:512
[I/USB] Register MSC Class:/dev/sda
do not find /dev/ttyACM0
do not find /dev/input0
do not find /dev/ttyACM0
data len:25
[I/USB] MSC_disk_read(0x22fc93c0,0,1)
[I/USB] MSC_disk_read(0x22fc93c0,62,1)
[I/USB] MSC_disk_read(0x22fc93c0,63,1)
test fatfs write
[I/USB] MSC_disk_read(0x22fc93c0,16446,1)
[I/USB] MSC_disk_read(0x22fc93c0,16447,1)
[I/USB] MSC_disk_read(0x22fc93c0,16448,1)
[I/USB] MSC_disk_write(0x22fc93c0,16448,1)
[I/USB] MSC_disk_read(0x22fc93c0,5496,1)
[I/USB] MSC_disk_write(0x22fc93c0,5496,1)
[I/USB] MSC_disk_write(0x22fc93c0,13123,1)
[I/USB] MSC_disk_read(0x22fc93c0,16448,1)
[I/USB] MSC_disk_read(0x22fc93c0,5496,1)
[I/USB] MSC_disk_write(0x22fc9a00,4423918,4)
write success, write len：2500
[I/USB] MSC_disk_write(0x22fc9600,4423922,1)
[I/USB] MSC_disk_write(0x22fc93c0,5496,1)
[I/USB] MSC_disk_write(0x22fc93c0,13123,1)
[I/USB] MSC_disk_read(0x22fc93c0,16448,1)
[I/USB] MSC_disk_write(0x22fc93c0,16448,1)
[I/USB] MSC_disk_write(0x22fc93c0,63,1)
[I/USB] MSC_disk_ioctl(0,(nil))
test fatfs read
[I/USB] MSC_disk_read(0x22fc93c0,16446,1)
[I/USB] MSC_disk_read(0x22fc93c0,16447,1)
[I/USB] MSC_disk_read(0x22fc93c0,16448,1)
[I/USB] MSC_disk_read(0x22fc9a00,4423918,4)
[I/USB] MSC_disk_read(0x22fc9600,4423922,1)
read success, read len：2500

No need ,thanks,adding delay is a joke.

Many echi cpu works fine, check it by yourself

I am not sure I understand you correctly.
So the BL616 EHCI host is not supported and problems like this will not be addressed? And you suggest to use a different MCU or to fix any issues myself, correct?
Which MCU would you suggest to use with cherryUSB in host mode?

No problem in BL616, and others like d1s/hpm6750 and so on with ehci.Just check by yourself.

I am checking this myself. This report is a result of tests with real hardware. I use a BL616 in host mode with various USB devices as I am going to decide if we build a device based on that chip
Most USB host tests are unstable. Some very basic tests work. That's how I did the joystick demo:
https://m.youtube.com/shorts/Z1DRsI0xd8o
But hubs, mass storage and even some joysticks run into timeouts.
I am checking real hardware and would like to understand if the BL616 is supported in a way that we can base a project on it.
So what do you mean by "check it yourself" other than using the BL616 to do tests with real USB devices?

I do not want to waste my time on these unofficial  board, no one knows if the board usb is ok, so solve by yourself.

I do not want to waste my time on these unofficial board, no one knows if the board usb is ok, so solve by yourself.

Ah ... now we are getting somewhere. This is some internal conflict between Bouffalo and SiPeed. Interesting. So only Bouffalo's own dev kit is supported? This would mean that we cannot use the BL616 for our own designs, since there won't be any support then?
BTW: The delay actually doesn't hurt as much as expected. I copied your SD card test over to the USB demo and get these results with my delay in place:
[I/USB] EHCI HCIVERSION:0100
[I/USB] EHCI HCSPARAMS:000001
[I/USB] EHCI HCCPARAMS:0006
[I/USB] New high-speed device on Hub 1, Port 1 connected
[I/USB] New device found,idVendor:054c,idProduct:0243,bcdDevice:0100
[I/USB] The device has 1 interfaces
[I/USB] Enumeration success, start loading class driver
[I/USB] Loading msc class driver
[I/USB] Get max LUN:1
[I/USB] Ep=81 Attr=02 Mps=512 Interval=255 Mult=00
[I/USB] Ep=02 Attr=02 Mps=512 Interval=255 Mult=00
[I/USB] Capacity info:
[I/USB] Block num:7831552,block size:512
[I/USB] Register MSC Class:/dev/sda
[I/USB] ******************** be about to write test... **********************
[I/USB] Write Test Succeed!
[I/USB] Single data size:32768 Byte, Write the number:1024, Total size:32768 KB
[I/USB] Time:9846ms, Write Speed:3328 KB/s
[I/USB] ******************** be about to read test... **********************
[I/USB] Read Test Succeed!
[I/USB] Single data size:32768Byte, Read the number:1024, Total size:32768 KB
[I/USB] Time:4289ms, Read Speed:7640 KB/s
[I/USB] ******************** be about to check test... **********************
[I/USB] Check Test Succeed!
[I/USB] All Data Is Good!

3.3MBytes/s writing and 7.6 MBytes/s reading doesn't sound too bad for some cheap little microcontroller.

BTW: What is the official board for the BL616? I see someone testing a BL616DK at https://codingfield.com/blog/2023-01/getting-started-with-bl618dk/, but that seems to be in fact a BL618 and I don't see where this can be purchased nor are there any schematics, so I could compare the USB implementation of the official board with the unofficial one from SiPeed.

You can design sch and pcb by yourself, m0s dock is designed only for debugger.

I don't understand that. What kind of debugger?

cklink, daplink, usb2uart

You can flash the M0S dock without any debugger and just flash it via USB as I explain e.g. at https://github.com/harbaum/Pacman-TangNano9k/tree/main/m0sdock_usb_joystick
Would you consider the Ai-M62-12F a valid device and accept feedback for it?
I really like to test the stuff before designing a new device.

I mean that M0s is only a usb device, its function is a debugger or a usb2uart, thanks, please stop for this issue.

I'll stop now. Just to make this clear: There is no BL616 based board that I could use and get cherryusb support for, right? If there is one, then please tell me. The BL616 seems to have much potential and it seems to be one of the few cheap chips that can do high speed USB. But without support this chip is of course way less useful.

Hi, i have updated ehci driver just now, you can have a tryand copy them to sdk to see if it works or not. PS: if you want to use usb host, recommand you to use ai-thinker board.

Thanks a lot. I recently received the ai thinker boards and will give the updated version a try asap ...

I just tested on the M0S and now USB host isn't working at all, anymore. No events are reported. And adding my old delay also doesn't help.
I tried a) using the entire latest cherryusb from github master and b) using only the latest ehci from github master. This makes no difference. Neither works.
I'll try again on Monday using the AI Thinker board instead of the M0S.
Thanks for your support!

I think it is your incorrect copying....

please do not modify usb_config in bouffalo sdk, it is not a standard ehci.

Ok, i know what is wrong, please modify CONFIG_USB_EHCI_HCOR_RESERVED_DISABLE in usb_config.h, in bouffalo_sdk it is CONFIG_USB_ECHI_HCOR_RESERVED_DISABLE

If you have other problem, you can contact my twitter.

Ok, i know what is wrong, please modify CONFIG_USB_EHCI_HCOR_RESERVED_DISABLE in usb_config.h, in bouffalo_sdk it is CONFIG_USB_ECHI_HCOR_RESERVED_DISABLE, it is a spelling error.

Ah! Yes, now it works without my delay patch. Great. The simple demos from the SDK now work.
I have ported the more complex fatfs test from the SD card demo to the USB host demo. I do see sporadic write errors in the big file there. The SD card has a very similar problem but when reading (writing seems to work fine with SD card). See https://github.com/bouffalolab/bouffalo_sdk/issues/170
Since the errors are very similar (chunks 32 bytes get lost during reading from SD card and during writing to USB stick) I think this is not an issue with USB, but with the BL616 in general. So I won't bother you with that.

If you have other problems, you can contact my twitter, maybe solve problems more quickly
I don't have a twitter account. Do you use discord?

Sorry, i do not have and join for some reason. Maybe only in github, could you give my repo a star and push some issues here, only this way, feel sorry.

No problem. I gave this repo a star.
This is the code for the updated usb_host.c demo from the bouffalo SDK which will do extensive USB file testing and finally fail. I can open an issue for this (is this what you mean by "push some issues"?).
But as I said, I see the same problem with the SD card, so I don't think it's a USB specific issue. It is either a problem with the SDK in general or with the BL616 itself.
#include "usbh_core.h"
#include "usbh_msc.h"

#include "ff.h"
#include "diskio.h"

USB_NOCACHE_RAM_SECTION FATFS fs;
USB_NOCACHE_RAM_SECTION FIL fnew;
UINT fnum;
FRESULT res_msc = 0;

int MSC_disk_status() { return 0; }
int MSC_disk_initialize() { return 0; }
int MSC_disk_read(BYTE *buff, LBA_t sector, UINT count) {
  struct usbh_msc *msc_class = (struct usbh_msc *)usbh_find_class_instance("/dev/sda");
  // USB_LOG_INFO("MSC_disk_read(%p,%d,%d)\r\n", buff, sector, count);
  return usbh_msc_scsi_read10(msc_class, sector, buff, count);
}

int MSC_disk_write(const BYTE *buff, LBA_t sector, UINT count) {
  struct usbh_msc *msc_class = (struct usbh_msc *)usbh_find_class_instance("/dev/sda");
  // USB_LOG_INFO("MSC_disk_write(%p,%d,%d)\r\n", buff, sector, count);
  return usbh_msc_scsi_write10(msc_class, sector, buff, count);
}

int MSC_disk_ioctl(BYTE cmd, void *buff) {
  USB_LOG_INFO("MSC_disk_ioctl(%d,%p)\r\n", cmd, buff);

    switch (cmd) {
        // Get R/W sector size (WORD)
        case GET_SECTOR_SIZE:
            break;

        // Get erase block size in unit of sector (DWORD)
        case GET_BLOCK_SIZE:
            break;

        case GET_SECTOR_COUNT:
            break;

        case CTRL_SYNC:
            break;

        default:
            break;
    }

    return 0;
}

DSTATUS Translate_Result_Code(int result)
{
    return result;
}

#define SDU_DATA_CHECK 1

char test_data[512] =
    "I've been reading books of old \r\n\
    The legends and the myths \r\n\
    Achilles and his gold \r\n\
    Hercules and his gifts \r\n\
    Spiderman's control \r\n\
    And Batman with his fists \r\n\
    And clearly I don't see myself upon that list\r\n\
    But she said, where'd you wanna go?\r\n\
    How much you wanna risk?\r\n\
    I'm not looking for somebody\r\n\
    With some superhuman gifts\r\n\
    Some superhero\r\n\
    Some fairytale bliss\r\n\
    Just something I can turn to\r\n\
    Somebody I can kiss\r\n\
    I want something just like this\r\n\r\n";

BYTE RW_Buffer[32 * 1024] = { 0 };
#if SDU_DATA_CHECK
BYTE Check_Buffer[sizeof(RW_Buffer)] = { 0 };
#endif

static void hexdump(const unsigned char *buf, int len) {
  static const char hexdigits[] = "0123456789abcdef";
  char str[68];
  int i;

  if (!len) return;

  for (i = 0; i < len; i++) {
    str[((i % 16) * 3) + 0] = hexdigits[buf[i] >> 4];
    str[((i % 16) * 3) + 1] = hexdigits[buf[i] & 0xf];
    str[((i % 16) * 3) + 2] = ' ';
    str[(i % 16) + 49] = isprint(buf[i]) ? buf[i] : '.';

    if ((i + 1) % 16 == 0) {
      str[47] = ' ';
      str[48] = ' ';
      str[65] = '\0';
      printf("%08x%-2c%s\r\n", i-15, ' ', str);
      str[0] = ' ';
    }
  }
}

int usb_msc_fatfs_test()
{
    uint32_t time_node, i, j;
    FRESULT ret;

    FATFS_DiskioDriverTypeDef MSC_DiskioDriver = { NULL };
    MSC_DiskioDriver.disk_status = MSC_disk_status;
    MSC_DiskioDriver.disk_initialize = MSC_disk_initialize;
    MSC_DiskioDriver.disk_write = MSC_disk_write;
    MSC_DiskioDriver.disk_read = MSC_disk_read;
    MSC_DiskioDriver.disk_ioctl = MSC_disk_ioctl;
    MSC_DiskioDriver.error_code_parsing = Translate_Result_Code;

    disk_driver_callback_init(DEV_USB, &MSC_DiskioDriver);

    res_msc = f_mount(&fs, "/usb", 1);
    if (res_msc != FR_OK) {
        USB_LOG_RAW("mount fail,res:%d\r\n", res_msc);
        return -1;
    }

    /* full test data to buff */
    for (uint32_t size = 0; size < sizeof(RW_Buffer); size += sizeof(test_data)) {
        memcpy(&RW_Buffer[size], test_data, sizeof(test_data));
#if SDU_DATA_CHECK
        memcpy(&Check_Buffer[size], test_data, sizeof(test_data));
#endif
    }

#if 0
    /* write test */
    USB_LOG_INFO("\r\n");
    USB_LOG_INFO("******************** be about to write test... **********************\r\n");
    ret = f_open(&fnew, "/usb/test_file_2.txt", FA_CREATE_ALWAYS | FA_WRITE);
    if (ret == FR_OK) {
        time_node = (uint32_t)bflb_mtimer_get_time_ms();
        /*write into file*/
        // ret = f_write(&fnew, RW_Buffer, 1024, &fnum);
        for (i = 0; i < 1024; i++) {
	  ret = f_write(&fnew, RW_Buffer, sizeof(RW_Buffer), &fnum);
	  if (ret) {
	    break;
	  }
        }

        /* close file */
        ret |= f_close(&fnew);
        /* get time */
        time_node = (uint32_t)bflb_mtimer_get_time_ms() - time_node;

        if (ret == FR_OK) {
            USB_LOG_INFO("Write Test Succeed! \r\n");
            USB_LOG_INFO("Single data size:%d Byte, Write the number:%d, Total size:%d KB\r\n", sizeof(RW_Buffer), i, sizeof(RW_Buffer) * i >> 10);
            USB_LOG_INFO("Time:%dms, Write Speed:%d KB/s \r\n", time_node, ((sizeof(RW_Buffer) * i) >> 10) * 1000 / time_node);
        } else {
            USB_LOG_ERR("Fail to write files(%d) num:%d\n", ret, i);
	    goto unmount;
        }
    } else {
        USB_LOG_ERR("Fail to open or create files: %d.\r\n", ret);
	goto unmount;
    }
#endif

#if 1
    /* read test */
    USB_LOG_INFO("\r\n");
    USB_LOG_INFO("******************** be about to read test... **********************\r\n");
    ret = f_open(&fnew, "/usb/test_file.txt", FA_OPEN_EXISTING | FA_READ);
    if (ret == FR_OK) {
        time_node = (uint32_t)bflb_mtimer_get_time_ms();

        // ret = f_read(&fnew, RW_Buffer, 1024, &fnum);
        for (i = 0; i < 1024; i++) {
            ret = f_read(&fnew, RW_Buffer, sizeof(RW_Buffer), &fnum);
            if (ret) {
                break;
            }
        }
        /* close file */
        ret |= f_close(&fnew);
        /* get time */
        time_node = (uint32_t)bflb_mtimer_get_time_ms() - time_node;

        if (ret == FR_OK) {
            USB_LOG_INFO("Read Test Succeed! \r\n");
            USB_LOG_INFO("Single data size:%dByte, Read the number:%d, Total size:%d KB\r\n", sizeof(RW_Buffer), i, sizeof(RW_Buffer) * i >> 10);
            USB_LOG_INFO("Time:%dms, Read Speed:%d KB/s \r\n", time_node, ((sizeof(RW_Buffer) * i) >> 10) * 1000 / time_node);
        } else {
            USB_LOG_ERR("Fail to read file: (%d), num:%d\n", ret, i);
	    goto unmount;
        }
    } else {
        USB_LOG_ERR("Fail to open files.\r\n");
	goto unmount;
    }
#endif

    /* check data */
#if SDU_DATA_CHECK
    USB_LOG_INFO("\r\n");
    USB_LOG_INFO("******************** be about to check test... **********************\r\n");
    ret = f_open(&fnew, "/usb/test_file_2.txt", FA_OPEN_EXISTING | FA_READ);
    if (ret == FR_OK) {
        for (i = 0; i < 1024; i++) {
  	    memset(RW_Buffer, 0x55, sizeof(RW_Buffer));
	    ret = f_read(&fnew, RW_Buffer, sizeof(RW_Buffer), &fnum);
	    if (ret) break;
            for (j = 0; j < sizeof(RW_Buffer); j++) {
                if (RW_Buffer[j] != Check_Buffer[j]) {
                    break;
                }
            }
            if (j < sizeof(RW_Buffer)) {
                break;
            }
        }
        /* close file */
        ret |= f_close(&fnew);

        if (ret == FR_OK) {
            if (i < 1024 || j < sizeof(RW_Buffer)) {
                USB_LOG_INFO("Check Test Error! \r\n");
                USB_LOG_INFO("Data Error!  Num:%d/1024, Byte:%d($%04x)/%d\r\n", i, j, j, sizeof(RW_Buffer));

		hexdump(RW_Buffer, 32768);
		// hexdump(Check_Buffer, 32768);
	    } else {
                USB_LOG_INFO("Check Test Succeed! \r\n");
                USB_LOG_INFO("All Data Is Good! \r\n");
            }

        } else {
            USB_LOG_ERR("Fail to read file: (%d), num:%d\n", ret, i);
	    goto unmount;
        }
    } else {
        USB_LOG_ERR("Fail to open files.\r\n");
	goto unmount;
    }
#endif

    f_mount(NULL, "/usb", 1);
    return 0;
unmount:
    f_mount(NULL, "/usb", 1);
    return -1;
}

static void usbh_msc_thread(void *argument)
{
    int ret;
    struct usbh_msc *msc_class;

    while (1) {
        // clang-format off
find_class:
        // clang-format on
        msc_class = (struct usbh_msc *)usbh_find_class_instance("/dev/sda");
        if (msc_class == NULL) {
            USB_LOG_RAW("do not find /dev/sda\r\n");
            usb_osal_msleep(2000);
            continue;
        }

        usb_msc_fatfs_test();

        while (1) {
            msc_class = (struct usbh_msc *)usbh_find_class_instance("/dev/sda");
            if (msc_class == NULL) {
                goto find_class;
            }
            usb_osal_msleep(2000);
        }
    }
}

void usbh_msc_run(struct usbh_msc *msc_class) { }

void usbh_msc_stop(struct usbh_msc *msc_class) { }

void usbh_class_test(void) {
  usb_osal_thread_create("usbh_msc", 2048, CONFIG_USBHOST_PSC_PRIO + 1, usbh_msc_thread, NULL);
}

I think it is cache problem, and you should set USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX before read_buffer, at least usb host need.

And i must say, all of buffer for usb, must be in nocache ram section, thanks.

And MSC_disk_ioctl must be implemented.

Using a small no-cache transfer buffer makes the MSC demo works with full filesystem support and success in the 32MB read/write test.
Thanks a lot!

Using
bflb_l1c_dcache_clean_range((void *)(RW_Buffer), sizeof(RW_Buffer));
and
bflb_l1c_dcache_invalidate_range((void *)(RW_Buffer), sizeof(RW_Buffer));
works even better and has much less impact on the performance.

Right, with cache, you must do these. But many users do not know cache, this is why exists nocache ram.

How long is a cache line on the BL616? Sometimes you align to 32 bytes (e.g. in the USB) and sometimes to 64 bytes (e.g. in SDH).

How long is a cache line on the BL616? Sometimes you align to 32 bytes (e.g. in the USB) and sometimes to 64 bytes (e.g. in SDH).

Cache line 32, so set 32 or 64 is ok, just you like.


reify fails for attachment delete

I have a bid class:
class Bid < ActiveRecord::Base
has_paper_trail

mount_uploader :agreement, AttachmentUploader
end

Steps to cause reify fail:

create a bid without file.
upload an agreement file to bid.
delete the agreement file.

Now I have 3 versions in paper trail for this bid.
bid.versions[0].reify -> nil
bid.versions[1].reify -> bid object
bid.versions[2].reify -> crashes. Error is: ArgumentError: undefined class/module AttachmentUploader::Uploader2159215840

Well, that's no good! Thanks for the issue report, Shane. Please write a script that reproduces the problem using our bug report template.

I cannot reproduce this in the script, all tests passed in the code below. I will report in a separate one if I find the cause. Thanks!
https://gist.github.com/anklos/3f30d8c075acba69011ef664da6f09f2

Thanks for trying, Shane.


Interpreting test loss as PER?

HI Vincent! I have got a small problem. After training the LAS/TIMIT model and running the test returns "loss = 0.2204". Is it the Phoneme Error Rate? I am using TIMIT data and phoneme targets. Please reply.

Yes, it’s PER
On Mon, Oct 29, 2018 at 9:02 AM k-priyadarshi<EMAIL_ADDRESS>wrote:

HI Vincent! I have got a small problem. After training the LAS/TIMIT model
and running the test returns "loss = 0.2204". Is it the Phoneme Error Rate?
I am using TIMIT data and phoneme targets. Please reply.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/vrenkens/nabu/issues/49, or mute the thread
https://github.com/notifications/unsubscribe-auth/APTcBhoWNHtEnjKlZerDWWeb-ZpXZZIsks5upyaKgaJpZM4X_f6P
.


[Task] Load the transformed EDAM data into the OC Challenge Service DB

What product(s) is this story for?
OpenChallenges
As a user, I want
No response
Description
Depends on  #2547
Load the transformed EDAM data generated in #2547 into the OC Challenge Service DB.
Acceptance criteria
Running the following commands download, transform, and loads the EDAM data into the OC Challenge Service DB:

nx serve openchallenges-edam-etl
nx serve-detach openchallenges-edam-etl

Tasks

Read the DB connection config parameters from environment variables defined in .env
Define a parameter that control whether the script should overwrite the data in the DB if data already exist
Connect to the OC Challenge Service DB
Detect if the EDAM data already exist in the DB
Delete the existing data if needed
Load the data into the DB

Anything else?
See #2524 and its PR to get familiar with the environment of the project openchallenges-edam-etl.
Have you linked this story to a GitHub Project?

[X] I have linked this story to a GitHub Project and set its metadata.

Added to Sprint 24.4

Moved to Backlog

*** Update: 05/13/2024
Challenges: N/A
Remaining Tasks: Implement the load aspect of the ETL process so that the generated dataset is available/accessible in the MariaDB

Update: 05/15/2024
Challenges:
@tschaffter I have written code to connect to MariaDB using python. The OC_DB_URL within the .env file, jdbc:mysql://openchallenges-mariadb:3306/edam_etl, isn't used according to the documentation I have located. Resource1 and Resource2 for connecting to MariaDB.
I've received this error when using jdbc:mysql://openchallenges-mariadb:3306/edam_etl as the Host:
Error connecting to MariaDB Platform: Plugin jdbc:mysql could not be loaded: /usr/lib/x86_64-linux-gnu/libmariadb3/plugin/jdbc:mysql.so: cannot open shared object file: No such file or directory
Warning: command "poetry run python src/main.py" exited with non-zero status code
I get this error when I change the host to openchallenges-mariadb and don't use the OC_DB_URL in the .env file:
Error connecting to MariaDB Platform: Access denied for user 'edam_etl'@'%' to database 'challenge_service'
Warning: command "poetry run python src/main.py" exited with non-zero status code

I'm wondering if the variables are being assigned incorrectly.

I believe that we have solve the issue since your last message. Feel free to get rid of the config variable OC_DB_URL. We use it the OC microservice because the DB client we use in Java accept this URL as a parameter, which not be the case of the DB client for Python you use.

@tschaffter For PR #2680 It looks like the CI/pr (pull_request) check is failing because it can not find the installation of the MariaDB Connector/C required by Maria DB which doesn't support PEP builds. I was able to bypass this in the Dev container by running the indicated command in the terminal but I guess that doesn't transfer to the PR. It says it needs to be preinstalled but I'm unsure how that works w/in microservices. Should I be creating a script that will perform this operation w/in the app folder?

Using virtualenv: /workspaces/sage-monorepo/apps/openchallenges/edam-etl/.venv
Installing dependencies from lock file
Package operations: 1 install, 0 updates, 0 removals

Installing mariadb (1.1.10)

ChefBuildError
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
/bin/sh: 1: mariadb_config: not found
Traceback (most recent call last):
File "/etc/poetry/venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/etc/poetry/venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/etc/poetry/venv/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmppwky36mf/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmppwky36mf/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/tmppwky36mf/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/tmppwky36mf/.venv/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 27, in
File "/tmp/tmp783xeam4/mariadb-1.1.10/mariadb_posix.py", line 62, in get_config
cc_version = mariadb_config(config_prg, "cc_version")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmp783xeam4/mariadb-1.1.10/mariadb_posix.py", line 28, in mariadb_config
raise EnvironmentError(
OSError: mariadb_config not found.
This error typically indicates that MariaDB Connector/C, a dependency which
must be preinstalled, is not found.
If MariaDB Connector/C is not installed, see installation instructions
If MariaDB Connector/C is installed, either set the environment variable
MARIADB_CONFIG or edit the configuration file 'site.cfg' to set the
'mariadb_config' option to the file location of the mariadb_config utility.
at /etc/poetry/venv/lib/python3.10/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│                 error = ChefBuildError("\n\n".join(message_parts))
162│
163│             if error is not None:
→ 164│                 raise error from None
165│
166│             return path
167│
168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with mariadb (1.1.10) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "mariadb (==1.1.10)"'.

@mdsage1 Hint: Look at the files in the EDAM ETL project folder, in particular to project.json. There is a perfect place where the pip command could be placed.


Segfault while loading projects on GLES3

Godot version: 3.2.2-stable (official download); also reproducing with aur/godot build 3.2.2-2
OS/device including version:

ArchLinux
GPU: GeForce GT 1030 (supports OpenGL 4.6.0)
Drivers: extra/nvidia 450.57-6 (propertiary)
Backend: GLES3 (GLES2 is working fine)

May be worth noting that I didn't have the issue a while back on Ubuntu MATE (Godot 3.2 stable and Godot 3.1 stable) although I do reproduce it now with the same executables.
Issue description:
Godot crashes with a segfault on some nvidia calls while loading existing GLES3 projects, and sometimes, but not always, when loading new ones. Trace:
Godot Engine v3.2.2.stable.custom_build - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GT 1030/PCIe/SSE2
handle_crash: Program crashed with signal 11
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /usr/lib/libc.so.6(+0x3c3e0) [0x7f38a9f9b3e0] (??:0)
[2] /usr/lib/libnvidia-glcore.so.450.57(+0xee3db5) [0x7f38a311ddb5] (??:0)
[3] /usr/lib/libnvidia-glcore.so.450.57(+0xee504c) [0x7f38a311f04c] (??:0)
[4] /usr/lib/libnvidia-glcore.so.450.57(+0xb05682) [0x7f38a2d3f682] (??:0)
[5] /usr/lib/libnvidia-glcore.so.450.57(+0xb058fd) [0x7f38a2d3f8fd] (??:0)
[6] /usr/lib/libnvidia-glcore.so.450.57(+0xb0832c) [0x7f38a2d4232c] (??:0)
[7] /usr/bin/godot() [0x10cccf4] (??:?)
[8] /usr/bin/godot() [0x761bde] (??:0)
[9] /usr/bin/godot() [0x77f6a7] (??:0)
[10] /usr/bin/godot() [0x7848da] (??:0)
[11] /usr/bin/godot() [0x75445d] (??:0)
[12] /usr/lib/libc.so.6(__libc_start_main+0xf2) [0x7f38a9f86002] (??:0)
[13] /usr/bin/godot() [0x756b8e] (??:0)
-- END OF BACKTRACE --

Steps to reproduce:

Open the editor

Create a project
Open it
Exit the editor

Open the editor again

Open the project

The crash is coming from within your NVidia GPU drivers. I have no personal experience, but I have heard the NVIdia drivers on Linux are quite bad. I suggest moving to MESA.

When I open some of my old GLES3 projects, they also fail in the editor (unless I pass the --video-driver GLES2 option), but running them (without exporting) works without problems.

I have no personal experience, but I have heard the NVIdia drivers on Linux are quite bad. I suggest moving to MESA.

It's the other way around :) MESA has first-party open source drivers for Intel and AMD, but not for Nvidia. The open source Nouveau drivers are known for having bad performance, because they have no support from Nvidia. The only reasonable option for Linux Nvidia users is to use the upstream proprietary drivers.
But yeah, you're hitting an Nvidia driver regression apparently, so start with the usual suspects:

Make sure to reboot
Reinstall the drivers, reboot
If none works, report the issue to Nvidia. Possibly try to rollback to earlier driver versions to pinpoint when the regression happened

It's been working correctly for a while. May have been some system update fixed this. I think it should be safe to close.


fix: bump edge-runtime to 1.61.2

What kind of change does this PR introduce?
Bump edge-runtime to 1.61.2
Changes
1.61.2 (2024-11-09)
Bug Fixes

sb_workers: allow extra context to be passed in from js land (#440) (1bb7f70)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

0 of 0   changed or added relevant lines in 0 files are covered.
5 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 59.788%

Files with Coverage Reduction
New Missed Lines
%

internal/gen/keys/keys.go
5
12.9%

Totals

Change from base Build<PHONE_NUMBER>3:
-0.03%

Covered Lines:
6383

Relevant Lines:
10676

💛  - Coveralls


Add push to charm store in travisci

Fixed in 452d747.
See build: https://travis-ci.org/hunt-genes/charm-slurm-node/jobs/290338289


Manual ellipse in Distance Direction has not feedback line on minor axis

In testing the manual ellipses in Distance Direction on deployment server the second (minor) axis line has no visual feedback graphic between center point and cursor.

The cursor moves, and if you click the ellipse will be created using the point. The problem is that you can't see the line that is being used as the axis length.

It seems to work in Chrome.
Not working in IE or  FF.
Browser specific issue?

@mfunk, Like @pshowalter mentioned, which browser were you testing the widget with?

Confirmed it is an issue with IE and FF. Will work on it

@kgonzago @nfeuerstein @mfunk
The widget just kept returning a type error when calculating the minor axis length using the geometry engine geodesic length function, but only in FF and IE. I could not work out why the browser was doing this as it was happy with the same function call for the major axis length.
I tried changing the unit value 9001 to 'meters' and also tried setting it as a variable and passing it in to the function but no change in IE and FF.
In the end I changed the function to use the geodesicLengths in geodesicUtils:
minorAxisLength = geodesicUtils.geodesicLengths([this._minGraphic.geometry], Units.METERS);
This worked straight away, whilst fixing this issue I also added a handler to handle the user double clicking when drawing the first axis. It this happens it now clears the previous graphics and starts over, before it left lots of random graphics on the screen

@adgiles odd 9001 doesn't work and Units.METERS works. Regardless, thanks for fixing it.

This issue was moved to Esri/solutions-webappbuilder-widgets#733


Add tags and multiple architectures to official docker images

It would be nice to support multiple architectures (at least arm64) and tag images with MAVSDK release tag.

Currently images at the DockerHub are not tagged with the MAVSDK release which means it is not possible to freeze the version of a dockerized MAVSDK.
Also I am a bit confused: there is a relatively new mavsdk-ubuntu-22.04 image but it is not listed in build_and_push_docker_images.sh while mavsdk-ubuntu-20.04)  was updated 3 months ago (there latter is present in the file).

The images on dockerhub are only really for developers to build mavsdk but not to use mavsdk, so I don't believe we need tags.
Ubuntu 22.04 should now be there: https://github.com/mavlink/MAVSDK/blob/main/docker/build_and_push_docker_images.sh#L17 as the PR has been merged.

Do you consider to publish official Docker image for the server itself?

If there is a need for it, we can do it but I'm curious why you would need it.
If you use the x64 manylinux version it has absolute minimal dependencies and should run on any Linux, so why would you have to put it into docker?
ldd mavsdk_server_manylinux2010-x64
	linux-vdso.so.1 (0x00007ffcfaaac000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f30950bf000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f309509d000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3095097000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3094eca000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3094d86000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3094d6c000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3094ba5000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f30950f9000)

Basically I want to revitalise the work on web-based (gRPC via Envoy as in https://github.com/mavlink/MAVSDK-JavaScript) UX for MAVLink. And I don't want any dependencies except Docker for deployment.

I've created an image for most of the architectures: sitin/mavsdk.
Here is the repo: https://github.com/Sitin/MAVSDK-Docker. I will keep it more or less up to date probably the next several months. But it would be nice if you will include Docker release to your pipeline.
I am currently using existing release tags to download binaries for each architecture.

Ok, but you don't have any dependencies if you just do a wget of the mavsdk_server_manylinux2010-x64 binary into docker.

I'm sorry, I don't want to maintain a docker image.


DataTables

Setup tables as datatables to allow sorting and filtering

A few thoughts:
-Option to have dates displayed in ISO format would be good
For Current Hires:
-Display value
For Completed Hires:
-Display VAT rate
-Display the date the hire was paid for/the date it was marked paid
-Indicate time elapsed since invoice date - highlighting to show hirees in need of chasing/fining
Possibly rename value to Hire Total or similar - not necessarily value to hirer if VAT is applied.


Simplify usage of enums

Enums have to be assigned to variables, before they are used
when i have a enum (def T (enum intern uint (a b c))) and a function (def f (fn intern void ((x T)))) I don't want to write something like this:
(def x (var auto T (| a b)))
(f x)

I'd prefer something like this:
(f (using-namespace T (| a b))

Edit: not even the first example works, so enums aren't really usable

On Sat, Aug 27, 2016 at 03:58:21AM -0700, Fabio Krapohl wrote:

Enums have to be assigned to variables, before they are used
when i have a enum (def T (enum intern uint (a b c))) and a function (def f (fn intern void ((x T)))) I don't want to write something like this:
(def x (var auto T (| a b)))
(f x)
I'd prefer something like this:
(f (using-namespace T (| a b))

Enum values take the form ({name} {member-name}):
(import cstdio)

(def T (enum intern int (a b c)))

(def f (fn intern void ((t T))
  (printf "%d\n" t)
  (return)))

(def main (fn extern-c int (void)
  (def x (var auto T (| (T a) (T b))))
  (f x)
  (f (| (T a) (T b)))
  0))

The documentation on this point is not terribly clear, so it's been
updated with an example.

it would be nice anyway if I could write (T (| a b)) instead of (| (T a) (T b))
then all variable names would be of type T
some additional macro would be useful to allow some other variables than the enum's members, similar to the unquote macro

On Sun, Aug 28, 2016 at 06:13:16PM -0700, Fabio Krapohl wrote:

it would be nice anyway if I could write (T (| a b)) instead of (| (T a) (T b))
then all variable names would be of type T

Fair enough, this has been added.

some additional macro would be useful to allow some other variables than the enum's members, similar to the unquote macro

Do you mean similarly to how prime-function works in stdlib, where the
second argument is cast to match the type of the first?

Example:
(def a (enum intern (x y …)))

(def x (var auto a y))
(def z (var auto a (| x …))

what if x means the variable x, not the enum x?
let's add some form similar to uq (called unenum here):
(def z (var auto a (| (unenum x) …)))

On Tue, Sep 06, 2016 at 12:43:13AM -0700, Fabio Krapohl wrote:

Example:
(def a (enum intern (x y …)))
(def x (var auto a y))
(def z (var auto a (| x …))
what if x means the variable x, not the enum x?
let's add some form similar to uq (called 'unenum' here):
(def z (var auto a (| (unenum x) …)))

Thanks, I see what you mean now.  To fix the main problem here, a
const variable for each enum element is introduced at the same time as
the enum itself.  This means that in the above example, the definition
of 'x' as a var will fail with an error about 'x' already being
defined in that scope.


macOS unable to run

Hi
I have some problem on macOS Speedtest-cli,it shows:
➜  ~ speedtest-cli
Retrieving speedtest.net configuration...
Cannot retrieve speedtest configuration
ERROR: <urlopen error ('_ssl.c:711: The handshake operation timed out',)>
and the version is 2.1.1

I cannot duplicate this, however this error is usually caused by having a version of OpenSSL that is old, which macOS has historically used.
This is not a problem that I can work around, the work around would be to upgrade to a newer macOS, or attempt compiling python against a newer OpenSSL, or obtaining your python from another source.


Issue/Suggestion

Before creating an issue, go through all open/closed issues to avoid getting your issue/suggestion marked as duplicate##
The ifame tag is not responsive
Expected:

Actual

Additional Details:
For making a responsive site one should have to be reponse in every device

someone is working on it

ohk


Update rpi_rf.py: Added 32-bit TX code compatibility

In the actual release of rpi_rf.py I can't use my RF switches because theirs protocol is 32-bit and not 24-bit that is common for 433 MHz RF.
I found the solution in a comment in a youtube video (https://www.youtube.com/watch?v=5UUazFbK-Hg) written by the user Michael McILroy:

I had previously made a comment regarding changing the tx_length in rpi_rf.py from 24 to 32 to allow some switches to work that have a longer digital code.
I have now purchased a 12 VDC 433 MHz 4 channel relay switch so that I could switch my outdoor garden and deck lights on and off.
Now for the different switches I need both the 24 and 32 tx_length.
Here is the modification to rpi_rf.py that will determine this based on the code number that is to be transmitted.
    def tx_code(self, code, tx_proto=None, tx_pulselength=None):
        """
        Send a decimal code.

        Optionally set protocol and pulselength.
        When none given reset to default protocol and pulselength.
        """
        if tx_proto:
            self.tx_proto = tx_proto
        else:
            self.tx_proto = 1
        if tx_pulselength:
            self.tx_pulselength = tx_pulselength
        else:
            self.tx_pulselength = PROTOCOLS[self.tx_proto].pulselength

  # Set tx_length depending on code value
        if (code < 16777216):
            self.tx_length = 24
        else:
            self.tx_length = 32

        rawcode = format(code, '#0{}b'.format(self.tx_length + 2))[2:]
        _LOGGER.debug("TX code: " + str(code))
        return self.tx_bin(rawcode)

This is the piece of extra code that is inserted into the tx_code function
 # Set tx_length depending on code value
        if (code < 16777216):
            self.tx_length = 24
        else:
            self.tx_length = 32

When you update your home assistant this will get over written so you'll need to update it manually again.

I tested it in the Raspbian distribution (in other micro-sd for Raspberyy Pi) and it works!

Hi,
it would be great if you could commit this fix so that the Home Assistant team can implement the new release of rpi_rf and expand the number of compatible switches:
https://github.com/home-assistant/home-assistant/issues/12005#issuecomment-365431792
Thanks,
Giuseppe

Hey there, sorry for the delay.
First of all, thanks for your endeavours. Much appreciated.
So, for the pull request:
Please supply a meaningful first line of the commit message (see https://chris.beams.io/posts/git-commit/).
The code snippet you inserted surely sorts the problem with 32 bit codes, but begs for better integration; we need to think about any other bitlengths that 24 or 32.
The user has the ability to set the length in init. I understand that this needs to be overridden case by case. So I think we should make tx_length overridable in tx_code in the same way as tx_proto or tx_pulselength. We also need to pass the correct bitlenght to tx_bin then.
This, of course, in order to work, would need a change in the Home Assistant module too. But overall we don't wall up against any further changes to the tx_length setting.
What do you think?

Hi!
I agree with you: we could modify the code in such a way as to make it work with different lengths.
I did not think about it because (from the research I did) I only found news about devices that transmit 24-bit or 32-bit codes.
The approach you indicated seems to me to be the most appropriate and clean: make tx_length overridable in tx_code (and in tx_bin) in the same way as tx_proto or tx_pulselength.
In the meantime I think that (since there are a lot of rc-switches with 32bit codes on the market) an idea could be to simultaneously check the length of the code you want to send and, if necessary, set tx_length  to 32.
Example:
  # Set tx_length depending on code value
        if tx_length:
            self.tx_length = tx_length
        else if (code < 16777216):
            self.tx_length = 24
        else:
            self.tx_length = 32

In this way your module would be already working with 32-bit codes without having to modify all the frameworks that integrate it (like Home Assistant and others) and in the meantime it can also be used with different lengths. What do you think?
Thanks for your reply!

I opened a new request: #25


Kubernetes worker - NVidia card

Since one week-end, the Kubernetes worker charms always fail to install if a NVidia card exist on the worker node. It looks like the NVidia PPA key wasn't the right one:
2018-10-09 20:31:23 DEBUG install WARNING: The following packages cannot be authenticated!
2018-10-09 20:31:23 DEBUG install   libnvidia-container1 libnvidia-container-tools nvidia-container-runtime-hook
2018-10-09 20:31:23 DEBUG install   nvidia-container-runtime nvidia-docker2
2018-10-09 20:31:23 DEBUG install E: There were unauthenticated packages and -y was used without --allow-unauthenticated
2018-10-09 20:31:23 ERROR juju-log Hook error:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-kubernetes-worker-9/.venv/lib/python3.5/site-packages/charms/reactive/init.py", line 73, in main
bus.dispatch(restricted=restricted_mode)
File "/var/lib/juju/agents/unit-kubernetes-worker-9/.venv/lib/python3.5/site-packages/charms/reactive/bus.py", line 390, in dispatch
_invoke(other_handlers)
File "/var/lib/juju/agents/unit-kubernetes-worker-9/.venv/lib/python3.5/site-packages/charms/reactive/bus.py", line 359, in _invoke
handler.invoke()
File "/var/lib/juju/agents/unit-kubernetes-worker-9/.venv/lib/python3.5/site-packages/charms/reactive/bus.py", line 181, in invoke
self._action(*args)
File "/var/lib/juju/agents/unit-kubernetes-worker-9/charm/reactive/docker.py", line 128, in install
install_from_nvidia_apt()
File "/var/lib/juju/agents/unit-kubernetes-worker-9/charm/reactive/docker.py", line 298, in install_from_nvidia_apt
nv_container_runtime], fatal=True)
File "/var/lib/juju/agents/unit-kubernetes-worker-9/.venv/lib/python3.5/site-packages/charmhelpers/fetch/ubuntu.py", line 216, in apt_install
_run_apt_command(cmd, fatal)
File "/var/lib/juju/agents/unit-kubernetes-worker-9/.venv/lib/python3.5/site-packages/charmhelpers/fetch/ubuntu.py", line 576, in _run_apt_command
retry_message="Couldn't acquire DPKG lock")
File "/var/lib/juju/agents/unit-kubernetes-worker-9/.venv/lib/python3.5/site-packages/charmhelpers/fetch/ubuntu.py", line 552, in _run_with_retries
result = subprocess.check_call(cmd, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'cuda-drivers', 'docker-ce=17.12.1~ce-0~ubuntu', 'nvidia-docker2=2.0.3+docker17.12.1-1', 'nvidia-container-runtime=2.0.0+docker17.12.1-1']' returned non-zero exit status 100
The issue are the same with a old charm version or the new one! Thanks in advance

Hi @boucherv ,
Thank you for reporting this. As you can see a PR is already up and the fix will be released soon with a new kubernetes worker.
A workaround for now would be to apt-key adv --fetch-keys https://nvidia.github.io/nvidia-docker/gpgkey in the failing workers and to
juju config kubernetes-worker cuda_repo=10.0.130-1
juju config kubernetes-worker nvidia-docker-package=nvidia-docker2
juju config kubernetes-worker nvidia-container-runtime-package=nvidia-container-runtime
juju config kubernetes-worker docker-ce-package=docker-ce

Apologies for the inconvenience caused.

The fix is released in the lates kubernetes-worker https://jujucharms.com/u/containers/kubernetes-worker/239


Issue template file is not working

We have issue template but it is not working as expected.

hey @Neha can you explain more about issue?


Build failure with D3D12 code with mingw-w64 headers earlier than from 2024-06-16

Tested versions

Not reproducible on b97110cd30
Reproducible on e3550cb20f

System information
Windows 10
Issue description
When building with not-bleeding-edge mingw-w64 headers, presumably any versions earlier than https://github.com/mingw-w64/mingw-w64/commit/41d29b87719543cd55bd39c935e2dd8a67ff68eb (in my case, the headers from llvm-mingw-20240606), I get the following error:
In file included from servers\display_server.cpp:42:
In file included from ./drivers/d3d12/rendering_context_driver_d3d12.h:38:
In file included from ./drivers/d3d12/rendering_device_driver_d3d12.h:55:
In file included from thirdparty\directx_headers\include\directx/d3dx12.h:11:
In file included from thirdparty\directx_headers\include\directx/d3d12.h:26:
In file included from D:/dev/toolchain/llvm-mingw/llvm-mingw-20240606-ucrt-x86_64/include/rpc.h:16:
In file included from D:/dev/toolchain/llvm-mingw/llvm-mingw-20240606-ucrt-x86_64/include/windows.h:97:
In file included from D:/dev/toolchain/llvm-mingw/llvm-mingw-20240606-ucrt-x86_64/include/winscard.h:10:
In file included from D:/dev/toolchain/llvm-mingw/llvm-mingw-20240606-ucrt-x86_64/include/wtypes.h:8:
D:/dev/toolchain/llvm-mingw/llvm-mingw-20240606-ucrt-x86_64/include/rpcndr.h:15:2: error: incorrect <rpcndr.h> version. Use the header that matches with the MIDL compiler.
   15 | #error incorrect <rpcndr.h> version. Use the header that matches with the MIDL compiler.
      |  ^
1 error generated.

I suspect it to be caused by this change: https://github.com/godotengine/godot/pull/91172/files#diff-bed1d5fa123300327771a6b6219ef4fed87354d7aa92dfdd9e72cde434de524fR42
CC @clayjohn
Steps to reproduce
Build using a mingw-w64 toolchain that is not using bleeding-edge mingw-w64 headers, with d3d12 enabled.
Minimal reproduction project (MRP)
n/a

Fixable by setting RPCNDR version for the platform code (currently done only for d3d12 module). Not sure if this is caused by MinGW headers, DX headers or DisplayServer change, maybe some header is included where it should not be.
-env.AppendUnique(CPPDEFINES=["D3D12_ENABLED", "RD_ENABLED"])
+env.AppendUnique(CPPDEFINES=["D3D12_ENABLED", "RD_ENABLED", ("__REQUIRED_RPCNDR_H_VERSION__", 475)])

It seems __REQUIRED_RPCNDR_H_VERSION__ does get defined by drivers\d3d12\SCsub, but #91172 added the include in display_server.cpp which is outside of drivers\d3d12.
I believe it should be possible to refactor the code so that display_server.cpp doesn't need to include RD headers, but I guess defining __REQUIRED_RPCNDR_H_VERSION__ at a higher scope can fix the issue. (Though I hate that it would force a lot of objects to be recompiled.)

Though I hate that it would force a lot of objects to be recompiled.

It can be defined directly in the rendering_device_driver_d3d12.h header (before any includes and in if !defined(_MSC_VER) block) and should cover both driver and display server, but not the rest of code.


ng g s: Add ability to generate non-singleton services

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request

Command (mark with an x)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

$ node --version
v10.8.0
$ npm --version
6.3.0
$ ng --version
Angular CLI: 6.0.7
Node: 10.8.0
OS: linux x64

Repro steps

ng g service example

The log given by the failure

New service not included in parent module with:
...
@Injectable({
  providedIn: 'root',
})
...

Desired functionality

New service without providedIn: 'root' attribute and included in parent module.
Mention any other details that might be useful

Hi @am-trinity ,
See discussion in https://github.com/angular/angular-cli/issues/10170 (and many other places). Essentially Services are 99% singletons, and making a special case is actually more confusing for most users. It's a small change for you once the service is generated, so we decided to remove the option.
Please note that we never configured a provider in the past. We always created singleton services. I'm going to close this as working as intended.
Cheers!

I got it, thank you. Declarations like providedIn look very non-familiar and non-transparent (for the first time).


Migrate to latest ESLint Version

Update: Migrate to Latest ESLint Version
Description:
This PR introduces an upgrade to the latest version of ESLint. While there are multiple areas to review, I believe this is a solid starting point for improving code quality and consistency across the project.
Summary of Changes:

Commit 1:

Separated Prettier from ESLint for better clarity and maintainability.
Migrated the configuration files to accommodate the latest ESLint version.

Commit 2:

Resolved code issues based on the new ESLint rules.
Note: Some rules may appear stricter than before. This is something we should evaluate and adjust as necessary.

Next Steps:

Review the updated rules to ensure they align with our coding standards.
Provide feedback on any rules that may need tweaking or further discussion.

Comments and suggestions are welcome!

Guess that means we need a separate workflow to verify prettier formatting?

Guess that means we need a separate workflow to verify prettier formatting?

I can rename the existing prelint and prelint:fix scripts to format and format:fix to handle Prettier separately. Alternatively, I could keep the current names, which would avoid the need to run the two steps manually.
On second thought, prelint and prelint:fix could just call format and format:fix so we keep things DRY. Which approach do you prefer?

Guess that means we need a separate workflow to verify prettier formatting?

I can rename the existing prelint and prelint:fix scripts to format and format:fix to handle Prettier separately. Alternatively, I could keep the current names, which would avoid the need to run the two steps manually.
On second thought, prelint and prelint:fix could just call format and format:fix so we keep things DRY. Which approach do you prefer?

Afraid i have no idea what you're referring to. As far as i understand prettier used to be called as part of the eslint GitHub Action. Now that prettier is not in the eslint config anymore what will call it in CI?

Guess that means we need a separate workflow to verify prettier formatting?

I can rename the existing prelint and prelint:fix scripts to format and format:fix to handle Prettier separately. Alternatively, I could keep the current names, which would avoid the need to run the two steps manually.
On second thought, prelint and prelint:fix could just call format and format:fix so we keep things DRY. Which approach do you prefer?

Afraid i have no idea what you're referring to. As far as i understand prettier used to be called as part of the eslint GitHub Action. Now that prettier is not in the eslint config anymore what will call it in CI?

Prettier will still run as part of the CI process because I added pre scripts for both lint and lint:fix (prelint and prelint:fix). npm automatically runs these pre scripts before executing the corresponding lint and lint:fix scripts. So, Prettier will be invoked every time linting occurs, both in local development and CI.


Added catalan number programs

🛠 Issue (Number)
Issue no #1166
👨💻 Changes proposed

Changes
Problem Statement: Catalan Number
Problem Description:
The Catalan numbers form a sequence of natural numbers that occur in various counting problems, often involving recursive structures.
Given an integer n, your task is to find the nth Catalan number using dynamic programming/recursion.
Write a function Catalan(n) that takes in an integer n and returns the nth Catalan number.
I wrote those 2 algorithms in all languages.
📄 Note to reviewers
The folder named Dynamic-Programming under Java was causing errors locally in my machine due to which I can't run any program under that folder. So I changed its name to "Dynamic_Programming" and it worked.

📷 Screenshots
Java

C++

Python

How to remove all other files ?

@Kumar-laxmi Will you merge this?


WorkflowId with spaces or ampersands (or any char that needs to be url encoded it seems) causes 404 on exec view

Note, this was tested with latest temporalite, just fyi

Can this be expedited if possible? Facing lot of issues during development.

Is there any workaround that I can use till this is fixed?

Installed temporalite using the default @latest command. Change doesn't seem to be reflected. I see that the change is merged into main. Do I need to wait for creation of some build, etc.?


fs: littlefs: force alignment for buffers

At least one flash driver requires that the source and destination
buffers be word-aligned.  Annotate the synthesized definitions to make
sure this happens.
Signed-off-by: Peter Bigot<EMAIL_ADDRESS>Fixes #24122

I've applied this patch and can confirm that it fixes the issue described in #24112.
Thank you for your prompt response.