Python 3.10.15 fails to build from source / The Python ssl extension was not compiled

Provide environment information
OS:
Darwin GR0426 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64 arm Darwin
SHELL:
GNU bash, version 5.2.15(1)-release (aarch64-apple-darwin22.1.0)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Run brew install asdf<EMAIL_ADDRESS>readline tcl-tk ncurses.
Run asdf plugin add python.
Run asdf install python latest:3.10.15.

Describe the Bug
Python fails to build:
python-build 3.10.15 /Users/ian.eure/.asdf/installs/python/3.10.15
python-build: use<EMAIL_ADDRESS>from homebrew
python-build: use readline from homebrew
Downloading Python-3.10.15.tar.xz...
-> https://www.python.org/ftp/python/3.10.15/Python-3.10.15.tar.xz
Installing Python-3.10.15...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use ncurses from homebrew
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/ian.eure/.asdf/installs/python/3.10.15/lib/python3.10/ssl.py", line 99, in <module>
    import _ssl             # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'
ERROR: ". Missing the OpenSSL lib?

Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems

BUILD FAILED (OS X 14.5 using python-build 2.4.16)

Inspect or clean up the working tree at /var/folders/s_/7bxk_vw57xq9qgdsl0zj747m0000gp/T/python-build.20241017141705.7605
Results logged to /var/folders/s_/7bxk_vw57xq9qgdsl0zj747m0000gp/T/python-build.20241017141705.7605.log

Last 10 log lines:
		DYLD_LIBRARY_PATH=/var/folders/s_/7bxk_vw57xq9qgdsl0zj747m0000gp/T/python-build.20241017141705.7605/Python-3.10.15 ./python.exe -E -m ensurepip \
			$ensurepip --root=/ ; \
	fi
Looking in links: /var/folders/s_/7bxk_vw57xq9qgdsl0zj747m0000gp/T/tmp5pgrv_jk
Processing /private/var/folders/s_/7bxk_vw57xq9qgdsl0zj747m0000gp/T/tmp5pgrv_jk/setuptools-65.5.0-py3-none-any.whl
Processing /private/var/folders/s_/7bxk_vw57xq9qgdsl0zj747m0000gp/T/tmp5pgrv_jk/pip-23.0.1-py3-none-any.whl
Installing collected packages: setuptools, pip
  WARNING: The scripts pip3 and pip3.10 are installed in '/Users/ian.eure/.asdf/installs/python/3.10.15/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-23.0.1 setuptools-65.5.0

Here's the brew info for<EMAIL_ADDRESS>==><EMAIL_ADDRESS>stable 1.1.1w (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
Deprecated! It will be disabled on 2024-10-24.
Installed
<EMAIL_ADDRESS>(8,101 files, 18MB)
  Poured from bottle using the formulae.brew.sh API on 2024-01-05 at 11:10:00
From<EMAIL_ADDRESS>License: OpenSSL
==> Dependencies
Required: ca-certificates ✔
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
<EMAIL_ADDRESS>
and run
<EMAIL_ADDRESS>
<EMAIL_ADDRESS>is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

If you need to have<EMAIL_ADDRESS>first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/openssl@1.1/bin:$PATH"' >> /Users/ian.eure/.bash_profile

For compilers to find<EMAIL_ADDRESS>you may need to set:
  export<EMAIL_ADDRESS>  export<EMAIL_ADDRESS>
For pkg-config to find<EMAIL_ADDRESS>you may need to set:
  export<EMAIL_ADDRESS>==> Analytics
install: 22,694 (30 days), 73,014 (90 days), 473,032 (365 days)
install-on-request: 14,220 (30 days), 45,278 (90 days), 259,740 (365 days)
build-error: 9 (30 days)

Expected Behaviour
Python should compile.

Okay, my immediate issue was resolved by uninstalling<EMAIL_ADDRESS>from Homebrew; Python 3.10.x requires newer OpenSSL than that.  Unfortunately, several other tools I need depend on<EMAIL_ADDRESS>so those are broken for the time being.
Is is possible for asdf/this plugin to build Python with an openssl@3 package, rather than selecting an older version that doesn't work?


Using T button as GM

It would be nice if the T button would also work for the GM.
As it is implemented now using T and clicking on a token as a GM also selects the clicked token which results in the token targeting itself instead of the previously selected token targeting the clicked token

Use the mod "T is for Target"

Switched to Easy target in the meantime :-)


change parameter

Hallo, I would like to change parameter datestyle from ISO, MDY to ISO, DMY in Parameter.swift
When I try:
let text = "SET DateStyle TO 'ISO, DMY';"
let cursor = try Database.connection().prepareStatement(text: text).execute()
error: Invalid value for Postgres parameter (response.name): ISO, DMY (must be ISO, MDY); closing connection
Please what is the best way to do this?

PostgresClientKit sets the Postgres DATESTYLE parameter to ISO, MDY and doesn't allow this value to be changed.  This prevents misinterpretation of dates sent over the wire due to configuration mismatches.
If you want to control the format of dates in your user interface, you should use the PostgresDate type (or PostgresTimestampWithTimeZone for date/time values) and a DateFormatter (from the Foundation framework).

In my Postgres database are many funcs, where the date is set as string in format DD.MM.YYYY. ISO DMY is required.  Would it be possible to set ISO DMY or MDY as a parameter please?

Could please try this commit (tip of the develop branch)?  40fe0ffa62a4d3c9b2c0c2ba2f3bc50cda6febf2
This should allow you to set the DATESTYLE paraameter to ISO, MDY, ISO, DMY, or ISO, YMD.

If i used playground, i couldn't use import PostgresClientKit :No such module 'PostgresClientKit'
But i modified the test and it worked properly.
Can you please add this modification to the release?

Released in v1.3.1.

thank you so much


Provide imports for testing and large codebase migrations

Currently it is not possible to manually write data into a Sink or Handler. For safety reasons the next() method on the inner observable of Sink is hidden. This is a good thing to discourage the usage of side-effects.
Though this would be useful to use in tests.
Another use-case is migration of large code-bases. Allowing side-effecting parts of the code to write into Sink/Handler would help to at least compile a partially migrated code base.
I suggest an Import like
import outwatch.sinkUnsafeNext

where SinkUnsafeNext is an implicit class over Sink to provide an unsafeNext() method.

You could construct and ObserverSink that allows you to push items into it (has the inner observer public):
  def unsafeSink[T](sink: Sink[T]): IO[ObserverSink[T]] = {
    val subject = Subject[T]
    val newSink = ObserverSink(subject)

    (sink <-- subject).map(_ => newSink)
  }

For example:
def main(args: Array[String]): Unit = {

    val handler = Handlers.createStringHandler()

    handler.flatMap { handler =>
      handler(elem => dom.console.log(s"Elem: $elem"))

      unsafeSink(handler).map { sink =>
        sink.observer.next("One")
        sink.observer.next("Two")
        sink.observer.next("Three")
      }
    }.unsafeRunSync()
  }

But why is the observer in ObserverSink public, but not in Sink?


Add #resource_validation_context on Devise::RegistrationsController a…

…s POC
As a side feature of configuring permitted params in Devise::RegistrationsController, it might be a valid use case to be able to configure the validation context on resource registration.
Linked PR is just a POC. If you show some interest in this feature, I would be glad to investigate more in code quality (and adding tests).
Possibly related to #4705

Seems reasonable, but I think we might include the action on the validation context name, because people might want a different one to the update action, for example 🤔

You’re right. I might even implement it on every controller that performs persistence on resources in order to keep it consistent across the gem.

Hey @toommz, just checking with you to see if you're still going to work on this. Otherwise, I might leave it for someone to grab on Hacktoberfest.

Hi, sorry for the late response. You can assign it to the Hacktoberfest
feature list as I’m not working on it at the moment.
Le ven. 28 sept. 2018 à 23:01, Leonardo Tegon<EMAIL_ADDRESS>a
écrit :

Hey @toommz https://github.com/toommz, just checking with you to see if
you're still going to work on this. Otherwise, I might leave it for someone
to grab on .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/plataformatec/devise/pull/4785#issuecomment-425564920,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZHUJYIld6_qIqmNoBvlh1oGf9U1lGiks5ufo48gaJpZM4SUtZR
.

@tegon Don't know if some work has been done on this PR during Hacktoberfest. I found that applying a context on update was more complicated than on create. I think that merging the context in the params is far from an ideal implementation, but I was thinking about backward compatibility for people using update_resource outside of Devise::RegistrationsController.
Otherwise I can be more drastic in the changes for the sake of code cleanliness.


Django

I tried following this to publish a Django web application and it failed to install all the packages in my project, with some unfriendly errors in the CLI. Could we get a guide to publishing a Django app on Azure App Service? There is literally no official documentation for this.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ac1cd213-5a9f-ae10-73b5-96061bfbd9d9
Version Independent ID: cec78ca0-f4c0-970e-dde0-44db72d3819f
Content: Create a Python web app in Azure
Content Source: articles/app-service/app-service-web-get-started-python.md
Service: app-service-web
GitHub Login: @cephalin
Microsoft Alias: cephalin;cfowler

@wechuli Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

Yes, this is not working for me as well.

@wechuli @akshaybabloo we've decommissioned that quickstart and created a new one targeting the Linux OS as the recommended approach for Python. Please go there instead. https://docs.microsoft.com/en-us/azure/app-service/containers/quickstart-python
#please-close

Thanks @cephalin

Great, thanks @cephalin


FailedPreconditionError (see above for traceback): Attempting to use uninitialized value fcn_8s/pool3_fc/biases 	 [[Node: fcn_8s/pool3_fc/biases/read = IdentityT=DT_FLOAT, _class=["loc:@fcn_8s/pool3_fc/biases"], _device="/job:localhost/replica:0/task:0/cpu:0"]]

saver = tf.train.import_meta_graph('./fcn_8s_checkpoint/model_fcn8s_final.ckpt.meta')     saver.restore(sess,"./fcn_8s_checkpoint/model_fcn8s_final.ckpt")
Got an error on TF 1.3.0 without GPU, any idea?
FailedPreconditionError                   Traceback (most recent call last)
 in ()
60     saver.restore(sess,"./fcn_8s_checkpoint/model_fcn8s_final.ckpt")
61
---> 62     image_np, pred_np = sess.run([image_tensor, pred], feed_dict=feed_dict_to_use)
63
64     io.imshow(image_np)
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in run(self, fetches, feed_dict, options, run_metadata)
893     try:
894       result = self._run(None, fetches, feed_dict, options_ptr,
--> 895                          run_metadata_ptr)
896       if run_metadata:
897         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _run(self, handle, fetches, feed_dict, options, run_metadata)
1122     if final_fetches or final_targets or (handle and feed_dict_tensor):
1123       results = self._do_run(handle, final_targets, final_fetches,
-> 1124                              feed_dict_tensor, options, run_metadata)
1125     else:
1126       results = []
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata)
1319     if handle is None:
1320       return self._do_call(_run_fn, self._session, feeds, fetches, targets,
-> 1321                            options, run_metadata)
1322     else:
1323       return self._do_call(_prun_fn, self._session, handle, feeds, fetches)
/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.pyc in _do_call(self, fn, *args)
1338         except KeyError:
1339           pass
-> 1340       raise type(e)(node_def, op, message)
1341
1342   def _extend_graph(self):
FailedPreconditionError: Attempting to use uninitialized value fcn_8s/pool3_fc/biases
[[Node: fcn_8s/pool3_fc/biases/read = IdentityT=DT_FLOAT, _class=["loc:@fcn_8s/pool3_fc/biases"], _device="/job:localhost/replica:0/task:0/cpu:0"]]
Caused by op u'fcn_8s/pool3_fc/biases/read', defined at:
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/ipykernel_launcher.py", line 16, in
app.launch_new_instance()
File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelapp.py", line 477, in start
ioloop.IOLoop.instance().start()
File "/usr/local/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 177, in start
super(ZMQIOLoop, self).start()
File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 888, in start
handler_func(fd_obj, events)
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 440, in _handle_events
self._handle_recv()
File "/usr/local/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 472, in _handle_recv
self._run_callback(callback, msg)
File "/usr/local/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 235, in dispatch_shell
handler(stream, idents, msg)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/ipkernel.py", line 196, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/zmqshell.py", line 533, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2718, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2822, in run_ast_nodes
if self.run_code(code, result):
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 49, in
is_training=False)
File "tf_image_segmentation/utils/inference.py", line 53, in new_network_definition
all_outputs = network_definition(*args, **kwargs)
File "tf_image_segmentation/models/fcn_8s.py", line 151, in FCN_8s
scope='pool3_fc')
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1027, in convolution
outputs = layer.apply(inputs)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/layers/base.py", line 503, in apply
return self.call(inputs, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/layers/base.py", line 443, in call
self.build(input_shapes[0])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/layers/convolutional.py", line 144, in build
dtype=self.dtype)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/layers/base.py", line 383, in add_variable
trainable=trainable and self.trainable)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 1065, in get_variable
use_resource=use_resource, custom_getter=custom_getter)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 962, in get_variable
use_resource=use_resource, custom_getter=custom_getter)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 360, in get_variable
validate_shape=validate_shape, use_resource=use_resource)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1561, in layer_variable_getter
return _model_variable_getter(getter, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/layers/python/layers/layers.py", line 1553, in _model_variable_getter
custom_getter=getter, use_resource=use_resource)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/variables.py", line 261, in model_variable
use_resource=use_resource)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 181, in func_with_args
return func(*args, **current_args)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/variables.py", line 216, in variable
use_resource=use_resource)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 352, in _true_getter
use_resource=use_resource)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 725, in _get_single_variable
validate_shape=validate_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variables.py", line 199, in init
expected_shape=expected_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variables.py", line 330, in _init_from_args
self._snapshot = array_ops.identity(self._variable, name="read")
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 1400, in identity
result = _op_def_lib.apply_op("Identity", input=input, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2630, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1204, in init
self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access
FailedPreconditionError (see above for traceback): Attempting to use uninitialized value fcn_8s/pool3_fc/biases
[[Node: fcn_8s/pool3_fc/biases/read = IdentityT=DT_FLOAT, _class=["loc:@fcn_8s/pool3_fc/biases"], _device="/job:localhost/replica:0/task:0/cpu:0"]]

@caxton how did you solve it? I have got a similar issue.

I got this issue too. Do you solve this problem and how?


Why only certain classes are targeted from the framework in test generation?

Hi,
I'm using the command to generate tests for a specific project. However, all the generated test cases are targeting only one class from the entire project. Why is that the case? What is the criteria used by D4J to select the classes.
For example:
gen_tests.pl -g randoop -p Lang -v 1f -n [id] -o [outputdir] -b 3000 generates test cases covering only the org.apache.commons.lang3.NumberUtils class. The same if I changed the generator to evosuite.
I tried with a different project id Compress, and again all the generated test cases are targeting org.apache.commons.compress.archivers.cpio.*, and any other instances from other classes are probably generated to be used in the constructor of the CpioArchiveOutputStream.
Is there a reason for this behavior, and can we control it as users?
Thanks

Hi @islamelgendy,
By default Defects4J generates tests for the "buggy" classes -- that is, the classes modified by the bug fix.
You can generate tests for an arbitrary set of classes by setting the -c flag. The html documentation provides more details.
Best,
René

Thanks for your reply.
I have used the -c flag before, specifying a text file with the target classes. Using evosuite, the framework was able to generate test cases for the classes. However, using the same text file with randoop, the framework was not able to generate any test cases with a message at the end "Test generator (randoop) did not generate any tests!".
I used the Lang as a test subject, and I wrote in the text file org.apache.commons.lang3.math.Fraction.

Can you please provide all commands that reproduce the issue for Randoop?
Thanks,
René

The command is simply
gen_tests.pl -g randoop -p Lang -v 1f -n [id] -o [outputdir] -b 30 -c [dir]/Lang_classes_file.txt.
in the Lang_classes_file.txt I wrote a single line:
org.apache.commons.lang3.math.Fraction
After a few seconds a message "Test generator (randoop) did not generate any tests!" was shown on the console.
Keep in mind that the same command worked with -g evosuite.
Best,
Islam

I am able to reproduce this issue, which is related to how Randoop generates tests. I opened a new issue for this: #392.
I'll comment on a workaround in #392 and close this issue.


fix(video-player): prevent minuscule thumbnails

Related Ticket(s)
Resolves #9365
Description
The default width for DDSVideoPlayer thumbnails seems to have been accidentally set to 3px, resulting in tiny images that appeared as a blur when stretched to fill the container. I've reset this default width to 655px, the size they were before the accidental change.
While debugging, I noticed the tabs-extended-media Storybook story was not rendering videos. I fixed this by adding a missing import to the content-item-horizontal/index.ts file.
Changelog
Changed

Restores the default width for video player thumbnails to a sensible size (655px).
Fixes video rendering when using content-item-horizontal component.

The 3px blown up to a blur was intentional in #7914


Create A New Welcome Card - Mobile card Not visible in Mobile App - US Region

Tutorials: https://developers.sap.com/tutorials/cp-mobile-cards-welcome.html
The mobile card is not loading in the mobile app after creating the booster welcome card in the US region. (The card subscription was successful, tried again after unsubscribing and subscribing again).
In the activity log, it says failed to load the card.
Please check the issue.
Labels to be attached:
Sprint Label: SCPTest-2112A
Prio: high-prio
Scenario label: SCPTest-mcard
Landcape Label: SCPTest-trial2
Thanks,
Shubham

this looks like a duplicate to https://github.com/sap-tutorials/Tutorials/issues/17985

@SamiLechner If this issue really is a duplicate, please close it. Thank you.


Add regression test framework

In conversation with Ally Donaldson, it was strongly suggested that act have a regression test framework.
Off the top of my head, the easiest place to start with this would be diffing explain output on known assembly.

There is now a rudimentary regression test runner, but not many tests (so far).  Going to close this, but note that more tests need adding.


Renaming method causes behavior change

Does this issue occur when all extensions are disabled?: Yes/No

-VS Code Version: 1.88.1
-OS Version: Windows11
-Language：java
Steps to Reproduce:
1.select "()"
2.click “Rename”
3. new name "valueOf()"
import static java.lang.String.valueOf;
public class OriginalClass {
// rename m() to valueOf
static String m(int i) { return "1"; }
public void test() {
System.out.println(valueOf(0));
}
}

/extJava

It looks like this is caused by the Java extension. Please file the issue to the Java extension repository. Make sure to check their troubleshooting instructions and provide relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.
Happy Coding!


Fix 'plotlyplot' for numpy arrays.

I realize that the plotlyplot function will fail if the Plotly figure's attributes are numpy arrays instead of plain lists, since the numpy arrays cannot be serialized to JSON in _send.
I thought the easiest solution is to make use of the Plotly Python client's PlotlyJSONEncoder, which properly deals with that as well as proper handling of NaNs and Infs. I load the JSON back as a Python dict so _send can add other attributes to it before JSON-serializing the entire message.
With this, plotly.figure_factory.create_distplot works:

Done.


Add 1.6.1 info

Signed-off-by: Anna Jung (VMware<EMAIL_ADDRESS>
Add 1.6.1 release info

cc @kubeflow/release-team

deploy preview: https://deploy-preview-3373--competent-brattain-de2d6d.netlify.app/docs/releases/kubeflow-1.6/#161

Hi @zijianjoy, could you take a look?

/lgtm
/approve
Thank you for the 1.6.1 update!


New package: Quickhull v0.2.0

Registering package: Quickhull
Repository: https://github.com/augustt198/Quickhull.jl
Created by: @augustt198
Version: v0.2.0
Commit: 0ed86806d2fe03c653d36173a9f83117ed3ac0a1
Reviewed by: @augustt198
Reference: https://github.com/augustt198/Quickhull.jl/commit/0ed86806d2fe03c653d36173a9f83117ed3ac0a1#commitcomment-144568140

[noblock] Minor detail: you might want to put a link to the QHULL you’re comparing against in the README. I’m assuming it is http://www.qhull.org/

[noblock] Thanks, I've added a link


Use a single repository for the entire rdf4j code base (merging storage, tools, and testsuite back into rdf4j)

Motivation
Back in 2017 (see https://www.eclipse.org/lists/rdf4j-dev/msg00410.html ) we made a decision to split the rdf4j project over multiple repositories. The main motivation for this was that a full build + verification of the project was taking too long, and this encouraged contributors to take shortcuts. The theory was that by splitting the project, we could get verification time down.
However, that expected speed gain has not really materialized. It's true that individual repo builds are quicker, but when we make a change in, for example, the rdf4j repo, we still need to run verification in rdf4j-storage and -tools - and can turn out to still break things.
A further downside is that compliance tests in the rdf4j repo often use code from rdf4j-storage (e.g. a sail impl) or from rdf4j-tools (e.g. to spin up an rdf4j server) - however due to the order of dependencies, those modules are not built yet when rdf4j repo does its verification. While that's no big deal as long as we're on a develop branch, and everything just uses "the latest SNAPSHOT", it seriously messes up things when release time rolls around and we have to set fixed versions: suddenly when rdf4j repo tries to build it fails because its tests can't find rdf4j-sail-memory 3.0.0. I have been attempting to mitigate this by moving tests around in the project, as well as setting fixed (older) versions for these kinds of test dependencies - but it's not ideal.
Finally: the Jenkins pipeline we currently have to build, verify and deploy all of this is just incredibly convoluted. We now have 24(!) separate Jenkins jobs to coordinate all of this, and it's painful to maintain tbh.
Proposed change
We move back to a mono-repo for the entire codebase, which will live in the rdf4j github repository. rdf4j-doc will remain a separate repository, where the project website and documentation are maintained.
To make sure we get decent build and verification times, we will make the following improvements:

culling and cleaning in our compliance and integration tests (there are quite a few tests in there that are either very slow, or redundant, or both).
better unit testing with mocking and stubbing instead of cramming all our verification into massive compliance/integration test suites that spin up full servers every time.

Tasks

[x] merge rdf4j-storage (with tags and history) into rdf4j
[x] merge rdf4j-tools (with tags and history) into rdf4j
[x] merge rdf4j-testsuites (with tags and history) into rdf4j
[x] reconfigure maven to handle the single-repo build
[ ] reconfigure Jenkins to handle the simplified build pipeline
[ ] mark old repositories as no longer in use (possibly make them read-only)

(See also discussion at https://www.eclipse.org/lists/rdf4j-dev/msg01147.html )

Tentatively scheduled to be done after the 3.0 release.

Merging the testsuite repo including all history is giving me a lot of headaches, due to the many files being moved and deleted when things were first split: it's nearly impossible to reconcile. So I'll instead just manually copy over the the benchmarks (which is the only part of the testsuites repo that is still relevant).

Turns out the idea of skipping the compliance tests unless the -Pcompliance profile was activated has problems. For now I'll just make sure the compliance modules are not actually deployed. We'll look into how to deal with PR verification vs full compliance later.

Jenkins configuration looks to be set well now, after a few tries:

the PR verification job skips integration tests by means of the -DskipITs flag.
verification of the master branch has been configured as an incremental build, so (in theory) it should only build/test those modules that have had changes applied.

On a separate note: note that the develop branch has not yet been set up correctly.

Happy with the setup for now.


⚙ Help wanted!

Here are a few pieces that we currently need help with

Getting a good pre-commit setup, and CI steps
Making our styling system saner (currently its a mix of hardcoded values, and CSS vars. Also, the typedoc styles live separate to the next JS App)
Dark mode support for docs (https://github.com/pastelsky/tsdocs/issues/1)
Doing a coverage of the top ~200 most used frontend / backend npm packages by type and seeing where tsdocs.dev fails
A Command + K search widget for quick search

Hi
I would like to help with points 2 and 3.
I can start working on writing a styling system and modularising it.
And then afterward, implementing a dark theme based on the new system.

@alienkarma to begin with we'd need to commonize the following into separate variables —

Colors
Spacing / Sizing
Fonts
Others

Also note that tsdocs.dev is essentially two separate webapps —
the top webapp is next js powered and has its own styles, whereas the documentation pages are HTML based, generated by typedoc, with a few injected react elements (e.g. header).
We'd ideally need a common system that can be injected in both these webapps for sanity.
Color might be a good one to start with. I like the way open props organises its atomic styles —
https://github.com/argyleink/open-props/tree/main/src
so it would be good to take that as inspiration.
@torchsmith also has a WIP PR for dark mode here —
https://github.com/pastelsky/tsdocs/pull/13
But I think we should get our variables right before patching in more color modes.

can I got more details about the CI steps, and pre-commit setup?
What to hook to fetch befor the commit, and the CI for what

First of all, cool! This looks great and I think really solves a problem many of us have and could become a standard moving forwards 👍
I think the main issue we're running into right now is the service frequently breaking down though. At least for me I've been trying to open my package docs every once in a while and it almost never worked with varying errors. Then last week it seemed to work well for one of my packages (@liveryvideo/player) for a while, but not for another (@liveryvideo/interactive-bridge). And then now the whole server seems to be unresponsive again.
I guess there are issues with the server code intermittently hanging or crashing combined with some form of caching?
Could you please keep us posted a bit about these kinds of issues somewhere; perhaps a little service status indicator on the main page and/or a link to articles at blog.tsdocs.dev or so?
In the mean time I'm left wondering what to use for now; I really want to stop having to manually copy paste my docs over to our docsify markdown files, but have not found a practical and reliable solution. I really hope we can get tsdocs working reliably. Could we perhaps also help with that somehow? You didn't list that here. I'll see if we can sponsor you for starters.

Yep, I'm aware of the reliability issues affecting the site at the moment.
It is hosted on a small droplet at the moment — but I just pushed out an update that should hopefully make the building more resilient to changes. Prior to this, a single hung build could cause the server to crash.
I have a couple of uptime checks (internal) to keep a watch for a few days to see.
I'm very keen on upping the reliability significantly and getting enough funding to host this on something that can build/serve documentation to more users concurrently @difosfor.

Great! It's working like a charm now 👍


Add support for WKT literals on map

In many cases points and geometries are defined using WKT literals using http://www.opengis.net/ont/geosparql#asWKT property.
Would be nice to show these on the map view. Support for POINT, POLYGON and MULTIPOLYGON would be ideal.

keeping this open for future reference


Tags stack and display improperly in collection views after scrolling

When used in a collection view, the tags sometimes don't display in their proper place. After scrolling down then back up, some tags get stacked and/or duplicated.

This also occurs when simply scrolling down through the collection view. It is more pronounced when scrolling back up.

Could you pull the latest from here and see if it works now?

It appears to work now. Thanks!


clean some duplicate code

This PR removes some duplication in the code of constructing receiver,

contained in https://github.com/hdinsight/spark-eventhubs/pull/17


Fix leaks in the test cases of CachedBatchWriterSuite

contributes #5854
Fix leaks in the test cases of CachedBatchWriterSuite
Changes 1
The following  spyCol.split is executed actually, ant it creates non-closed cv splits.
when(spyCol.split(any())).thenReturn(splitCols.toArray)

Should be
when(spyCol).split()

See mockito document
Changes 2
Some refactor
Verify
cd spark-rapids
mvn clean install -Dbuildver=330 -DskipTests
cd tests
mvn test -Dbuildver=330 -DwildcardSuites=com.nvidia.spark.rapids.CachedBatchWriterSuite

Signed-off-by: Chong Gao<EMAIL_ADDRESS>

build


Cargo integration has issues with workspaces

The builtin cargo integration is having trouble with cargo workspaces (see https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html). The issue seems to be mostly, that only the Cargo.toml file of the subcrate with the currently opened file is detected and not the actual workspace root (which is probably a directory further up).
The build is then started for the subcrate only and there is also an issue with error locations, because cargo reports them relative to the workspace root, whereas overseer expects them relative to the subcrate root. For example if there is a subcrate "a" with an error in "a/file.rs", overseer turns this into "a/a/file.rs" in the quickfix list, because cargo reports it as "a/file.rs" and overseer expects that to be a filename relative to "a/".
The issue seems to be similar to the following (already solved) issue at Neomake: https://github.com/rust-lang/rust.vim/issues/259
Their solution is to run cargo metadata --no-deps --format-version 1 and then reading the workspace_root from the JSON output, which seems to work fine from any subdirectory, judging by some quick testing on the command line.

Am I correct in thinking that the issue is only with parsing the relative file paths in the on_output_quickfix and on_output_parse components? Because if that is the case then I believe this should be fixed now

That was the main issue for me. The other question is whether to build from the workspace root (ie. build all subcrates) or whether to build the subcrate with the currently opened file only.
As far as I’m aware, cargo will handle both cases properly, so this is probably a question of preference/use case and there is no single correct answer.
For me personally, the issue is probably fixed, but I can’t check on my computer currently.

No worries, give it a try when you get a chance. I also added a change so that when you are in a subcrate directory you will also be able to run cargo tasks at the workspace level.

I can confirm that the fix is working for me :-). Also the option to build on workspace level is awesome. 👍


BREAKING: Feat/radio group compliant with ARIA patterns

RadioGroup
This is a ARIA-patterns compliant implementation of Radio and RadioGroup.
My initial testing shows that it works with all required screen reader/browser combinations.
The only exception is that the focused option is not highlighted with JAWS in virtual cursor mode.
This breaks the current Radio API as Radio is replaced with RadioGroup.Item
TODO

[X] Conformance test
[X] Minimal doc site example
[X] Stardust base theme
[X] Teams Light theme
[ ] Teams Dark theme
[ ] Teams Contrast theme
[X] Confirm RTL usage
[X] W3 accessibility check
[X] Stardust accessibility check
[ ] Update glossary props table
[ ] Update the CHANGELOG.md

API Proposal
[Group]

<RadioGroup defaultCheckedIndex={0} items={items} onChange={this.handleChange} />

        Capricciosa

Comparison of approaches that I tried: (the last row is this implementation)

As per our discussion the next step would be introducing variables for the RadioGroup with slot for the items, but we are leaving this for dedicated PR. In my opinion this is good to be merged now.

fixes https://github.com/stardust-ui/react/issues/195


Separate Volume Sliders

Is your feature request related to a problem? Please describe
No response
Describe the solution you'd like
Separate Slider for every android program  in the System Volume mixer.
Describe alternatives you've considered
No response
Please specify the version of Windows Subsystem for Android
2209.40000.26.0

Hi, thanks for this feature request. What's your use case here, as a developer? If this is more of an app or end user issue, please use the Windows Feedback Hub!


Add errors to analytics

This came up while watching someone play with the app and seeing that a quick toggle between explore and channel page tabs would throw an error banner. This converts those to throw an analytics event in GA instead (and goes ahead and throws them on the ErrorScreen for good measure).

So this hides errors locally now?
Can you include a log inside of track so they aren't invisible to us? Or better yet alert them when in development mode?
Can you use or drop alertAndTrackErrors?
This also causes a bit of mental overhead though now deciding what errors are user presentable (login for instance) and what aren't. I'm of the mind we should be alerting all errors regardless of whether or not it's weird to users.

Ok, how about I add tracking to alertErrors and get rid of the rest?

I'm fine with that, but know we than track on stuff like failed login attempts.
Realistically there should be an alertExceptions utility that hides the 'scary' stuff but includes a toggle so you can see it and notify us or some such.

I think even tracking on failed login attempts is fine. We still want to know if that is happening a lot.


"flutter attach" fails to connect when using --debug-url

If I run a Flutter app with flutter run:
danny@Dannys-MacBook-Pro src % flutter run
// ...
An Observatory debugger and profiler on Android SDK built for x86 is available at: http://<IP_ADDRESS>:55772/yRmpm6wAk9w=/
The Flutter DevTools debugger and profiler on Android SDK built for x86 is available at: http://<IP_ADDRESS>:9101?uri=http://<IP_ADDRESS>:55772/yRmpm6wAk9w=/

And then try to connect to it using flutter attach with --debug-url, it fails:
danny@Dannys-MacBook-Pro src % flutter attach -d emulator-5554 --debug-url http://<IP_ADDRESS>:55772/yRmpm6wAk9w=/
Error connecting to the service protocol: failed to connect to http://<IP_ADDRESS>:55918/yRmpm6wAk9w=/

(note the port number in the error is different to the one I provided)
Connecting using the device (-d) seems to work fine.
Passing --debug-url is a workflow supported in VS Code to allow users to attach to Flutter apps that might have been launched externally from VS Code, but currently this fails for the reasons above.
I believe this used to work at some point in the past, because https://github.com/flutter/flutter/pull/70847 looks like a fix for a very similar issue, however even if I pass --no-dds to both flutter run and flutter attach here, I see the same failure.

Hello @DanTup. Thank you for filling this issue. I can reproduce this issue with the default counter app.
Reproducible on:

Stable (3.0.5)
Beta (3.3.0-0.5.pre)
Master (3.1.0-0.0.pre.2481)

Commands run
> flutter run

An Observatory debugger and profiler on sdk gphone64 x86 64 is available at: http://<IP_ADDRESS>:65415/yqkdOMccHd4=/
The Flutter DevTools debugger and profiler on sdk gphone64 x86 64 is available at: http://<IP_ADDRESS>:9101?uri=http://<IP_ADDRESS>:65415/yqkdOMccHd4=/

> flutter attach --debug-url "http://<IP_ADDRESS>:65415/yqkdOMccHd4=/"

Error connecting to the service protocol: failed to connect to http://<IP_ADDRESS>:65476/yqkdOMccHd4=/

Doctor Output
flutter doctor -v (Stable)
[✓] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.22000.856], locale en-IN)
    • Flutter version 3.0.5 at C:\Users\Nabeel\fvm\versions\stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (6 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.2.32630.192
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[✓] VS Code (version 1.70.2)
    • VS Code at C:\Users\Nabeel\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22000.856]
    • Chrome (web)      • chrome  • web-javascript • unknown
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 104.0.1293.63

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

flutter doctor -v (Master)
[✓] Flutter (Channel master, 3.1.0-0.0.pre.2481, on Microsoft Windows [Version 10.0.22000.856], locale en-IN)
    • Flutter version 3.1.0-0.0.pre.2481 on channel master at C:\Users\Nabeel\fvm\versions\master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 91fdbfa7c8 (4 hours ago), 2022-08-25 03:07:06 -0400
    • Engine revision 9600c6c39b
    • Dart version 2.19.0 (build 2.19.0-137.0.dev)
    • DevTools version 2.16.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\android-sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Java\jdk-17.0.4\bin\java
    • Java version Java(TM) SE Runtime Environment (build 17.0.4+11-LTS-179)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.2.32630.192
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[✓] VS Code (version 1.70.2)
    • VS Code at C:\Users\Nabeel\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22000.856]
    • Chrome (web)      • chrome  • web-javascript • unknown
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 104.0.1293.63

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Reading the code here:
https://github.com/flutter/flutter/blob/91fdbfa7c8cb0befd6e45a2ae4b422e362520f70/packages/flutter_tools/lib/src/commands/attach.dart#L307-L316
Which calls here:
https://github.com/flutter/flutter/blob/91fdbfa7c8cb0befd6e45a2ae4b422e362520f70/packages/flutter_tools/lib/src/mdns_discovery.dart#L245
It looks like --debug-url might expect a device port, and not the host port. So I think it's setting up a new forwarded port to the supplied port on the device (where nothing is listening). It's possible that what I'm trying to do here is not supported (usually you'd use flutter attach with an app not launched with flutter run). If that's the case, the fix may be just to improve the description on --debug-url to make this clearer:
https://github.com/flutter/flutter/blob/91fdbfa7c8cb0befd6e45a2ae4b422e362520f70/packages/flutter_tools/lib/src/commands/attach.dart#L82-L84


S3 pull ends up with PermissionError: The difference between the request time and the server's

Hi, a few days ago we have encountered this exception when pulling dvc tracked data using dvc get command. We were pulling about 800 of 4GB files.
The issue can be related to this comment https://github.com/iterative/dvc/issues/9070#issuecomment-1443852816
Traceback (most recent call last):
  File "reproduce_pull.py", line 50, in <module>
    copy(
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/dvc_objects/fs/generic.py", line 93, in copy
    return _get(
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/dvc_objects/fs/generic.py", line 241, in _get
    raise result
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/dvc_objects/executors.py", line 134, in batch_coros
    result = fut.result()
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/dvc_objects/fs/generic.py", line 220, in _get_one_coro
    return await get_coro(
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/dvc_objects/fs/callbacks.py", line 84, in func
    return await wrapped(path1, path2, **kw)
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/dvc_objects/fs/callbacks.py", line 52, in wrapped
    res = await fn(*args, **kwargs)
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/s3fs/core.py", line 1224, in _get_file
    body, content_length = await _open_file(range=0)
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/s3fs/core.py", line 1215, in _open_file
    resp = await self._call_s3(
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/s3fs/core.py", line 348, in _call_s3
    return await _error_wrapper(
  File "/srv/workplace/pchmelar/repos/dvc/venv/lib/python3.8/site-packages/s3fs/core.py", line 140, in _error_wrapper
    raise err
PermissionError: The difference between the request time and the server's time is too large.

We found out that the command fails semi-deterministically after about 20 minutes of pulling process.
We also found out that setting the --jobs parameter to 10 instead of 4x cpu_count (which is default) worked-around the problem.
>>> import os
>>> os.cpu_count()
56

I did a little bit digging around and maybe found a root cause of the problem:

In this SO comment someone mentioned that this problem can be sometimes caused by asynchronous calls. Mainly because the request is created much earlier than executed which can cause request time and s3 server time diff.
according to the SO comment the maximal request-servertime diff is 15 minutes for S3
dvc-data package uses s3fs that calls async _get_file https://github.com/fsspec/s3fs/blob/main/s3fs/core.py#L1204C15-L1204C24 during the pull
the _get_file is called asynchronously as many times as the --jobs parameter specifies
the body, content_length = await _open_file(range=0) of _get_file https://github.com/fsspec/s3fs/blob/main/s3fs/core.py#L1204C15-L1204C24 will be waiting after 10 calls, because the aiobotocore by default provides only 10 sessions. https://github.com/aio-libs/aiobotocore/issues/651

=> That means that for large number of jobs (hundreds) a session waiting time longer than 15 minutes can cause the "The difference between the request time and the server's time is too large." error because the request timestamp differs by more than 15 minutes from server time.
Reproduction
I was not able to reproduce the issue by simulating the download process so I needed to pull actual file from s3.
The following code creates s3 bucket, uploads file and tries to copy it from s3 using dvc-data in 1000 threads.
If some of the 1000 threads do not finish in 15 minutes the request will probably fail. In our case it failed after 17 minutes.
# %%
import logging
from pathlib import Path
from s3fs import S3FileSystem
from tempfile import TemporaryDirectory
from dvc.fs import FileSystem
from dvc_objects.fs.generic import copy
from dvc_objects.fs.local import LocalFileSystem

import tqdm
from dvc.fs.callbacks import Callback

logging.basicConfig(level=logging.INFO)

s3_fs = S3FileSystem(endpoint_url="your-endpoint-url")
dvc_local_fs = LocalFileSystem()

bucket_name = "test-bucket"
no_requests = 1000 # 1000 pull requests in total
no_chars = 1_000_000_000 # 1.9 GB files
no_jobs = 1000 # 1000 async jobs scheduled to reach the 15 minutes diff limit

# %%
if s3_fs.exists(bucket_name):
    logging.info(f"Deleting {bucket_name}")
    s3_fs.rm(bucket_name, recursive=True)

logging.info("Creating bucket")
s3_fs.mkdir(bucket_name)

with TemporaryDirectory() as dir:
    file = Path(dir, "test-file")
    file.write_text(" ".join(["a"] * no_chars))
    with Callback.as_tqdm_callback(
        unit="file",
        desc="Put",
    ) as cb:
        s3_fs.put(dir, bucket_name, recursive=True, callback=cb)
    logging.info(f"File uploaded to {bucket_name}")

# %%
with TemporaryDirectory(dir=".") as dir:
    logging.info("Loading files from s3")
    dvc_s3_fs = FileSystem(s3_fs)
    bucket_dir = s3_fs.ls(bucket_name)[0]
    file = f"{bucket_dir}/test-file"
    src_files = [file] * no_requests
    dst_files = [str(Path(dir, str(idx))) for idx in range(no_requests)]
    with Callback.as_tqdm_callback(unit="file", desc="pull", size=len(dst_files)) as cb:
        copy(
            dvc_s3_fs,
            src_files,
            dvc_local_fs,
            dst_files,
            callback=cb,
            batch_size=no_jobs,
        )

# %%

DVC doctor
╰─❯ dvc doctor
DVC version: 2.55.0
-------------------
Platform: Python 3.8.10 on Linux-5.15.0-78-generic-x86_64-with-glibc2.17
Subprojects:
        dvc_data = 0.47.5
        dvc_objects = 0.25.0
        dvc_render = 0.3.1
        dvc_task = 0.3.0
        scmrepo = 1.3.1
Supports:
        http (aiohttp = 3.8.1, aiohttp-retry = 2.8.3),
        https (aiohttp = 3.8.1, aiohttp-retry = 2.8.3),
        s3 (s3fs = 2023.9.2, boto3 = 1.28.17)
Cache types: <https://error.dvc.org/no-dvc-cache>
Caches: local
Remotes: https
Workspace directory: xfs on /dev/mapper/data-srv
Repo: dvc, git
Repo.site_cache_dir: /var/tmp/dvc/repo/77821165453cef8903abded466242330

Excellent research @petrchmelar !
Can you try it with the most recent DVC version (it seems the whole stack of libraries is quite outdated).
I don't see an option from the DVC side to alter the max_pool_connections. Only the options from this config are taken into account, but that doesn't affect the number of actual connections made to S3. We should probably give a way to pass additional config options (e.g. max_pool_connections). I don't see immediately a way to specify it via AWS config file or AWS env variables.
It even a bit more complicated considered that probably a single file could be downloaded using multiple requests concurrently. So, the total number of connections needed can quite large in general.
I would not though do any custom logic to try to predict the needed value. Probably just us being able to pass the max_pool_connections down should be enough.
@pmrowla if you have time by chance, since you touched this recently, does my logic sound reasonable to you? :)

Exposing max_pool_connections should be fine here, but I'm not sure this is still an issue given that there's been a ton of significant changes between dvc 2.55 and the current release


Service Down

Describe the issue
The service appears to be down.  When you select add to your tenant the page doesn't load properly. https://lookbook.microsoft.com/tenant/home/provision?packageId=3df8bd55-b872-4c9d-88e3-6b2f05344239&returnUrl=https%3A%2F%2Flookbook.microsoft.com%2Fdetails%2F3df8bd55-b872-4c9d-88e3-6b2f05344239
Expected behavior
The pages should load properly and allow you to authenticate to your tenant.
Screenshots

Details (please complete the following information):

Device: MS Surface Laptop 4 w/ Windows 11
OS: Windows 11
Browser: Edge Chromium

Additional context
Attempting to provision learning pathways to a dev tenant.  I tested a couple other templates and they all seem to have a similar behavior. I am guessing a service needs to be restarted.

Does anyone know when the SharePoint Lookbook will be back online, as it only states Jan 2022.

Any updates?  This is impacting our migration as we use these templates.

Do we know when the Lookbook service will be back online?

Any updates on the given issue

Looking for an update as well.  Tried the manual provisioning and it came back with errors too.

Any update?

Still no update?

Any update? We are planning to initiate the SharePoint Online deployment in the company but this is holding us back.

Someone who knows how, can you leave some step by step instructions on how to manually provision the templates please

Hi,
The Look Book service is back to work: https://lookbook.microsoft.com/


Add missing subscription so restart server logic works again

Well spotted ! I had wondered why restarting the server wasn't working reliably. How did you figure out this missing subscription?

Just from the exception that complained about a duplicate registration for a particular name :)


Where are the module credits shown?

I'm looking around for quiet a while now but I cant find where the $module_credits are used. Can you please clarify? 😁

Hmm I think I am blind :(

Is this a new custom module or an existing one? Do you have $vb_support set to on in your PHP class?

(module credits are only shown for modules that have full support for the Visual Builder)

It's a new custom module and it's using
public $vb_support = 'on'; 	protected $module_credits = array( 		'module_uri' => 'https://divi-sensei.com/plugin', 		'author'     => 'Divi Sensei', 		'author_uri' => 'https://divi-sensei.com', 	);

Looks like you found a bug. I'll make sure we get it fixed in the next update.

Hello, Module credit bug fixed but now showing only in child item not on all modules.


Modify behaviour of valueAdjust

Currently, valueAdjust is a noop if an asset class is not present. valueAdjust (+1) GYLovelace mempty should be mempty or valueFromList [(GYLovelace, 1)]?

Good catch. It should be the latter I think

Hey @TotallyNotChase, this issue was reported to us by a dev from MLabs, I just echoed it back here. Seeing the behaviour of underlying adjust function in Data.Map.Strict (which is too a noop if key is not present), I am inclined to think that perhaps we should leave it as it is and rather add some other utility to achieve similar purpose. I added valueAlter in this, would love to hear your thoughts on it.

Also, I am not sure if we should try maintaining the invariant of not allowing zero values in GYValue but it's worth noting that from Conway era onwards, zero values are not allowed at ledger level.

value = coin / [coin, multiasset<positive_coin>]

Here positive_coin ensures that value must be positive. Similarly, for mint, we have:

mint = multiasset<nonZeroInt64>

So values should not be zero.

Also, I am not sure if we should try maintaining the invariant of not allowing zero values in GYValue but it's worth noting that from Conway era onwards, zero values are not allowed at ledger level.

value = coin / [coin, multiasset<positive_coin>]

Here positive_coin ensures that value must be positive. Similarly, for mint, we have:

mint = multiasset<nonZeroInt64>

So values should not be zero.

This sort of thing should really be handled in the section where app code is converted to ledger types. In fact, the ledger itself should be able to remove or add zeroes as necessary.
Absolutely insane that that is not the case in cardano-ledger

Absolutely insane that that is not the case in cardano-ledger

I should have also noted that cardano-ledger codebase actually does that. So even if we allow zero values, they are ultimately filtered for by cardano-ledger.

wrt. zero ADA entries it's fine to do whatever ledger expects, the problem is when converting GYValue to plutus-ledger-api Value. e.g. V1 and V2 TxInfo still has zero ADA entry in mint field, suppose you're convertingGYValue to Value and putting that in some datum, later validator checks if mint value equals that value. And sure, maybe validators should do smart value comparision but they don't, execution units are too limited and everybody is doing EqualsData instead, so these zero ADA entry matters.
Maybe even to the point where we'd need to have valueToPlutusWithZeroADA and valueToPlutusWithoutZeroADA and current one deprecated as it can lead to bugs
(this issue comes from my thread on slack)

Thanks for elaborating @t4ccer! Yes, I'm fine with your proposed change. Would you like to create a PR for it? Else we can handle it.

Alternatively, valueToPlutus could additional accept PlutusVersion.


component props definition doesn't work with inheritance/mixin

If I wanna leverage inheritance or even better mixins for DRY code for props definition it doesn't work. Skate consumes only the last origin which defined props.
I assume this is because skate API defines props via static, which couldn't be inherited because just instance/prototype members can be, but maybe we can support this within skate. That would be really neat also for Typescript typechecking
This works

via inheritance

class Colors extends Component {
   static get props(){
      return {
        color: prop.string()
      }
   }
}

class Button extends Colors {
    renderCallback({color}){
       return <button style={{color}}>Hello</button>
    }
}

via mixin

function Colors( Base ) {
   return class extends Base {
     static get props(){
        return {
          color: prop.string()
        }
     }
  }
}

class Button extends Colors(Component) {
    renderCallback({color}){
       return <button style={{color}}>Hello</button>
    }
}

This doesn't

via inheritance

class Colors extends Component {
   static get props(){
      return {
        color: prop.string()
      }
   }
}

// Button will have only `disabled` property defined
class Button extends Colors {
    static get props(){
      return {
         disabled: prop.boolean()
      }
    }
    renderCallback({color}){
       return <button style={{color}}>Hello</button>
    }
}

via mixin

function Colors( Base ) {
   return class extends Base {
     static get props(){
        return {
          color: prop.string()
        }
     }
  }
}

// Button will have only `disabled` property defined
class Button extends Colors(Component) {
    static get props(){
      return {
         disabled: prop.boolean()
      }
    }
    renderCallback({color}){
       return <button style={{color}}>Hello</button>
    }
}

The correct way would be to do something like:
class Colors extends Component {
   static get props () {
      return {
        color: prop.string()
      }
   }
}

class Button extends Colors {
    static get props () {
      return {...super.props, ...{
         disabled: prop.boolean()
      }}
    }
    renderCallback ({color}) {
       return <button style={{color}}>Hello</button>
    }
}

whoa, works! http://codepen.io/Hotell/pen/EZRRGO?editors=1010
but it feels really odd to use super within static method. I didn't even know that it's possible :D
Anyway, could we provide some better mechanism to skate internals ?

ok nevermind is in the spec https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/static thx for pointing me to right direction. I'll submit docs update with this recipe.
Cheers!

Awesome, thank you!


fix: updated logger casing env vars in samples

Issue number:
Summary
Pascal casing used by default in example projects
Changes

Please provide a summary of what's being changed
Changed POWERTOOLS_LOGGER_CASE environment variable from SnakeCase to PascalCase in sample projects.

User experience

Please share what the user experience looks like before and after this change
Casing will be Pascal case by default for log entries.

Checklist
Please leave checklist items unchecked if they do not apply to your change.

[x] Meets tenets criteria
[x] I have performed a self-review of this change
[x] Changes have been tested
[x] Changes are documented
[x] PR title follows conventional commit semantics

Is this a breaking change?
RFC issue number:
Checklist:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

Codecov Report
Base: 56.35% // Head: 56.29% // Decreases project coverage by -0.05% :warning:

Coverage data is based on head (e9d0a6e) compared to base (810dd7f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #173      +/-   ##
===========================================
- Coverage    56.35%   56.29%   -0.06%
===========================================
  Files           41       41
  Lines         1778     1778
===========================================
- Hits          1002     1001       -1
- Misses         776      777       +1

Flag
Coverage Δ

unittests
56.29% <ø> (-0.06%)
:arrow_down:

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

Impacted Files
Coverage Δ

...da.Powertools.Logging/Internal/PowertoolsLogger.cs
90.36% <0.00%> (-0.61%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Update mser.cpp.  Variable initialization required.

Need to initialize boolean variable pass2Only, otherwise the result is not predictable

:+1:


Consume remote_write connection through a BOSH link

Add a BOSH link support for remote_write configuration.
Allow to consume CA cert for remote_write, useful when remote_write storage configured with HTTPS.

Thanks @Infra-Red


feat: send user-agent header with auth token requests

This commit updates our various request-based authenticators so that the User-Agent header is included with each outbound token request. The value of the User-Agent header will be of the form "ibm-java-sdk-core/- ".

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Looks good! I noticed the copyright string was updated in some files but not others - I left a comment on each so you don't have to re-track them down 🙂

@pyrooka You are slipping, my friend.  I would have expected this to not make it through the Norbert pre-processor :joy:

:tada: This PR is included in version 9.21.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


NAF input format

So I'm using a model I trained myself.
The NAF input format for a trained classifier is a bit of an issue.
It turns out that '&' breaks the .xml format, obviously. The issue here is that & is quite common in text, and especially common in named entities in the language I'm working with. The approach I've found is just replacing & with & for NAF. But if that hasn't been done for the original text in training, the classifier probably won't work as well?
Or is there another way to handle the & character in text?

Hello,
kaflib (NAF library) automatically escapes the & characters. There should
not be any problem. Can you please send me a sample document and which
version of ixa-pipe-nerc are you using in order to reproduce the problem?
Cheers,
Rodrigo
On Tue, 29 Oct 2019 at 19:16, Asmundur Gudjonsson<EMAIL_ADDRESS>wrote:

So I'm using a model I trained myself.
The NAF input format for a trained classifier is a bit of an issue.
It turns out that '&' breaks the .xml format, obviously. The issue here is
that & is quite common in text, and especially common in named entities in
the language I'm working with. The approach I've found is just replacing &
with & for NAF. But if that hasn't been done for the original text in
training, the classifier probably won't work as well?
Or is there another way to handle the & character in text?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ixa-ehu/ixa-pipe-nerc/issues/18?email_source=notifications&email_token=AADGL74ZMMJDQP6AARRHG73QRB4WRA5CNFSM4JGNKOJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HVE5MRQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADGL7ZAUBVPFS7BZVDLOZ3QRB4WRANCNFSM4JGNKOJQ
.

also kaflib doesn't seem to work for me, there is also no usage documentation. when I try running it, I get:
no main manifest attribute, in target/kaflib-naf-1.1.19.jar

Sample as in a document that gives you error when you try to annotate it
using IXA pipes.
Thanks,
R
On Wed, 30 Oct 2019 at 15:13, Asmundur Gudjonsson<EMAIL_ADDRESS>wrote:

I'm using the newest version in this repository. What sample document do
you mean?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ixa-ehu/ixa-pipe-nerc/issues/18?email_source=notifications&email_token=AADGL73NDEUCF5NR5VGMUT3QRGJBZA5CNFSM4JGNKOJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECUKVRA#issuecomment-547924676,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADGL774NC74H3OKJLF5Z3LQRGJBZANCNFSM4JGNKOJQ
.


change to node20 for all actions

Merge / deployment checklist

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

Right...it was this PR that added the v2->v1->main release steps https://github.com/github/codeql-action/pull/995. It was merged before the node version changes were merged in #1000.

This PR https://github.com/github/codeql-action/pull/1482 is the revert PR that removed the v1 release process.

NB – The introduction of a matrix for the Check JS job means that Check JS has been replaced by Check JS (16.11) and Check JS (current).
Once this PR is approved and ready to merge I will remove Check JS as a required check, and once merged I will run the update-required-checks.sh script in order to make the new checks required.


Bug loading sentence-transformers/parallel-sentences

Steps to reproduce the bug
from datasets import load_dataset
dataset = load_dataset("sentence-transformers/parallel-sentences")

raises this:
/home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the 'mangle_dupe_cols' keyword is deprecated and will be removed in a future version. Please take steps to stop the use of 'mangle_dupe_cols'
  return pd.read_csv(xopen(filepath_or_buffer, "rb", use_auth_token=use_auth_token), **kwargs)
/home/phmay/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py:697: FutureWarning: the 'mangle_dupe_cols' keyword is deprecated and will be removed in a future version. Please take steps to stop the use of 'mangle_dupe_cols'
  return pd.read_csv(xopen(filepath_or_buffer, "rb", use_auth_token=use_auth_token), **kwargs)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In [4], line 1
----> 1 dataset = load_dataset("sentence-transformers/parallel-sentences", split="train")

File ~/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/load.py:1693, in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, **config_kwargs)
   1690 try_from_hf_gcs = path not in _PACKAGED_DATASETS_MODULES
   1692 # Download and prepare data
-> 1693 builder_instance.download_and_prepare(
   1694     download_config=download_config,
   1695     download_mode=download_mode,
   1696     ignore_verifications=ignore_verifications,
   1697     try_from_hf_gcs=try_from_hf_gcs,
   1698     use_auth_token=use_auth_token,
   1699 )
   1701 # Build dataset for splits
   1702 keep_in_memory = (
   1703     keep_in_memory if keep_in_memory is not None else is_small_dataset(builder_instance.info.dataset_size)
   1704 )

File ~/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/builder.py:807, in DatasetBuilder.download_and_prepare(self, output_dir, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, file_format, max_shard_size, storage_options, **download_and_prepare_kwargs)
    801 if not downloaded_from_gcs:
    802     prepare_split_kwargs = {
    803         "file_format": file_format,
    804         "max_shard_size": max_shard_size,
    805         **download_and_prepare_kwargs,
    806     }
--> 807     self._download_and_prepare(
    808         dl_manager=dl_manager,
    809         verify_infos=verify_infos,
    810         **prepare_split_kwargs,
    811         **download_and_prepare_kwargs,
    812     )
    813 # Sync info
    814 self.info.dataset_size = sum(split.num_bytes for split in self.info.splits.values())

File ~/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/builder.py:898, in DatasetBuilder._download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
    894 split_dict.add(split_generator.split_info)
    896 try:
    897     # Prepare split will record examples associated to the split
--> 898     self._prepare_split(split_generator, **prepare_split_kwargs)
    899 except OSError as e:
    900     raise OSError(
    901         "Cannot find data file. "
    902         + (self.manual_download_instructions or "")
    903         + "\nOriginal error:\n"
    904         + str(e)
    905     ) from None

File ~/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/builder.py:1513, in ArrowBasedBuilder._prepare_split(self, split_generator, file_format, max_shard_size)
   1506             shard_id += 1
   1507             writer = writer_class(
   1508                 features=writer._features,
   1509                 path=fpath.replace("SSSSS", f"{shard_id:05d}"),
   1510                 storage_options=self._fs.storage_options,
   1511                 embed_local_files=embed_local_files,
   1512             )
-> 1513         writer.write_table(table)
   1514 finally:
   1515     num_shards = shard_id + 1

File ~/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/arrow_writer.py:540, in ArrowWriter.write_table(self, pa_table, writer_batch_size)
    538 if self.pa_writer is None:
    539     self._build_writer(inferred_schema=pa_table.schema)
--> 540 pa_table = table_cast(pa_table, self._schema)
    541 if self.embed_local_files:
    542     pa_table = embed_table_storage(pa_table)

File ~/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/table.py:2044, in table_cast(table, schema)
   2032 """Improved version of pa.Table.cast.
   2033
   2034 It supports casting to feature types stored in the schema metadata.
   (...)
   2041     table (:obj:`pyarrow.Table`): the casted table
   2042 """
   2043 if table.schema != schema:
-> 2044     return cast_table_to_schema(table, schema)
   2045 elif table.schema.metadata != schema.metadata:
   2046     return table.replace_schema_metadata(schema.metadata)

File ~/miniconda3/envs/paraphrase-mining/lib/python3.9/site-packages/datasets/table.py:2005, in cast_table_to_schema(table, schema)
   2003 features = Features.from_arrow_schema(schema)
   2004 if sorted(table.column_names) != sorted(features):
-> 2005     raise ValueError(f"Couldn't cast\n{table.schema}\nto\n{features}\nbecause column names don't match")
   2006 arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
   2007 return pa.Table.from_arrays(arrays, schema=schema)

ValueError: Couldn't cast
Action taken on Parliament's resolutions: see Minutes: string
Následný postup na základě usnesení Parlamentu: viz zápis: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 742
to
{'Membership of Parliament: see Minutes': Value(dtype='string', id=None), 'Състав на Парламента: вж. протоколи': Value(dtype='string', id=None)}
because column names don't match

Expected results
no error
Actual results
error
Environment info

datasets version:
Platform: Linux
Python version: Python 3.9.13
PyArrow version: pyarrow               9.0.0
transformers          4.22.2
datasets              2.5.2

The dataset is sadly not really compatible to be loaded with load_dataset. So far it is better to git clone it and to use the files directly.
A data loading script would be needed to be added to this dataset. But this was too much overhead / not really intuitive how to create it.

Since the dataset is a bunch of TSVs we should not need a dataset script I think.
Bu default it tries to load all the TSVs at once, which fails here because they don't all have the same columns (pd.read_csv use the first line as header by default). To properly load any TSV file in this repo, one has to pass names=[...] for pd.read_csv to know which column names to use.
To fix this situation, we can either do

replace the TSVs by TSV with column names
OR specify the pd.read_csv kwargs as YAML in the dataset card - and datasets would use that by default

WDTY ?

There are more issues in the dataset.
To load OpenSubtitles I have to provide this (see skiprows):
df_os = pd.read_csv(
    "./parallel-sentences/OpenSubtitles/OpenSubtitles-en-de-train.tsv.gz",
    sep="\t",
    quoting=csv.QUOTE_NONE,
    header=None,
    names=["en", "de"],
    skiprows=[540344, 9151700, 10040173, 10040199, 11314673, 11338258, 11869223, 12159297, 12251078, 12303334],
)

What's wrong with those lines exactly ?
Maybe passing error_bad_lines=False (and maybe warn_bad_lines=True) can be helpful

What's wrong with those lines exactly ?
Stuff like this: ParserError: Error tokenizing data. C error: Expected 2 fields in line 540345, saw 3

Maybe passing error_bad_lines=False (and maybe warn_bad_lines=True) can be helpful

Yes. That would hide the issue but not solve it.

@nreimers WDYT about the two options mentioned above ?


Update step-05-replicate-database-another-location.md

The free starter plan has allowance for 500 databases now. The docs need to be updated to reflect that.

Hey @ra-jeev, the limit is correct: you have three locations you can use as placement groups, not 500 that is the limit of databases that can be in the groups. That said, we can try to improve the text if that is not obvious.

The improvement is here https://github.com/tursodatabase/turso-docs/pull/110

Thanks for the update @penberg. Now it is clear after the change.


AF-593+: Move dashbuilder to uberfire.

Related:
https://github.com/AppFormer/uberfire/pull/923
https://github.com/dashbuilder/dashbuilder/pull/413
https://github.com/kiegroup/droolsjbpm-build-bootstrap/pull/620
https://github.com/kiegroup/jbpm/pull/1080
https://github.com/kiegroup/droolsjbpm-integration/pull/1287
https://github.com/kiegroup/kie-wb-common/pull/1301
https://github.com/kiegroup/drools-wb/pull/715
https://github.com/kiegroup/jbpm-wb/pull/949
https://github.com/kiegroup/optaplanner-wb/pull/240
https://github.com/kiegroup/kie-wb-distributions/pull/655

Note: this Jenkins PR build will not go green because there is no-longer a maven project in this repo, and dashbuilder has been removed from a relevant configuration file in the corresponding droolsjbpm-build-bootstrap PR.

@dgutierr Not much here, but could you please review this? Note that the README indicates the future location (kiegroup/appformer) of uberfire and dashbuilder. I will be sending PRs for that as soon as this set is merged.


Use built-in OpenID Connect authentication

Hi there 👋
TL;DR; breakdown by commits

use OpenID Connect authentication
leverage MVC capabilities
fix the sample when not running in IIS Express

Longer version
1. Use OpenID Connect authentication
I noticed this sample implements an OpenID Connect flow manually.
While I appreciate this is a sample to show how to embed Power BI reports, I think rolling your own authentication is never a good idea, and I'm afraid people might use this implementation in their projects.
The main goal of this PR is to take advantage of the great authentication system in ASP.NET Core and leverage the OpenID Connect provider to delegate authentication to Azure AD.
There are small hacks — that I'll highlight as comments in this PR — because the redirect URL configured in the Azure AD application is set to the root of the application, http://localhost:21638. The recommendation is to use dedicated endpoints as redirect URLs because by default, the OIDC provider assumes all requests to the redirect URL will contain some sort of OpenID Connect message, which is not the case here as it also serves the page that embeds the Power BI report.
I'm not sure whether you have control over the app registration in Azure, but using something more common like http://localhost:21638/signin-oidc would greatly reduce the complexity of this sample; you can leave the existing redirect URL as-is to not break the experience for people who have already cloned or forked this repository.
2. Leverage MVC capabilities
Other small changes leverage the capabilities of ASP.NET Core MVC to redirect to a page or get the error message in the error page.
3. Fix the sample when not running in IIS Express
The launchsettings.json file describes which URLs are used when the project is run both in IIS Express and directly in the console through the Kestrel web server.
The application is hosted over a different port, 21639, when running in Kestrel, which means when Azure AD tried to redirect the user to http://localhost:21638, there's no application running on that port.

We are publishing new samples with most requests features and authentication/authorization flows. we are closing this PR.
Thank you.


Laravel route action autocompletion not working!

For example:
Route::post('sendOtp', 'App\Http\Controllers\Api\Auth\V1\AuthController@sendOtp');
not autocomplete the @sendOtp part!

This out of the scope of a package like ide-helper, it's simply technically not possible as the IDE would need real-time auto-complete information which can only be given by a plugin (I think https://plugins.jetbrains.com/plugin/7532-laravel does this).
If you want some auto-complete without a plugin, you could use single action controllers, if you route to App\Http\Controllers\Yolo::class then it's __invoke method gets called => but when using the ::class syntax you've auto-complete.
@barryvdh out-of-scope and workaround suggested, issue can be closed :}


Images garbage collection should be limited to the application's registry namespace

What type of PR is this?
type::bug
What this PR does / why we need it:
Limits images garbage collection to the application's registry namespace
Does this PR introduce a user-facing change?
Fixes an issue that causes images garbage collection in embedded clusters to remove images outside of the application's dedicated registry namespace.

Does this PR require documentation?
NONE

It is parsed on the next line
Sent via Superhuman iOS @.***>
On Fri, Apr 22 2022 at 11:34 AM, Salah Al Saleh @.***>
wrote:

@.**** commented on this pull request.
In pkg/registry/images.go
https://github.com/replicatedhq/kots/pull/2741#discussion_r856481221:

@@ -215,6 +215,17 @@ func deleteUnusedImages(ctx context.Context, registry types.RegistrySettings, us
digestsInRegistry := map[string]string{}
for _, r := range searchResult {
imageName := path.Join(registry.Hostname, r.Name)

parts := strings.Split(imageName, "/")

cuz it's not parsed as a reference yet at that point. i guess i could, but
we do use this pattern in our codebase
—
Reply to this email directly, view it on GitHub
https://github.com/replicatedhq/kots/pull/2741#discussion_r856481221,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC2U57V7DINPJK6Q5IYKHDVGLWLHANCNFSM5UDBSFBQ
.
You are receiving this because your review was requested.Message ID:
@.***>


remove Record from HeaderProps and CellProps

These definitions mask errors in the other definitions and there are better
ways of extending these.
See https://github.com/tannerlinsley/react-table/pull/1597 for an
example of an existing prototype that was missing but harder to find
because of these definitions.

Ping @tannerlinsley


What does folder/package means?

Hi,  trying to go through README but can't get over point 3
In Android Studio, Refactor->Rename the folder/package com.anysoftkeyboard.languagepack.languagepack in the project tree, replacing the last languagepack with the name of the language. This will automatically change it at a couple of other locations.

I'm in Android Studio 2.3.3

What is the problem or error when following the steps of point 3?

I don't know what folder/package mean. I don't see anything like that in project tree.

In Java, the package com.anysoftkeyboard.languagepack.languagepack has to be represented by the folder hierarchy com/anysoftkeyboard/languagepack/languagepack/ so renaming the folder via Android Studio's "Refactor" facility in the project tree to com/anysoftkeyboard/languagepack/YOURLANGUAGE/, (actually renaming only the last subfolder) will automatically also rename the Java package name (which is in the first line of every .java file)

Thanks!


Retry did not occurred

Hi I am using
google-cloud-secret-manager==2.1.0
and i got one of the below error
response = client.access_secret_version(request={"name": versionName})
  File "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/cloud/secretmanager_v1/services/secret_manager_service/client.py", line 1118, in access_secret_version
    response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
  File "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/gapic_v1/method.py", line 145, in __call__
    return wrapped_func(*args, **kwargs)
  File "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/retry.py", line 286, in retry_wrapped_func
    return retry_target(
  File "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/retry.py", line 189, in retry_target
    return target()
  File "/layers/google.python.pip/pip/lib/python3.9/site-packages/google/api_core/grpc_helpers.py", line 69, in error_remapped_callable
    six.raise_from(exceptions.from_grpc_error(exc), exc)
  File "<string>", line 3, in raise_from
google.api_core.exceptions.DeadlineExceeded: 504 Deadline expired before operation could complete.

Hi,
After looking at a few similar issues for other APIs it seems like that error should be fairly rare and indicates a temporary problem on the backend.
Are you consistently seeing this error?

Yes two times

Was that 2 out of 2 tries total, or 2 out of a larger number?

Just hour an ago i got this error again total of 3 times i have got this error till now

Hi @nitishxp — we weren't able to reproduce this error earlier, apologies, so I'm going to close out this particular issue since it's a little stale ... but if you are still seeing this can you please file a new issue with repro steps including the code you're using when you encounter the error? Thanks!


Generate and publish PyPI and Conda artefacts on CI

Description
Currently the release procedure involves manually running:

python setup.py sdist bdist_wheel and twine upload dist/stellargraph-<version>* to upload to PyPI
some commands to upload to conda

It would be nice to have a computer do this (e.g. for any merge to master or any build of a tag), to reduce the space for human error and the possibility for this step to be forgotten. This can be an optional step on buildkite.
Done Checklist

[ ] Produced code for required functionality
[ ] Tests written and coverage checked
[ ] Code review performed
[ ] Documentation on Google Docs  (if applicable)
[ ] Documentation in repo
[ ] Version number reflects new status
[ ] CHANGELOG.md updated
[ ] Team demo

An alternative for Conda would be https://conda-forge.org which can apparently automate the Conda process.

Discussion from Slack (lightly edited):

@huonw: I had a quick look at how one might distribute a Cython parts of a package. It seems like there’s no great ways, and all the documentation for it I can find is half written. E.g. https://packaging.python.org/guides/packaging-binary-extensions/#publishing-binary-extensions . Maybe https://scikit-build.readthedocs.io/en/latest/index.html would work, but again the docs are somewhat unclear to me.
(We’d definitely need to do https://github.com/stellargraph/stellargraph/issues/607 if we do this, because publishing it manually is likely to be too fiddly.)
All in all, I think this is far too fiddly to be worth it, in the near/medium future.

@timpitman: Agree it's probably too complicated to worry about for now, but python now supports platform-specific binary wheels (bdist_wheel) which can contain the cythonised native code, as well as possibilities to install a source package either unaccelerated, or which will compile on install via cython/gcc

@huonw: how we can automatically compile the appropriate wheels for all platforms, so that pip install stellargraph works smoothly on windows/mac/linux/…?

@timpitman: I don't know how it's done practically; would need a build system with additional mac and windows build agents I think. I don't know how they build them all, but eg: https://pypi.org/project/moderngl/#files .
...actually it's travis:  https://github.com/moderngl/moderngl/blob/master/.travis.yml [permalink: https://github.com/moderngl/moderngl/blob/854f1b25f4ee0838cef8670aff8197d8547e02be/.travis.yml]

This issue (#607) would block optimising our library using native code via Cython (or similar) this here so that it appears when if someone searches for terms like: C, C++, Fortran, Rust, Cython, native code, optimise, optimize, wheel.


Initial authorisation for Publish or Clone on Windows does not correctly authorise git-credential-manager

Issue Type: Bug
This error only occurs when a Windows computer has not been previously authorised on GitHub. This happened with Git for Windows version 2.32.1.windows.1 and 2.33.1.windows.1
Any attempt to Publish a new repo or Clone an existing repo would seemingly go through the normal authorisation process (ask to Allow authorisation with GitHub -> open a browser tab to enter credentials and an alert to allow VS Code to open the resulting link). A copy of the repo would be created (on GitHub for a Publish attempt or locally for the Clone attempt), but none of the files would be transfered and the process would hang.

One solution
The solution that we found was to run a git clone from the command line and authenticate via the Browser. Instead of the authorisation page that would appear from the VS Code interactions, the authorisation page was specifically for Git Credential Manager. Once that was authorised, the clone would complete successfully and there were no more issues with git actions (clone / publish / push / pull) in VS Code.
VS Code solution?
Is there a way to get the VS Code flows properly authorising Git Credential Manager?
 To better understand the way VS Code integrates into the git authentication pipeline, I would suggest that you read this comment - https://github.com/microsoft/vscode/issues/144420#issuecomment-1096643247. In case you are still able to reproduce this problem there are ways that we can collect additional information but based on your description it seems to me that for some reason GCM is not being invoked during the initial authorisation request, since the authorisation requests "reaches" VS Code.


Explain please

@baltaevamin commented 9 hours ago — with docs.microsoft.com
In the first example, at the beginning of the topic.
b = 6
a = 3
b% = a; // b is 6; in the example right?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1fb7e11f-cd0d-5e4d-fcf2-6b1060b7586c
Version Independent ID: 90046753-8233-1a30-09d8-126f8350b3fc
Content: Assignment Operators
Content Source: docs/cpp/assignment-operators.md
Product: visual-cpp
Technology: cpp-language
GitHub Login: @corob-msft
Microsoft Alias: corob

@baltaevamin
Yes, b == 6 after these operations:
    int a = 3, b = 6;
    a += b;      // a = a + b ⇒ a = 3 + 6 ⇒ a == 9
    b %= a;      // b = b % a ⇒ b = 6 % 9 ⇒ b == 6


Allow to encode custom scalar types as null and use it for file uploads

fixes #2409

Ping @meiblorn. Sorry for the delay getting this in, let me know if this looks good for you.

@martinbonnin, thanks a lot. I haven't tested it yet, but overall it looks good.


(Presets) Presets lead to fullProfile.Items is not iterable on Server.exe

General information
Project issue is for:
[2024-03-10T11:22:21.133Z] info: 	Commit hash: 1326ee962646512f904f739a626ebe275c4b425f
[2024-03-10T11:22:21.133Z] info: 	Build date:<PHONE_NUMBER>471
[2024-03-10T11:22:21.265Z] info: 	Server: Startprozesse werden ausgeführt...
[2024-03-10T11:22:21.266Z] debug: 	OS: x64 | Windows 11 Home | win32
[2024-03-10T11:22:21.267Z] debug: 	CPU: AMD Ryzen 7 5800X 8-Core Processor              cores: 16
[2024-03-10T11:22:21.267Z] debug: 	RAM: 63.92GB
[2024-03-10T11:22:21.267Z] debug: 	PATH: RTpcU1BUIEFLSSAzODBcQWtpLlNlcnZlci5leGU=
[2024-03-10T11:22:21.267Z] debug: 	PATH: RTpcU1BUIEFLSSAzODBcQWtpLlNlcnZlci5leGU=
[2024-03-10T11:22:21.267Z] debug: 	Server: 3.8.0
[2024-03-10T11:22:21.267Z] debug: 	Date:<PHONE_NUMBER>471
[2024-03-10T11:22:21.268Z] debug: 	Commit: 1326ee962646512f904f739a626ebe275c4b425f

Expected result:
Game to start
Actual result:
Game doesn't start, but hangs on a screen before loading and showing error message.
In the server the following message appears:
[2024-03-10T11:41:20.186Z] error: 	TypeError: fullProfile.userbuilds.weaponBuilds[buildId].Items is not iterable
[2024-03-10T11:41:20.185Z] debug: 	Started game with sessionId: 65bfbc370004e2f7515b406b ObiOne
[2024-03-10T11:41:20.186Z] error: 	TypeError: fullProfile.userbuilds.weaponBuilds[buildId].Items is not iterable
[2024-03-10T11:41:20.186Z] error: 	TypeError: fullProfile.userbuilds.weaponBuilds[buildId].Items is not iterable
    at ProfileFixerService.checkForOrphanedModdedItems (C:\snapshot\project\src\services\ProfileFixerService.ts:898:77)
    at GameController.gameStart (C:\snapshot\project\src\controllers\GameController.ts:189:42)
    at GameCallbacks.gameStart (C:\snapshot\project\src\callbacks\GameCallbacks.ts:62:29)
    at RouteAction.action (C:\snapshot\project\src\routers\static\GameStaticRouter.ts:36:43)
    at GameStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:47:63)
    at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:79:62)
    at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
    at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:150:38)
    at IncomingMessage.<anonymous> (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:75:43)
    at IncomingMessage.emit (node:events:514:28)
[2024-03-10T11:41:20.186Z] error: 	TypeError: fullProfile.userbuilds.weaponBuilds[buildId].Items is not iterable
    at ProfileFixerService.checkForOrphanedModdedItems (C:\snapshot\project\src\services\ProfileFixerService.ts:898:77)
    at GameController.gameStart (C:\snapshot\project\src\controllers\GameController.ts:189:42)
    at GameCallbacks.gameStart (C:\snapshot\project\src\callbacks\GameCallbacks.ts:62:29)
    at RouteAction.action (C:\snapshot\project\src\routers\static\GameStaticRouter.ts:36:43)
    at GameStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:47:63)
    at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:79:62)
    at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30)
    at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:150:38)
    at IncomingMessage.<anonymous> (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:75:43)
    at IncomingMessage.emit (node:events:514:28)

(Add a description of the issue here)
How to reproduce

Start Game
Create a preset
Logout
Log back in
Game shows mouse pointer on start screen / Server shows errors.

Log files
Server: attached
BepinEx: attached
Client: attached
Profile
profile is added
Screenshots
no screenshots of value!

Attachments

server-2024-03-10.log (74 KiB)
LogOutput.log (9 KiB)
2024.03.10_11-35-22_<IP_ADDRESS>.28965 traces.log (29 KiB)
65bfbc370004e2f7515b406b.zip (108 KiB)

Originally written by ObiOne

Attached Profile

Originally written by ObiOne

You need to zip the profile to attach it

Originally written by chomp

Further investigation showed, it is a buggy preset from a GunSmith task. Unfortunately I overwrote the one, while investigating. :-(
For next time I know to zip the profile. Sorry....

Originally written by ObiOne

Alright, I created a new preset, logged out, when I tried to log back in (Restart the server) the Game does not start and shows above error message again. So its 100% reproducable for me at the moment. I attached the new profile as zip! (y)

Originally written by ObiOne

Seems like a profile editing issue. 3.8 has all of the captials at the start of the word and with editor it turns it back to lowercase.
His			"id": "65eda6eb0100163fbf6b37ea",
			"name": "GunSmith6",
			"root": "20e14331ff85a77f46015221",
			"items": [

Mine        "Id": "65ee192301001dfbecaf58a3",
			"Name": "ADAR",
			"Root": "5b1ea854c5df0ed6ca09a6f9",
			"Items": [

Originally written by Kaeno

@ObiOne Did you use Profile Editor to create this preset? I don't see any calls in your server log to the route the client would call for creating a preset

No the preset was only created ingame. The presets before were deleted using sublime editor. But no preset was created out of the game.
The profile is 100% created in SPT 3.8.0 and was not altered by me (except for deleting the presets, to do some bug-tracing).

Originally written by ObiOne

Attached a screenshot of the version

Attachments

Screenshot 2024-03-10 215741.png (1310 KiB)

Originally written by ObiOne

Nobody has been able to reproduce this, closing

Originally written by DrakiaXYZ


Roll Flutter Engine from 5080fd6df1df to 47861b1dea78 (2 revisions)

https://github.com/flutter/engine/compare/5080fd6df1df...47861b1dea78
2022-07-29<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from iK5Vt2rn1... to 1HMCKyjKD... (flutter/engine#34992)
2022-07-29<EMAIL_ADDRESS>Enable analysis for  all of dart:ui (flutter/engine#34988)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from iK5Vt2rn1yhQ to 1HMCKyjKDtA5
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.