Cannot widen type in generics while retaining knowledge of assignability

Search Terms:
generics widen type
Code
type Widen<T extends number | string> = T extends number
    ? number
    : T extends string
    ? string
    : T;

class Foo<T extends number | string> {
  public constructor(private readonly validValues: readonly T[]) { }

  // UNEXPECTED ERROR: T is not assignable to Widen<T>
  public isValidValue(value: Widen<T>): value is T {
    return this.validValues.indexOf(value as any) !== -1;
  }
}

Expected behavior:
The Widen type in my example widens number and string types. For any type T, T is assignable to Widen<T>. I expect to be able to rely on this fact in generics.
Actual behavior:
The assignability relationship of T and Widen<T> is lost when T is a generic type rather than a concrete type (see // UNEXPECTED ERROR comment in example).
Playground Link:
http://www.typescriptlang.org/play/?ssl=5&ssc=7&pln=5&pc=12#code/C4TwDgpgBA6glgEwgOwDwBUoQB7BQgZymQFcBbAIwgCcoAfKA4auZAcwD4oBeKTHPMkLFyVagCgoUqAH4RlGpOkAuPllz4iTFuyVS521mz1RV6ANzjxAYwA2AQwJEAYgHtXGdYOGkFtBobsXADeSmAkFLZw1lDWrsjaJNbArtQAFGAsAG72eFDUEPYI8bYgUDlRCABq9rYkEASqBUUlZegA2gC6AJRQwVAAvlZSAPQjUACqAHIAogAaAAozAMLoMwAiUDMAStsA8ttmUHBEyK7AUI4EcGzI9pHQKbCIKBgcYRFRMSc1lb-1aQq9VU8CQaHQHG6qiB0BOalC0nyEGAJGoyCgwAAFicAHQVRD-Bo41hIbB7ABmgNq9UuRHsyBAvQAhNxeABaACMlikQwGQA

If this is "working as intended" or my expectations are otherwise infeasible, is there any other valid way to achieve what I am attempting?
For example, I want Foo<"A" | "B">.isValidValue() to accept string, but not number,  I want  Foo<1 | 2>.isValidValue() to accept number, but not string, and I want  Foo<"A" | 2>.isValidValue() to accept number | string.

Assignability for unresolved generic conditional types is an existing sore point.  (Does anyone know if there is a canonical issue for this?  This has to be a duplicate or related to something, but I'm not sure.  It's not exactly #26933)  In cases like this I usually hit the compiler over the head with assignability using an intersection:
  public isValidValue(value: Widen<T>): value is Widen<T> & T {
    return this.validValues.indexOf(value as any) !== -1;
  }

@jcalz Thanks for the intersection trick! Seems to be working well for me as a work-around (all my dtslint tests passed).
#26933 Looks very related to me.

For any type T, T is assignable to Widen<T>.

This is really only possible to know through second-order reasoning about all possible T and isn't something TS is capable of constructing proofs for. In fact, it's only really even true because string & number is not inhabitable; the same definition of Widen for two non-disjoint types does not have the same assignability guarantee.

@RyanCavanaugh Thanks for the explanation. I see how that would be quite complex. Do you have any ideas for:

How I could most properly achieve what I am attempting ("widen" a generic type in a way that the compiler understands) with current TS capabilities? Is the intersection workaround suggested by jcalz my best option?
If there's no proper way to do this, is there any reasonable way to enhance TS with the capability to "widen" a generic type in a way that it understands?


Add pint arrays support

This commit fixes the following issue of the wrong behavior of is_cupy property with pint xarrays:
import xarray as xr
import cupy as cp
import pint_xarray
import cupy_xarray
from pint_xarray import unit_registry as ureg

cp_da = xr.DataArray(
    cp.linspace(0, 1, 11),
    coords=dict(
        x=np.linspace(0, 10, 11),
    ),
)

pint_da = cp_da.pint.quantify("meter")

print(f"is_cupy response: {pint_da.cupy.is_cupy}")
print(f"pint_da type {type(pint_da.pint.magnitude)}")

Currently, the output is:
is_cupy response: False
pint_da type <class 'cupy.ndarray'>

Thanks!
Can you add a test please? You'll need to have pint as an optional dependency. SO we'll need to copy some of this code from Xarray: https://github.com/pydata/xarray/blob/6c5840e1198707cdcf7dc459f27ea9510eb76388/xarray/tests/init.py#L83
The test should look like:
@requires_pint
def test_is_cupy_pint():
	pass

Thank you for your comments and for the good review of the changes.
I re-implemented the tests with the clearer naming and wider coverage of input data.

Also closes this issue #31

Hey @dcherian , Do you have any additional comments for this PR? I think we can merge this PR.

Sorry for the massive delay here. @kadykov
I cleaned up the combinatorial  explosion of variables ;) but I don't have a machine to actually run the tests on. Can either you or @negin513 confirm that the tests  work please?

Actually I have access now. fixing things...


After enabling Fabric, the animation becomes very stuttery.

Description
Hello, our application has many scenarios using react-native, with over 10 million daily active users. We are currently using react-native version 0.70.6 in production, and everything is working fine except for not having enabled Fabric. In fact, to use Fabric, we have already solved many problems. However, there is one animation issue that has been holding us back. We have a scenario that may have hundreds of labels, and when using Fabric, the animation becomes choppy when switching tabs, but it is very smooth when using RCTRootView.
We also tried to explore the differences between the two and found that it may be under the Fabric architecture, a large number of component re-layouts are triggered, which takes a lot of time and causes frame drops, while RCTRootView does not.
We also tried using the current version (0.73.0-rc.3) and found that the problem still exists.
We provided two animated gifs, the first one is using Fabric, and the second one is using Legacy.

React Native Version
0.73.0-rc.3
Output of npx react-native info
System:
OS: macOS 12.6
CPU: (10) arm64 Apple M1 Max
Memory: 473.53 MB / 64.00 GB
Shell:
version: 5.8.1
path: /bin/zsh
Binaries:
Node:
version: 18.18.2
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 9.8.1
path: /opt/homebrew/bin/npm
Watchman:
version: 2<IP_ADDRESS>
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.14.1
path: /Users/xzh/.rvm/gems/ruby-2.7.5/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.1
- iOS 16.1
- macOS 13.0
- tvOS 16.1
- watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 14.1/14B47b
path: /usr/bin/xcodebuild
Languages:
Java: Not Found
Ruby:
version: 2.7.5
path: /Users/xzh/.rvm/rubies/ruby-2.7.5/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.0-rc.3
wanted: 0.73.0-rc.3
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: true
Steps to reproduce
I provided a reproducible demo:https://github.com/GeniusBrother/RN730-demo
1.Execute 'npm install' in the project's root directory
2.Execute 'npm start' in the project's root directory
3.Execute 'USE_FABRIC=1 RCT_NEW_ARCH_ENABLED=1 PRODUCTION=1 pod update' in the ios directory
4.Open the 'RN730.xcworkspace' file in the ios directory and run the iOS project.
Snack, code example, screenshot, or link to a repository
https://github.com/GeniusBrother/RN730-demo

Hello @GeniusBrother,
thank you for preparing repro.
From the gif, I have a hard time understanding which animations is slow.
There are two animations happening:

Animating a full screen of text horizontally.
Animating the tab highlighter (narrow view that highlights which tab is selected.

Which one of these is dropping frames?
I tried your repro app, but I don't see difference between Fabric and legacy.
Few things:

I noticed the animations are not using useNativeDriver. For better performance, I would recommend using it.
Try setting this flag to true, does it improve things? if yes, this is something we are aware of and have a fix that is being rolled out.

Thank you for taking the time to help me solve the problem. @sammy-SC
The main issue is that the tab animation is dropping frames and jumping back and forth when switching tabs.I have provided a new video to demonstrate the issue of dropped frames in the animation.
About you two solutions:
1.We have also considered using 'useNativeDriver' to solve the animation frame dropping issue, but we have many animations implemented with JavaScript, and changing them would require a lot of work. Even some third-party libraries such as react-native-navigation experience frame dropping during transitions.
2.I tried setting the configuration option to true, but nothing changed.
https://github.com/facebook/react-native/assets/13958352/756767bd-a385-4a01-aad3-e768c5ee60cc

Hello, any progress on this issue? @sammy-SC

Hey @GeniusBrother,
I think I found it. Compile the app with optimisations or comment out this line of code. Let me know if this fixes the frame rate.
If it fixes the problem, you will not have the FPS drop in optimised build.
The problem is that in React Native, Fabric does some checks to make sure in memory representation of the UI is consistent. These checks are expensive and grow with the size of UI. I will consider removing them in the future as probably they provide  limited value and the developer experience is not great.
Please re-open this issue if the problem still persists after commenting out #define RN_SHADOW_TREE_INTROSPECTION 1 or building optimised build.

Thanks again for taking the time to help me troubleshoot the issue! @sammy-SC
The method you provided is effective, and the animation has become much smoother! However, there is still a slight jitter. I have provided a video and you can focus on "第2tab" and "第3tab".
By the way, we are currently using version 0.70.6 in our production environment because we have hundreds of RN applications, so we cannot upgrade to the latest version in a short period of time. Could you tell me how to migrate these animation optimization to version 0.70.6, such as providing me with a link to the code merge?
https://github.com/facebook/react-native/assets/13958352/5ac0ca82-7298-4c7c-902e-9c4e9501fd7f

By the way. i cannot re-open my issues if a repo collaborator closed them @sammy-SC

@cortinico Can you help me remind @sammy-SC?

Hello, any progress on this issue? @sammy-SC

Hey @sammy-SC
I've implemented the solution you suggested, but my app is crashing.
I'm running React Native version 0.72.6 and recently enabled the new architecture.
Since enabling it, I've experienced significant lag on both Android and iOS when switching between tabs or navigating to different screens. The user experience is noticeably less smooth, especially on Android.
After applying your recommended fix, I tried to rebuild and run the app, but it now crashes on Android. Do you have any suggestions for resolving this issue?

@sammy-SC Thanks for your quick response. I appreciate it. The issue in my case was with Expo. I had been using Expo authentication in my app, which led me to use Expo's provided wrapper in my MainApplication.java. However, upon removing it and switching to the default one provided by React Native, the performance improved by 50% .Same goes for iOS.

Hey @sammy-SC
I found that there is currently no status update for this issue. Are there any plans to fix this animation problem?

Hey @sammy-SC I found that there is currently no status update for this issue. Are there any plans to fix this animation problem?

The latest update on this is that the fix https://github.com/facebook/react-native/commit/51fd4188005cc3318fecc85b8090453c480af6e8 is going to land in 0.74
You can try the latest RC which contains the fix

I am facing a crash in android "Unable to find JSIModule for class UIManager" after enabling Fabric. any solution?

Hey @sammy-SC I found that there is currently no status update for this issue. Are there any plans to fix this animation problem?

The latest update on this is that the fix 51fd418 is going to land in 0.74
You can try the latest RC which contains the fix

can anyone confirm it is working?

Hey @lichstam,
what do you mean by confirming if it is working?
0.74 contains this commit. When looking into this issue, we found that this dev only check was causing the stutter. https://github.com/facebook/react-native/commit/51fd4188005cc3318fecc85b8090453c480af6e8 disabled the expensive check even in DEV. Are you still experiencing the issue? Are you experiencing the issue in release mode as well?
If that's the case, we need to take another look.
Thank you

I am facing a crash in android "Unable to find JSIModule for class UIManager" after enabling Fabric. any solution? RN version : 0.71

this seems like a different issue. Do you mind creating a new issue with repro steps?
Thank you

Please reopen if the problem still persists even with https://github.com/facebook/react-native/commit/51fd4188005cc3318fecc85b8090453c480af6e8


卡在11%不动了

你好！
我做了call_mod
然后error_output给了下面这个：
split_holebatches process-19085 starts
extract_features process-19087 starts
[W::hts_idx_load3] The index file is older than the data file: /gpfs/data/pirontilab/Students/data/RobPacBio/121A/mapped.bam.bai
extract_features process-19095 starts
/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/torch/cuda/__init__.py:145: UserWarning:
NVIDIA A100 80GB PCIe with CUDA capability sm_80 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_61 sm_70 sm_75 compute_37.
If you want to use the NVIDIA A100 80GB PCIe GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

  warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name))
extract_features process-19110 starts
/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/torch/cuda/__init__.py:145: UserWarning:
NVIDIA A100 80GB PCIe with CUDA capability sm_80 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_61 sm_70 sm_75 compute_37.
If you want to use the NVIDIA A100 80GB PCIe GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

  warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name))
extract_features process-19144 starts
extract_features process-19152 starts
split_holebatches process-19085 generates 9340 hole/read batches(50)

batch_reader:   0%|          | 0/9340 [00:00<?, ?it/s][W::hts_idx_load3] The index file is older than the data file: /gpfs/data/pirontilab/Students/data/RobPacBio/121A/mapped.bam.bai
Process Process-8:
Process Process-5:

batch_reader:   0%|          | 10/9340 [00:00<11:41, 13.30it/s]Traceback (most recent call last):
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 531, in worker_extract_features_from_holebatches
    features_batch = _batch_feature_list2s(features_batch)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 480, in _batch_feature_list2s
    fipdms.append(np.array(kmer_ipdm, dtype=np.float))
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last):
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 531, in worker_extract_features_from_holebatches
    features_batch = _batch_feature_list2s(features_batch)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 480, in _batch_feature_list2s
    fipdms.append(np.array(kmer_ipdm, dtype=np.float))
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

batch_reader:   0%|          | 16/9340 [00:00<07:29, 20.76it/s]Process Process-3:
Process Process-9:
Process Process-7:
Traceback (most recent call last):
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 531, in worker_extract_features_from_holebatches
    features_batch = _batch_feature_list2s(features_batch)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 480, in _batch_feature_list2s
    fipdms.append(np.array(kmer_ipdm, dtype=np.float))
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

batch_reader:   0%|          | 21/9340 [00:01<11:19, 13.71it/s]Traceback (most recent call last):
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 531, in worker_extract_features_from_holebatches
    features_batch = _batch_feature_list2s(features_batch)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 480, in _batch_feature_list2s
    fipdms.append(np.array(kmer_ipdm, dtype=np.float))
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
Traceback (most recent call last):
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 531, in worker_extract_features_from_holebatches
    features_batch = _batch_feature_list2s(features_batch)
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/ccsmeth/extract_features.py", line 480, in _batch_feature_list2s
    fipdms.append(np.array(kmer_ipdm, dtype=np.float))
  File "/gpfs/data/pirontilab/Students/software/conda/envs/ccsmeth/lib/python3.10/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'float'.
`np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

batch_reader:   0%|          | 27/9340 [00:01<08:04, 19.20it/s]
batch_reader:   0%|          | 38/9340 [00:01<04:46, 32.51it/s]
batch_reader:   1%|          | 58/9340 [00:01<02:31, 61.11it/s]
batch_reader:   1%|          | 77/9340 [00:01<01:47, 86.55it/s]
batch_reader:   1%|          | 94/9340 [00:01<01:32, 100.23it/s]
batch_reader:   1%|          | 113/9340 [00:02<01:16, 120.08it/s]
batch_reader:   1%|▏         | 132/9340 [00:02<01:07, 136.62it/s]
batch_reader:   2%|▏         | 151/9340 [00:02<01:01, 149.84it/s]
batch_reader:   2%|▏         | 168/9340 [00:02<01:02, 146.20it/s]
batch_reader:   2%|▏         | 187/9340 [00:02<00:58, 157.36it/s]
batch_reader:   2%|▏         | 207/9340 [00:02<00:54, 167.52it/s]
batch_reader:   2%|▏         | 227/9340 [00:02<00:51, 175.88it/s]
batch_reader:   3%|▎         | 247/9340 [00:02<00:50, 180.27it/s]
batch_reader:   3%|▎         | 266/9340 [00:02<00:55, 162.07it/s]
batch_reader:   3%|▎         | 286/9340 [00:03<00:52, 171.92it/s]
batch_reader:   3%|▎         | 306/9340 [00:03<00:50, 177.51it/s]
batch_reader:   3%|▎         | 326/9340 [00:03<00:49, 182.13it/s]
batch_reader:   4%|▎         | 346/9340 [00:03<00:48, 184.52it/s]
batch_reader:   4%|▍         | 365/9340 [00:03<01:37, 91.77it/s]
batch_reader:   4%|▍         | 385/9340 [00:03<01:21, 109.33it/s]
batch_reader:   4%|▍         | 401/9340 [00:04<01:31, 97.67it/s]
batch_reader:   4%|▍         | 420/9340 [00:04<01:17, 114.61it/s]
batch_reader:   5%|▍         | 440/9340 [00:04<01:07, 132.07it/s]
batch_reader:   5%|▍         | 460/9340 [00:04<01:00, 146.57it/s]
batch_reader:   5%|▌         | 480/9340 [00:04<00:55, 158.23it/s]
batch_reader:   5%|▌         | 498/9340 [00:04<01:01, 142.78it/s]
batch_reader:   6%|▌         | 518/9340 [00:04<00:56, 154.90it/s]
batch_reader:   6%|▌         | 538/9340 [00:04<00:53, 165.79it/s]
batch_reader:   6%|▌         | 558/9340 [00:05<00:50, 173.70it/s]
batch_reader:   6%|▌         | 578/9340 [00:05<00:49, 178.79it/s]
batch_reader:   6%|▋         | 598/9340 [00:05<00:47, 183.99it/s]
batch_reader:   7%|▋         | 618/9340 [00:05<00:46, 186.13it/s]
batch_reader:   7%|▋         | 637/9340 [00:05<00:46, 185.62it/s]
batch_reader:   7%|▋         | 657/9340 [00:05<00:56, 154.24it/s]
batch_reader:   7%|▋         | 677/9340 [00:05<00:52, 163.98it/s]
batch_reader:   7%|▋         | 697/9340 [00:05<00:50, 171.88it/s]
batch_reader:   8%|▊         | 716/9340 [00:05<00:48, 176.33it/s]
batch_reader:   8%|▊         | 736/9340 [00:06<00:47, 181.41it/s]
batch_reader:   8%|▊         | 755/9340 [00:06<01:33, 91.70it/s]
batch_reader:   8%|▊         | 770/9340 [00:07<02:24, 59.27it/s]
batch_reader:   8%|▊         | 790/9340 [00:07<01:52, 76.27it/s]
batch_reader:   9%|▊         | 810/9340 [00:07<01:30, 94.23it/s]
batch_reader:   9%|▉         | 830/9340 [00:07<01:16, 111.97it/s]
batch_reader:   9%|▉         | 850/9340 [00:07<01:06, 128.62it/s]
batch_reader:   9%|▉         | 868/9340 [00:07<01:12, 117.57it/s]
batch_reader:  10%|▉         | 888/9340 [00:07<01:02, 134.27it/s]
batch_reader:  10%|▉         | 908/9340 [00:07<00:57, 147.78it/s]
batch_reader:  10%|▉         | 928/9340 [00:07<00:52, 159.26it/s]
batch_reader:  10%|█         | 948/9340 [00:08<00:49, 168.35it/s]
batch_reader:  10%|█         | 968/9340 [00:08<00:47, 174.51it/s]
batch_reader:  11%|█         | 988/9340 [00:08<00:46, 179.26it/s]
batch_reader:  11%|█         | 1006/9340 [00:19<00:46, 179.26it/s]

然后就一直在这里卡着，不知道咋办
感谢你

你环境里的numpy版本是什么？可否换成1.22.4再试一下：
pip uninstall numpy
pip install numpy==1.22.4

哎woc，有道理，我试试，好像numpy报错了，感恩！


Objective functions analyse

There are :
option for retur

ns_objective
class analyse to print stats
example "how to use" in pendulum
two tests with static_arm(3 fcts) and multiphase_align_markers (3 phases)

Before you accept PR, you should black your code  ;)


Load env variables from .env files for non-conda

For #5061

Codecov Report

Merging #9018 (eb7bb5d) into main (19b625d) will decrease coverage by 0%.
The diff coverage is 33%.

@@          Coverage Diff           @@
##            main   #9018    +/-   ##
======================================
- Coverage     70%     70%    -1%
======================================
  Files        382     382
  Lines      24660   24658     -2
  Branches    3997    3996     -1
======================================
- Hits       17412   17405     -7
+ Misses      5857    5652   -205
- Partials    1391    1601   +210

Impacted Files
Coverage Δ

...atascience/kernel-launcher/kernelEnvVarsService.ts
70% <33%> (+5%)
:arrow_up:

...lient/datascience/variablesView/notebookWatcher.ts
90% <0%> (-3%)
:arrow_down:

...ience/kernel-launcher/localKernelSpecFinderBase.ts
76% <0%> (-2%)
:arrow_down:

src/client/datascience/jupyter/kernels/helpers.ts
50% <0%> (-1%)
:arrow_down:

...atascience/interactive-window/interactiveWindow.ts
66% <0%> (-1%)
:arrow_down:

src/client/common/crypto.ts
88% <0%> (ø)

src/client/telemetry/index.ts
63% <0%> (ø)

src/client/common/extensions.ts
88% <0%> (ø)

src/client/datascience/common.ts
72% <0%> (ø)

src/client/logging/transports.ts
81% <0%> (ø)

... and 47 more

I still have this issue when running python code, but not when debugging.
See
https://github.com/simeld/bug-vscode-dotenv
for a repo with reproducible bug.

@simeld  please file an issue against the python extension repo


iam.ServicePrincipal injects region into Principal string

Describe the bug
When using new iam.ServicePrincipal() - the CloudFormation that is output injects the region into the Principal and there doesn't seem to be an option to disable this behavior.
To Reproduce
# Create a service principal, point it to "codedeploy.amazonaws.com"
new iam.Role(this, 'IamRoleWithServicePrincipal', {
    assumedBy: new iam.ServicePrincipal('codedeploy.amazonaws.com'),
    managedPolicyArns: ['arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole',
        'arn:aws:iam::aws:policy/AWSCodeDeployRoleForECS'],
    roleName: 'myrole'
});

# This is what gets output from cdk synth - Note that `Ref: AWS::Region`
# gets included as part of the Service Principal
Resources:
  myroleD153DA9E:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument:
        Statement:
          - Action: sts:AssumeRole
            Effect: Allow
            Principal:
              Service:
                Fn::Join:
                  - ""
                  - - codedeploy.
                    - Ref: AWS::Region
                    - "."
                    - Ref: AWS::URLSuffix
        Version: "2012-10-17"
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSCodeDeployRole
        - arn:aws:iam::aws:policy/AWSCodeDeployRoleForECS
      RoleName: myrole

Expected behavior
The default should be to not inject the region into the principal in the properties passed into new iam.ServicePrincipal().  An option to add that in might be useful for some cases, but I don't think it should be the default.
Version:

OS: OSX
Programming Language: Typescript
CDK Version: 0.31.0

What region or what workflow is this breaking for you?

This was breaking setting up codedeploy in the console - i couldn't set the role created in CDK as the instance profile role in the console since it didn't expect it to be regionalized

But are you able to use the role properly, say when you're deploying everything via CloudFormation?
I'm wondering if this is a console issue instead of a CDK issue :)

Yeah but not having the flexibility to determine if the region gets
injected is at minimum a gap in features
On Thu, Jun 20, 2019, 8:18 AM Romain Marcadier-Muller <
<EMAIL_ADDRESS>wrote:

But are you able to use the role properly, say when you're deploying
everything via CloudFormation?
I'm wondering if this is a console issue instead of a CDK issue :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-cdk/issues/2622?email_source=notifications&email_token=ABMOQZELT53ZIJ73CO7ZO3LP3ONURA5CNFSM4HPIRGVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYFXLRI#issuecomment-504067525,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABMOQZB2WNH3534AZJNHZ4LP3ONURANCNFSM4HPIRGVA
.

@KingOfPoptart - I'm not sure I agree here. One of our tenets is to issue least-privilege permissions only, and tightening the role down to the region where it's supposed to operate seems to be the right thing to do here.
If you have a concrete use-case where you need to grant the "region-global" principal permissions here... Then that'd be a feature request, not a bug.

Sure - I'm happy to switch this to a feature request instead.  By default, I agree, it should be locked down.  But having the option to open it up is also valid.

Opened https://github.com/awslabs/aws-cdk/issues/2999
Goin to close this issue.


Exams by Viktoriia Kapys, IM-22

I changed files "day.js" and "between.js".

Good job! A great idea was to split condition using slice() (file day.js). But to make code in file between.js easier to understand I'd rename variable lastString to substring.


Azure App Service Kudu depoy fails after KuduSync seems successful

For deployment issues, please provide us with the following information:

Repro steps.

your project built successfully on your dev machine but failed on Azure?
YES
please write down your build tools and their versions (ie Msbuild <IP_ADDRESS>)

wsl 2 - Ubuntu 20.04.4
Nodejs 16.16.0
Project structures.
A nodejs react application using nextjs. Contains node_modules and everything typical of a node app.
I don't think the issue is with the project structure though. I tried going back to  a previously successful deployment in Github Actions and re-running it, and it failed with this same issue.
The log/error given by the failure.

Normally this include a stack trace, error code and some more information.

Command: "/home/site/deployments/tools/deploy.sh"
Handling Basic Web Site deployment.

Processed 669 files...
Processed 1363 files...
Processed 1893 files...
Processed 2465 files...
Processed 3121 files...
Processed 3658 files...
Processed 4228 files...
Processed 4909 files...
Processed 5622 files...
Processed 6226 files...
Processed 6806 files...
Processed 7282 files...
Processed 7805 files...
Processed 8376 files...
Processed 8855 files...
Processed 8996 files...
Processed 9149 files...
Processed 9233 files...
Processed 9665 files...
Processed 10096 files...
Processed 10464 files...
Processed 10870 files...
Processed 11245 files...
Processed 11604 files...
Processed 11982 files...
Processed 12357 files...
Processed 12857 files...
Processed 13482 files...
Processed 14097 files...
Processed 14587 files...
Processed [1492](https://github.com/Occasional-ly/Occasionally/actions/runs/5651340543/job/16068923564#step:4:1493)7 files...
Processed 15347 files...
Processed 15692 files...
Processed 16077 files...
Processed 16567 files...
Processed 16917 files...
Processed 17372 files...
Processed 17742 files...
Processed 18187 files...
Processed 18737 files...
Processed 19122 files...
Processed 19507 files...
Processed 19892 files...
Processed 20402 files...
Processed 20947 files...
Processed 21352 files...
Processed 21752 files...
Processed 22177 files...
Processed 22737 files...
Processed 23293 files...
Processed 23883 files...
Processed 24383 files...
Processed 24968 files...
Processed 25548 files...
Processed 26118 files...
Processed 26598 files...
Processed 27153 files...
Processed 27723 files...
Processed 28298 files...
Processed 28861 files...
Processed 29356 files...
Processed 29642 files...
Processed 30339 files...
Processed 30999 files...
Processed 31592 files...
Processed 32191 files...
Processed 32828 files...
Processed 33397 files...
Processed 33815 files...
Processed 34494 files...
Processed 34976 files...
Processed 35678 files...
Processed 36281 files...
Processed 36868 files...
Processed 37444 files...
Processed 38018 files...
Processed 38576 files...
Processed 39127 files...
Processed 39573 files...
Processed 40048 files...
Processed 40480 files...
Processed 40913 files...
Processed 41341 files...
Processed 41729 files...
Processed 42181 files...
Processed 42563 files...
Processed 42898 files...
Processed 43258 files...
Processed 43722 files...
Processed 44166 files...
Processed 44658 files...
Processed 44974 files...
Processed 45319 files...
Processed 45784 files...
Processed 46308 files...
Processed 46774 files...
Processed 47294 files...
Processed 47830 files...
Processed 48347 files...
Processed 48934 files...
Processed 49402 files...
Processed 49945 files...
Processed 50408 files...
Processed 50939 files...
Processed 5[1506](https://github.com/Occasional-ly/Occasionally/actions/runs/5651340543/job/16068923564#step:4:1507) files...
Processed 52025 files...
Processed 52520 files...
Processed 53075 files...
Processed 53603 files...
Processed 54139 files...
Processed 54697 files...
Processed 55182 files...
Processed 55366 files...
Processed 55458 files...
Processed 55571 files...
Processed 55928 files...
Processed 56449 files...
\n/opt/Kudu/Scripts/starter.sh "/home/site/deployments/tools/deploy.sh"
Deployment Failed. deployer = GITHUB_ZIP_DEPLOY deploymentPath = ZipDeploy. Extract zip.
Error: Failed to deploy web package to App Service.
Error: Deployment Failed, Package deployment using ZIP Deploy failed. Refer logs for more details.

That is the stracktrace. This is a nodejs react app running on nextjs at I upgraded to nextjs13.
Debug your Azure website remotely.

it is recommanded that you share your Web App name, directly or indirectly
we can take a look at what's going on.

occasionally-prd.azurewebsites.net
Mention any other details that might be useful.
I can provide the github repo if needed but I wasn't sure if that would be that helpful. It's a private repo so I'd have to fork it and share that.

Thanks! We'll be in touch soon.

For additional context, I took a look at application logs and saw this:
Error: Cannot find module 'depd'
 Require stack:

- /home/site/wwwroot/node_modules/next/node_modules/http-errors/index.js
- /home/site/wwwroot/node_modules/next/node_modules/raw-body/index.j
- /home/site/wwwroot/node_modules/next/dist/server/api-utils.js
- /home/site/wwwroot/node_modules/next/dist/server/next-server.js
- /home/site/wwwroot/node_modules/next/dist/server/next.js
- /home/site/wwwroot/node_modules/next/dist/server/lib/start-server.js
- /home/site/wwwroot/node_modules/next/dist/cli/next-start.js
- /home/site/wwwroot/node_modules/next/dist/bin/next

So maybe the issue is with this app service instance? I've googled about this error but can't find much yet.

Hi
Please file incidents in Azure, so we can better track and assist on this case:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
Thanks,
Joaquin


Add NTP requirement

Adds a note about needing to synchronize time between hosts to:

InfluxDB's installation page
InfluxDB's line protocol reference page
InfluxDB's line protocol tutorial page
Telegraf's installation page
Telegraf's input data formats page
Enterprise's installation overview page

This fixes: https://github.com/influxdata/docs.influxdata.com/issues/993

Once the wording gets approved, I'll add an FAQ to the Cloud docs (they're in a separate repo).

Wording is correct, thanks! I think "meaningless" may be too bold, would it make sense to say "inaccurate" ?

Haha I agree. I'll change that.

Thanks, @kostasb!


python3.12

Signed-off-by: Jeff Goeders<EMAIL_ADDRESS>

Pausing this until JPype supports 3.12

https://github.com/jpype-project/jpype/issues/1147


Does editing a comment with @notifications cause multiple notifications to be sent?

Yes it could be a little more intelligent though and only send ones to people who were added though, by comparing the previous comment to the new one.
I sent new notifications because they could have added more names in their edit.

Yes it could be a little more intelligent though and only send ones to people who were added though, by comparing the previous comment to the new one.
I sent new notifications because they could have added more names in their edit.


public-api: DRY up meshed pod calculation

This code block is repeated for Deployments, Namespaces, ReplicationControllers, and Services:
https://github.com/runconduit/conduit/blob/653dc6bfaac3f5d0feafe1dc214f28f8bc89a3fb/controller/api/public/stat_summary.go#L340-L356
... we should DRY it up, and add a comment describing what the code does:
// Given a resource, retrieve its selector, find all pods matching that
// selector, determine how many of those pods are in the mesh, and return the
// meshed count and total pod count.

Reference: https://github.com/runconduit/conduit/pull/809#discussion_r182898965

Fixed in #835.


Can you shared the paper?

I have no acess to the paper download url, can you sent it to me by email?
My email<EMAIL_ADDRESS>Thanks a lot!

@ZibYang

You can view the paper online from this URL: https://onlinelibrary.wiley.com/doi/epdf/10.1002/cav.2046
Also, I sent a copy to you, and please check. Thank you for your interest in our work

Thanks a lot！


Quasiquotes fail to parse in GHC 8.8.3

I have the following code in Test.hs:
module Test where

import Text.Regex.PCRE.Heavy (Regex, re)

foo :: String
foo = concat $ map show [1, 2, 3 :: Integer]

numRegex :: Regex
numRegex = [re|^[0-9]{9}$|]

Now I want to lint this file while I compile it. IIUC the following command line incantation should do that:
ghc -XQuasiQuotes -fplugin=Splint -fforce-recomp Test.hs

I also make sure to put the following in my .hlint.yaml:
➜  mwb-error-bash git:(mwb-error-bash) ✗ cat .hlint.yaml
- arguments: [-XQuasiQuotes]

However, when I run the command shown above, I get:
➜  mwb-error-bash git:(mwb-error-bash) ✗ ghc -XQuasiQuotes -fplugin=Splint -fforce-recomp Test.hs
[1 of 1] Compiling Test             ( Test.hs, Test.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 8.8.3 for x86_64-unknown-linux):
        ParseError { parseErrorLocation = RealSrcSpan SrcSpanOneLine "Test.hs" 9 23 24, parseErrorMessage = "parse error on input `9'", parseErrorContents = "  numRegex :: Regex\n> numRegex = [re|^[0-9]{9}$|]\n" }

Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

But GHC itself seems to be perfectly happy with the file. If I remove -fplugin=Splint, I get:
➜  mwb-error-bash git:(mwb-error-bash) ✗ ghc -XQuasiQuotes -fforce-recomp Test.hs
[1 of 1] Compiling Test             ( Test.hs, Test.o )

Invoking HLint from the command line seems to work as well:
➜  mwb-error-bash git:(mwb-error-bash) ✗ hlint --version
HLint v3.1.6, (C) Neil Mitchell 2006-2020
➜  mwb-error-bash git:(mwb-error-bash) ✗ hlint Test.hs
Test.hs:6:7-44: Warning: Use concatMap
Found:
  concat $ map show [1, 2, 3 :: Integer]
Perhaps:
  concatMap show [1, 2, 3 :: Integer]

1 hint

Just to confirm my suspicions, I tried compiling the file without the plugin, but also without the QuasiQuotes extension enabled. This results in a parse error in the same location observed in the GHC panic earlier:
➜  mwb-error-bash git:(mwb-error-bash) ✗ ghc -fforce-recomp Test.hs
[1 of 1] Compiling Test             ( Test.hs, Test.o )

Test.hs:9:23: error: parse error on input ‘9’
  |
9 | numRegex = [re|^[0-9]{9}$|]
  |                       ^

So AFAICT what's going wrong is that the .hlint.yaml file is not being respected when reparsing the file (i.e. it's not accounting for the additional grammar introduced by -XQuasiQuotes when reparsing).
Versions of things:
ghc: 8.8.3
hlint: 3.1.6
splint: <IP_ADDRESS>
The problem also occurs with splint <IP_ADDRESS>.

Thanks for reporting this!
I was able to reproduce this problem. I made a slightly smaller example that uses raw-strings-qq, which is hopefully easier to build:
import Text.RawString.QQ -- raw-strings-qq
main = print [r||]

I'm on commit f06756e738813f9a8112237a217f57d5bc588eaa with GHC 8.8.4 and Stack 2.5.1. I have the same HLint configuration as you. This is the behavior I see:
» stack exec --package raw-strings-qq -- \
  ghc -fforce-recomp -XQuasiQuotes -fplugin=Splint gh9/Main.hs
[1 of 1] Compiling Main             ( gh9/Main.hs, gh9/Main.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 8.8.4 for x86_64-unknown-linux):
	ParseError { parseErrorLocation = RealSrcSpan SrcSpanOneLine "gh9/Main.hs" 2 16 19, parseErrorMessage = "parse error on input `||]'", parseErrorContents = "  import Text.RawString.QQ -- raw-strings-qq\n> main = print [r||]\n" }

Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

Explicitly passing -XQuasiQuotes to Splint via -fplugin-opt works:
» stack exec --package raw-strings-qq -- \
  ghc -fforce-recomp -XQuasiQuotes -fplugin=Splint -fplugin-opt=Splint:-XQuasiQuotes gh9/Main.hs
[1 of 1] Compiling Main             ( gh9/Main.hs, gh9/Main.o )
Linking gh9/Main ...

Explicitly pointing to the configuration file doesn't fix things:
» stack exec --package raw-strings-qq -- \
  ghc -fforce-recomp -XQuasiQuotes -fplugin=Splint -fplugin-opt=Splint:--hint=.hlint.yaml gh9/Main.hs
[1 of 1] Compiling Main             ( gh9/Main.hs, gh9/Main.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 8.8.4 for x86_64-unknown-linux):
	ParseError { parseErrorLocation = RealSrcSpan SrcSpanOneLine "gh9/Main.hs" 2 16 19, parseErrorMessage = "parse error on input `||]'", parseErrorContents = "  import Text.RawString.QQ -- raw-strings-qq\n> main = print [r||]\n" }

Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

But pointing to a configuration file that doesn't exist causes a different (expected) problem:
» stack exec --package raw-strings-qq -- \
  ghc -fforce-recomp -XQuasiQuotes -fplugin=Splint -fplugin-opt=Splint:--hint=does-not-exist gh9/Main.hs
[1 of 1] Compiling Main             ( gh9/Main.hs, gh9/Main.o )
user error (Failed to find requested hint files:
  does-not-exist
)

So the arguments are being passed through correctly and the configuration file is being read correctly. Perhaps I misunderstood how HLint's configuration is loaded? It seems like the command-line arguments are clobbering the arguments in the configuration file. That's especially strange since, as you noted, HLint itself works fine:
» hlint --hint .hlint.yaml gh9/Main.hs
No hints

You can see how HLint handles this in the readAllSettings function. Unfortunately that function isn't exported, so Splint uses argsSettings instead.
I think the fix will be to read the settings file and merge its arguments with the command-line arguments, but I don't know how to do that just yet.

Nice, glad you were able to reproduce.

I thought I could be clever and use argsSettings if the list of command line arguments was empty, but it turns out that doesn't work either. At this point I think it's reasonable to call this a bug in HLint and ask for help upstream. I'll open an issue against HLint.
In the meantime, as a workaround you can pass -fplugin-opt=Splint:... to set whichever options you're already setting in .hlint.yaml. Clearly that's not ideal, but I think it's the only workaround here.

@tfausak Does this bug affect usage of splint on GHC 8.10+ as well?

GHC 8.10+ won't have this particular problem with the language extensions, but it may have other problems related to https://github.com/ndmitchell/hlint/issues/1232.

I'm going to close this. It's an upstream issue. I'm not sure how Splint could work around it. Also it shouldn't happen with GHC 8.10+.


Doesn't seem to be working with pixi v6.4.2

Doesn't seem to be working with pixi v6.4.2
But, this could be something on my end e.g. webpack

no error, just not seeing my fonts any more.
that being said, I'm am getting an error from a different plugin that PIXI is not defined, so I'm gonna close this issue and open one upstream.


✅ Write tests

I think the most important thing before writing tests is an option to isolate DiscordPHP usage, create some kind of abstraction layer for Laracord->DiscordPHP communication, and then on test init we can register some kind of FakeDiscordClient, that will allow us to perform expectations.
We can not use real DiscordPHP and real discord API for test, so that can be the only one solution.
We aslo can create a ::fake method on some kind of Laracord facade, that will autoregister that FakeDiscordClient class to container.

DiscordPHP was written with PHPUnit in mind for test cases. I believe the dependency itself should be used for such testing rather than within Laracord via an abstraction layer, or such testing should extend from those test cases.


Syntax of val binders

You can now write:
val id #a (x:a) : a

instead of
val id (#a:_) (x:a) : a

bringing the syntax of val binders closer to let binders

everest green too

Very nice!


update CircleCI config to 2.0 syntax

Expect flakiness described in #9554.
Updating CircleCI config to 2.0 is required by aug-2018, and it gives us access to some fancy CI features.

The first couple of executions with this new config show a small performance improvement (~2m) just from this change. Might be that 1.0 was running in a docker container, while I have the 2.0 config running on a VM, which has 2 cores. Docker Layer Caching would improve performance more dramatically, perhaps by ~8m.

@e-dard I should note that this PR removes a lot of logic, for example there is no more circle-test.sh, the CircleCI config just runs test.sh and doesn't persist STDOUT. I think this is appropriate, please confirm.

Latest changes improve (cached) test runtime to ~8m.

@mark-rushakoff PTAL

FYI a failing version of this PR, just added t.Fail() to one test:
https://github.com/influxdata/influxdb/pull/9717


Possible unused require

This code might be unused: https://github.com/nikomatsakis/a-mir-formality/blob/4a47eb8d97a374a953d50a94acab55d4c98ac552/racket-src/logic/test/cosld-solve-ambiguity.rkt#L3
That's what racket-mode is telling me, at least. 😇

This doesn't seem relevant anymore. I guess this ticket can be closed?


Add pep8 checker to travis

This will save time in reviewing pull requests.

Since we can only merge into master given that all tests pass, this ticket involves fixing all violations of pep8.

Fixed in #659.


[easy] Reference local version of aiconfig package for local editor

[easy] Reference local version of aiconfig package for local editor
While we iterate on the aiconfig schema and SDK, it's better to reference the latest code for the local editor (typescript side) to ensure we are in sync on the schema updates coming in.
It also means we don't need to publish to npm/pypi until we have let the changes bake.

Awesome - thanks!


Constantly getting Failed to send activity: bot timed out

Guys, I am in troubles. I am constantly getting
{
"error": {
"code": "BotError",
"message": "Failed to send activity: bot timed out"
},
"httpStatusCode": 504
}
and I am not sure why. Checking AI from web app, shows that the call is actually made and taking around 2 sec. to process. The back end also reply some message back and web chat client shows it. However, all activities I am sending, in Chrome showing with 504 error.
Bot Framework shows this error in DirectLine Chanel:
There was an error sending this message to your bot: HTTP status code GatewayTimeout
Any idea guys? Should I somehow reply something special to those activities?
Thanks
Nick

It may be that Direct Line is unable to connect to your bot. Is your bot behind a firewall? Any other network topology to be aware of?

Closing due to lack of response.

It is happening to me as well but it is happening intermittently.

True here as well. I found that when I try to connect to webApp, after a delay ( say 45 mins ), and send a message, it returns me the same error. If however, I wait for another 1-2 mins, the socket itself returns the reply message that the backend has codeded

This issue still happening with latest BOT Framework 4.0. intermittently.


KON-203 Add hasReturnValue To KoFunctionDeclaration

I added hasReturnValue to KoReturnTypeProvider (I think they are related with hasReturnType). Is it ok? Or should be separate provider for this? If it is ok - is the name of the provider ok? Or should be changed to KoReturnProvider?
In the ticket says to pay attention to non-local returns, but I don't think they matter. Am I wrong?


Admin button doing nothing

Describe the bug
ADMIN button is not working
To Reproduce
Steps to reproduce the behavior:

Go to geamedao beta site
Click on ADMIN button
See nothing changed
See error

Expected behavior
It ether should be DISABLED or it should work. Or if intention was to show that user is admin of DAO make it with some other TAG control or STATUS control. Using button is against UX.
Screenshots

true, it lacks a view, containing e.g. settings (onchain) and edit (ipfs data) capabilities.
@mikeplanzer @5-mark @soundyogi

Issue: #302
disabled Admin button for beta


change from module-eval-source-map to source-map

Could you explain why?

Coverage remained the same at 78.132% when pulling 42a038ed1fdce4e56760d9cdef0ef893899ff97d on abemassry:full-sourcemaps into 421d44c4377c4d88a2f6037fa4c4509723775854 on linode:develop.

@mparke indecisive much? https://github.com/linode/manager/pull/1126

yes

This is needed so we can generate source maps?

yes, it is slower, but I believe it provides more accurate line numbers and more detailed stack trace when debugging.
@abemassry ?

You're right. It actually doesn't even seem to be working at all right now. 'source-map' works well.


Controll the inverter

Hi,
thank you for your great work.
Is it also possible to do some kind of Controlling the inverter?
e.g. Charge the battery with grid power?
Thanks.

Duplicate of #9

Oh, thanks. I missed that.
Can't wait for the next update.
👯


WUC: Typescript

Description

[x] Установить typescript в сторибук
[x] Заменить файлы формата JSX на TSX

TODO

[x] Self-review
[x] Labels

Screenshot

Could you remove the creation of an issue from the checklist if it is not meant to be? Or create an appropriate issue

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added documentation for deployment, migration, etc...

Fixed some markdown warnings
Added revocation doc
Added a bit about URLs to nsc doc
Updated nsc overview to discuss the env more.
Added info on defining your own well known operator.

Fixed all the comments - I think.

lgtm - thanks @sasbury


GEOMESA-730 Secure uploaded CSV data

secures CSV upload with authenticated user ID
adds optional securityLevel field to ImportProcess
stub of new DataEndpoint implements DELETE hooks for allowing user to demand deletion of a layer's backing data.

Merged as 31405b4983da53c58e10cf268cbf699973f2692f


Rename nova_spice_console to nova_console

In Kilo, we renamed the nova_spice_console group to nova_console. This change keeps our f5 config consistent with that code base.

The main task in rcp_support also needs nova_spice_console renamed to nova_console.

As well as the local task in rpc_maas.

@nrb good for this to go as soon as we can get Jordan's updates in! (Just a nudge on this!)

closing as it's superseded by https://github.com/rcbops/rpc-extras/pull/137 which includes the suggested changes


How can include non-ascii character to fill up pdf form with netcore.

When the pdf form shows up, the non-ASCII characters are missing.
Any suggestions?

@wcartayad interesting, do you have a small sample you can share?

@kevbite  thanks for the response
By example, the name must be Alejandro López Alvarez

That is an input of pdf form

Just done a quick test and I can see it's not working correctly, however, it seems to be producing the correct xfdf file.
<?xml version="1.0" encoding="utf-8"?>
<xfdf xml:space="preserve" xmlns="http://ns.adobe.com/xfdf/">
    <fields>
        <field name="Given Name Text Box"><value>Alejandro López Alvarez</value>
        </field>
    </fields>
</xfdf>

I'll try to look into this further 👍

This happens to me on AWS EC with Linux; but local with windows 11, the same issue.
The PDF was generated with Adobe Reader in Windows.
Also, I notice the field above, is a multiline field and it shows the no-ASCII characters.

@wcartayad is there any chance you can attach a blank version of that PDF or create one that doesn't work for you?

FichaMatricula.pdf
@kevbite here is a empty version.
Thanks for help

Hey @wcartayad I think the problem is somewhere inside the PDF file as it's displaying the value correctly for some of the fields but not others:

Also if you do click in to them it then displays the correct value:

Big stab in the dark but could it be the font that is being used within the PDF?

Thanks for the help;  I'll rebuild the pdf.
Thanks a lot


add py3 warning on startup; version bump; minor bugfixes and improvements

Hi,
this PR adds a warning which will be shown if StaSh is started with python3.
It also contains the version bump to 0.7.0 (As discussed in #311 ).
Other than that, there are also some minor improvements and bugfixes regarding py3 compatibility.
Since the version detection of stash changed in a backwards incompatible way, a forceupdate (selfupdate -f) is required to update from  0.6.20 or older to 0.7.0)
Also, there seem to be a lot of issues which could be closed. Should i compile a list of all issues which can be closed?

Thanks! Yes please close any issues that are no longer valid after 0.7.0


Fixed the tutorial of Si

Hello.
I found two issues of gw_bse_si.py.

os.system('mv nscf/si.save/SAVE database'.split())
I think .split() is not necessary.

y['QPkrange'] = [QPKrange[:2]+[6,10],'']
I think yambo -b -o b -k sex -y d -V all doesn't have QPkrange option.

Thank you very much for spotting the problems and providing the fixes!


No analysis error when switch case can never match

While debugging https://github.com/Dart-Code/Dart-Code/issues/5202 I was surprised to find that there are no analysis errors when a switch case has an unrelated type to what's being tested:
void f(int a, String b) {
  switch ((a, b)) {
    case (1, _):
      break;
    case 'Foo': // This can never occur
      break;
  }
}

Could/should there be an error in this case? Unless I'm missing something, it seems like this is probably always a bug?

@eernstg

yes this seems to be a bug, as it is not in the input format we mentioned

can we instead update the code for switch case such that

if the case value is of any type that is mentioned then perform the task on all the available/possible such case
if the case value is not of any type mentioned then show error

basically treat it like how we treat a nested switch , when 2 or more conditions satisfy then that specific condition and if only one condition is mentioned then perform task as that one condition(or all the asked condition in the switch case) is satisfied

Could/should there be an error in this case?

Not an error, but there could probably be a warning from the analyzer.

I think it's worth noting that we have only a few situations where it is statically known that a given type T has an empty intersection with some other type S (which means that case S(): will definitely be unreachable when the scrutinee has static type T).
The general instance of this situation includes the following:
class A {}
class B {} // Unrelated to `A`.

void f(A a) {
  switch (a) {
    case B(): // This _can_ occur.
      break;
  }
}

class AB extends A implements B {}

void main() {
  f(AB());
}

So it isn't sufficient that the two types are unrelated, we must actually know (somehow) that they are disjoint, that is, they don't have any non-empty common subtypes (Never is a common subtype of any pair of types, but it is empty, so we can't ever encounter an instance of that type).
To handle disjointness of types, this could get us started:

Some platform types do not have any denotable subtypes (e.g., int, String), so they don't have a common non-empty subtype with any type that isn't one of their supertypes.
An enumerated type (enum E {}) and any type which isn't the same type or a supertype do not have any common non-empty subtypes.
A class or mixin class with the modifier final can only have a commen non-empty subtype S with other types unless S is declared in the same library; we could check that and recognize disjointness in some cases.
A function type does not have any common non-empty subtype with any non-function type other than Function, Object, and top types.
A record type R has common non-empty subtypes with a record type R2 with the same shape, iff each component type of R has a non-empty common subtype with the same component of R2. R has common non-empty subtypes with Record, Object, and top types. R has no non-empty common subtypes with any other type.

Surely there will be more cases where we can determine that no non-empty common subtypes exist, but it could be useful to recognize a smaller set now and add more general cases later on, when we notice them.


[BUGFIX] Make 'digest-crc' a runtime dependency

#123 Added code that is using the digest-crc gem. However, it listed the gem in the Gemfile, not in the gemspec.
This causes projects using packengen which aren't including the digest-crc gem themselves (or another gem that uses it) to break.
The gem should have been listed as a runtime dependency in the gemspec file.
Gems listed in the Gemfile are not taken into account by Bundler when searching for or installing dependencies.

@sergio-bobillier thank you


Memory leak when repeatedly instantiating a WASM module

Describe the Bug
The heap array grows without bounds when repeatedly instantiating a WASM module and calling any function that adds a JS object to the heap.
Steps to Reproduce

Build

use wasm_bindgen::prelude::*;
use std::cell::RefCell;

thread_local! {
  pub static VALUE: RefCell<Option<JsValue>> = RefCell::new(None);
}

#[wasm_bindgen]
pub fn set_value(val: JsValue) {
  VALUE.with(move |global_val| {
    *global_val.borrow_mut() = Some(val);
  });
}

Repeatedly init the wasm module and call this function with a new JS object each time, e.g. while (true) { const instance = initSync(module); instance.set_value(new Object()); }.

Expected Behavior
Memory usage to stay level while running.
Actual Behavior
Memory usage continuously increases while running.
Additional Context
In the init method, even though wasm gets changed (effectively invalidating the old instance, as now the module-level functions will be referring to a different instance when using wasm), the heap isn't re-initialized. So all the values that were stored in the old instance continue to be held onto, even when they're effectively unusable by the new instance. This can be observed when, e.g., the Rust code uses a panic handler that calls throw_str, where the calling JS code will re-init the module after a panic (similar to Erlang behaviour).

Unfortunately there's not really anything that can be done about this. You'd need some sort of destructor for the entire instance akin to "program shutdown" which is not implemented. Such a destructor would be responsible for clearing this global.
If you're creating tons of wasm instances I'd recommend not storing things in globals and instead using objects which should have destructors to trigger things correctly with finalizers.

Can init/initSync not just wipe the global? Once you change the wasm variable to point to the new instance, the old one is basically unusable anyway (side note: is there any reason why wasm and heap are module globals vs. closure-captured stack variables?).
For my use-case, it's not really about creating tons of instances, more when an instance with a lot of heap values attached crashes and is restarted.

What you probably want is to have all the intrinsics and such that wasm-bindgen uses to be closure state in the initialization function. That way they'd all get gc'd with everything else when they're no longer referenced (e.g. after something crashes and has been replaced).

That's exactly it, yeah; as far as I can tell, there's not really any reason the various expose_x-generated functions can't take their associated global(s) as input, and have something like
// in initSync
let globalsObj = { heap: /* do heap init */ };
let imports = generateImports(globalsObj);
let wasm = new WebAssembly.Instance(module, imports);
globalsObj.wasm = wasm;
// ...


Unable to create certificate. ( .well-known dir/file does not get written).

Issue description
Hi,
Somehow Im unable to create certificates for a website. It used to work, but now it doesnt.
It seems like the .well-known directory/file file is not created during the process.
I`m using v<IP_ADDRESS>
[INFO] Plugin IISBinding generated target [IISBinding] www.testdomain.nl (SiteId 71) [ @ e:\Webserver\www.testdomain.nl]
[DBUG] Scanning IIS site bindings for hosts
[DBUG] Loading signer from C:\Users\Administrator\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt.org\Signer
[DBUG] Getting AcmeServerDirectory
[DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/directory
[DBUG] Loading registration from C:\Users\Administrator\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt.org\Registration
[INFO] Authorize identifier: www.testdomain.nl
[DBUG] Send POST request to https://acme-v01.api.letsencrypt.org/acme/new-authz
[INFO] Authorizing www.testdomain.nl using http-01 validation (SelfHosting)
[DBUG] Writing web.config
[INFO] Answer should now be browsable at http://www.testdomain.nl/.well-known/acme-challenge/bexZIF4UR8gjbrwMgQsD39sdwWSH0EwQF07UG6E3rxE
[DBUG] Submitting answer
[DBUG] Send POST request to https://acme-v01.api.letsencrypt.org/acme/challenge/sJAzGoD6zVYFt2VVimBe6OJnp_QGiqxAxK1Vi_NO1ZU/4073834305
[DBUG] Refreshing authorization
[DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/acme/authz/sJAzGoD6zVYFt2VVimBe6OJnp_QGiqxAxK1Vi_NO1ZU
[DBUG] Refreshing authorization
[DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/acme/authz/sJAzGoD6zVYFt2VVimBe6OJnp_QGiqxAxK1Vi_NO1ZU
[DBUG] Refreshing authorization
[DBUG] Send GET request to https://acme-v01.api.letsencrypt.org/acme/authz/sJAzGoD6zVYFt2VVimBe6OJnp_QGiqxAxK1Vi_NO1ZU
[EROR] Authorization result: invalid
[DBUG] Deleting web.config
[DBUG] Deleting answer
[EROR] ACME server reported:
[EROR] [type] urn:acme:error:connection
[EROR] [detail] Fetching http://www.testdomain.nl/.well-known/acme-challenge/bexZIF4UR8gjbrwMgQsD39sdwWSH0EwQF07UG6E3rxE: Timeout
[EROR] [status] 400
[EROR] Create certificate failed### Steps to reproduce
letsencrypt
N
Site id in this case 71
**Windows Server 2016 **:
Log files are unknown. ( do not know the location and or existance of the log files.)

The ciphers can't be the cause of this, because validation happens on plain http. When you choose SelfHosting validation (e.g. the default) nothing is written to disk anymore, it all happens a virtual in-memory file system.
I really suspect it is (was?) an issue with IPv6.

It was and still is a ipv6 problem. You can workaround the issue by deleting the dns ipv6 adresses. Running letsencrypt.exe, create the certificates and then adding them again.

I noticed you have a seperate issue open (#821) about this, so I'll close this one.


EventList should support the reading in of event tables

It now supports reading in the headers of event files (in order to let the eROSITA spectrum generation routines know whether data were taken in pointed or survey mode) - it isn't much of a stretch to add the reading in of actual event data.

Pretty sure @jessicapilling implemented this in the multi-mission branch - closing this issue.


A proposed security policy

This should be a basis to start a security policy which can be than copied on all repositories we own.

Looks good to me.
Depending on how you are able to deal with it I would consider to enable "private vulnerability reporting". If a security issue is public, everyone can read about them and abuse them until they are fixed. If they are private, they would have to find them out themself to abuse them, making it harder. I think in a project such as SolidOS this could be important, as I expect the time to a fix to be rather long (as it is largely volunteer-based).
I guess, then the main question would be if it is easy for you to define an appropriate group of people that can read these issues (eg people who regularly contribute to the project).

Thank you @TallTed for fixing it. Seeing the improvements one could totally see I wrote it late last night 😅
@Otto-AA you bring up really good points. I need to think about it and maybe bring it up in the meeting. I am happy we started the process :)


Trasaction Page - Create Transaction Receipt Payment Mode Auto complete should take typed input

Problem-

User types "cash" in Auto complete, and saves, but its saved as different entry, then "cash" and "Cash" are different

Suggested Solution-

Typed input should be taken

Technical details

Autocomplete plugin dont accept types input, it takes that as new Entry
Payment Mode selection- is case Sensitive, so "cash" & "Cash" is different
If we want this to be implemented, user typed case ie "Cash" will lose its case and will become something fixed case, ie "cash", "Cash", "casH" all will become "Cash", "Bank-DRAFT" will become "Bank-draft", this is required to stop duplicate entries

Initiated By @vinpahilwani
Verified by @mitulpanch

yes this is required

https://www.berrycast.com/conversations/6ac43294-1708-5bfc-9e00-c6314f72d83f


Paste mode?

Hi ! How do we paste in multiple lines a la :paste in the scala REPL?

This is a very simple example repl to show how you can get going, nothing more. But pasting lines into a terminal should work? If not, feel free to do some digging and maybe open a PR?

This is a very simple example repl to show how you can get going, nothing more. But pasting lines into a terminal should work? If not, feel free to do some digging and maybe open a PR?


Error while starting API server when using Ray

I am installing the vllm using
FROM nvcr.io/nvidia/pytorch:22.12-py3
RUN pip uninstall torch -y
WORKDIR /workspace
RUN pip install vllm
EXPOSE 8097

start vllm server using
docker run --gpus all --shm-size=20g -p 8097:8097 -it --rm --name vllm vllm_docker python3 -m vllm.entrypoints.api_server --port 8097 --host <IP_ADDRESS>  --trust-remote-code --tensor-parallel-size 8

The last 20 lines of /tmp/ray/session_2023-08-11_20-00-52_804243_1/logs/dashboard.log (it contains the error message from the dashboard):
    from ray.util.state.common import (
  File "/usr/local/lib/python3.8/dist-packages/ray/util/state/__init__.py", line 1, in <module>
    from ray.util.state.api import (
  File "/usr/local/lib/python3.8/dist-packages/ray/util/state/api.py", line 17, in <module>
    from ray.util.state.common import (
  File "/usr/local/lib/python3.8/dist-packages/ray/util/state/common.py", line 420, in <module>
    class ActorState(StateSchema):
  File "pydantic/dataclasses.py", line 224, in pydantic.dataclasses.dataclass.wrap
  File "pydantic/dataclasses.py", line 336, in pydantic.dataclasses._add_pydantic_validation_attributes
  File "pydantic/dataclasses.py", line 391, in pydantic.dataclasses.create_pydantic_model_from_dataclass
  File "pydantic/main.py", line 1026, in pydantic.main.create_model
  File "pydantic/main.py", line 198, in pydantic.main.ModelMetaclass.__new__
  File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
  File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
  File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
  File "pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
  File "/usr/lib/python3.8/typing.py", line 774, in __subclasscheck__
    return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class
2023-08-11 20:00:54,710 INFO worker.py:1621 -- Started a local Ray instance.
[2023-08-11 20:00:56,259 E 1 1] core_worker.cc:201: Failed to register worker 01000000ffffffffffffffffffffffffffffffffffffffffffffffff to Raylet. IOError: [RayletClient] Unable to register worker with raylet. No such file or directory

I was able to fix it by downgrading the versions of typing-extensions
 pip install typing-inspect==0.8.0 typing_extensions==4.5.0
There were other issues with the version of a nvidia lib that came, but this should fix this issue specifically

Thansks @thiagosalvatore , this fixes the error. But the server still doesnot come up. Server is stuck after
You are using a model of type RefinedWeb to instantiate a model of type falcon. This is not supported for all configurations of models and can yield errors.
2023-08-12 06:05:03,154 WARNING services.py:1832 -- WARNING: The object store is using /tmp instead of /dev/shm because /dev/shm has only<PHONE_NUMBER> bytes available. This will harm performance! You may be able to free up space by deleting files in /dev/shm. If you are inside a Docker container, you can increase /dev/shm size by passing '--shm-size=10.24gb' to 'docker run' (or add it to the run_options list in a Ray cluster config). Make sure to set this to more than 30% of available RAM.
2023-08-12 06:05:03,288 INFO worker.py:1621 -- Started a local Ray instance.
INFO 08-12 06:05:05 llm_engine.py:70] Initializing an LLM engine with config: model='/workspace', tokenizer='/workspace', tokenizer_mode=auto, trust_remote_code=True, dtype=torch.bfloat16, use_dummy_weights=False, download_dir=None, use_np_weights=False, tensor_parallel_size=8, seed=0)

Server is getting stuck at this line in llm_engine.py
File "/usr/local/lib/python3.8/dist-packages/vllm/engine/llm_engine.py", line 170, in _init_workers_ray
self._run_workers(
Full stack trace
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/dist-packages/vllm/entrypoints/api_server.py", line 78, in <module>
    engine = AsyncLLMEngine.from_engine_args(engine_args)
  File "/usr/local/lib/python3.8/dist-packages/vllm/engine/async_llm_engine.py", line 232, in from_engine_args
    engine = cls(engine_args.worker_use_ray,
  File "/usr/local/lib/python3.8/dist-packages/vllm/engine/async_llm_engine.py", line 55, in __init__
    self.engine = engine_class(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/vllm/engine/llm_engine.py", line 99, in __init__
    self._init_workers_ray(placement_group)
  File "/usr/local/lib/python3.8/dist-packages/vllm/engine/llm_engine.py", line 170, in _init_workers_ray
    self._run_workers(
  File "/usr/local/lib/python3.8/dist-packages/vllm/engine/llm_engine.py", line 474, in _run_workers
    all_outputs = ray.get(all_outputs)
  File "/usr/local/lib/python3.8/dist-packages/ray/_private/auto_init_hook.py", line 24, in auto_init_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/ray/_private/worker.py", line 2514, in get
    values, debugger_breakpoint = worker.get_objects(object_refs, timeout=timeout)
  File "/usr/local/lib/python3.8/dist-packages/ray/_private/worker.py", line 753, in get_objects
    data_metadata_pairs = self.core_worker.get_objects(
  File "python/ray/_raylet.pyx", line 2789, in ray._raylet.CoreWorker.get_objects
  File "python/ray/_raylet.pyx", line 400, in ray._raylet.check_status
KeyboardInterrupt

I was able to fix it by downgrading the versions of typing-extensions
 pip install typing-inspect==0.8.0 typing_extensions==4.5.0
There were other issues with the version of a nvidia lib that came, but this should fix this issue specifically

This fixes my issue

this method was not fixed mine? why?

use  pip install typing-inspect==0.8.0 typing_extensions==4.5.0:
anaconda3/envs/vllm/lib/python3.10/site-packages/huggingface_hub/utils/_runtime.py:184: UserWarning: Pydantic is installed but cannot be imported. Please check your installation. huggingface_hub will default to not using Pydantic. Error message: '{e}'
warnings.warn(
Traceback (most recent call last):
File "/home/centific/anaconda3/envs/vllm/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home/centific/anaconda3/envs/vllm/lib/python3.10/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/home/centific/hua-project/vllm/vllm/init.py", line 4, in
from vllm.engine.async_llm_engine import AsyncLLMEngine
File "/home/centific/hua-project/vllm/vllm/engine/async_llm_engine.py", line 12, in
from vllm.engine.llm_engine import LLMEngine
File "/home/centific/hua-project/vllm/vllm/engine/llm_engine.py", line 10, in
from vllm.core.scheduler import Scheduler, SchedulerOutputs
File "/home/centific/hua-project/vllm/vllm/core/scheduler.py", line 8, in
from vllm.core.interfaces import AllocStatus, BlockSpaceManager
File "/home/centific/hua-project/vllm/vllm/core/interfaces.py", line 5, in
from vllm.sequence import Sequence, SequenceGroup
File "/home/centific/hua-project/vllm/vllm/sequence.py", line 9, in
from vllm.sampling_params import SamplingParams
File "/home/centific/hua-project/vllm/vllm/sampling_params.py", line 8, in
from pydantic import conint
File "/home/centific/anaconda3/envs/vllm/lib/python3.10/site-packages/pydantic/init.py", line 383, in getattr
module = import_module(module_name, package=package)
File "/home/centific/anaconda3/envs/vllm/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/centific/anaconda3/envs/vllm/lib/python3.10/site-packages/pydantic/types.py", line 33, in
from typing_extensions import Annotated, Literal, Protocol, TypeAlias, TypeAliasType, deprecated
ImportError: cannot import name 'TypeAliasType' from 'typing_extensions' (/home/centific/anaconda3/envs/vllm/lib/python3.10/site-packages/typing_extensions.py)


Distorted colors (0.2)

There is a regression from 0.1.9 with regard to colors in any player I tried.
Colors in top image are correct:

I encounter also possibly #85 specifically with QT7.

can you provide test video file?

Yes, I need about a week (on vacation now).

Sorry for the delay, here is a file encoded with 0.2.0:
http://swhv.oma.be/test/JHV_2017-08-21_08.59.03-jcodec-0.2.0.mp4
Same encoded with 0.1.9:
http://swhv.oma.be/test/JHV_2017-08-21_08.56.15-jcodec-0.1.9.mp4
I see two issues with the output of 0.2.0: color is "more red" and a "green" flickering in QT7.
Colors in the output of 0.1.9 are accurate and there's no issue with QT7 playback.

Tried against the latest git code: just changing the codec to ProRes produces the expected colors. H.264 still "reddish".


Error using videorectangle

An error is reported when frontend using videorectangle. Such as ‘Unhandled Rejection (Error): No model registered for tag: videorectangle’The versio is v1.4.0.
Please can someone help me with how I can use videorectangle? Thanks.

First of all you have to upgrade at least to 1.7.1.

I use the npm install heartexlabs@label-studio@latest --save command to install it. But the version is still 1.4.  On the official website is the python update command.
What should I do to upgrade the frontend to 1.7 ?

You can try using it from this dir
https://github.com/heartexlabs/label-studio/tree/develop/label_studio/frontend/dist/lsf

You can try using it from this dir https://github.com/heartexlabs/label-studio/tree/develop/label_studio/frontend/dist/lsf

Thank you very much for your reply. I tried to replace the files in this directory, but the project could not be started. Did I do something wrong? Our project need use videorectangle tag, and this error bothered me for a long time.
Maybe there is another way, such as I distribute the npm package by myself. If so, please tell me where the source code is, thanks again.

@chatailang source code is here:
https://github.com/heartexlabs/label-studio-frontend
check readme, there is written how to build it.


amdapp-sdk update to 3.0

Hi all,
I am trying to switch over to NixOS, and the most important feature for me is availability of OpenCL 2.0 on AMD radeon. I can see that ati-drivers is on 15.7 so it is ok (15.9 would be even better :), but amdapp-sdk has been on 2.8 for a long time. The latest is 3.0, which has support for OpenCL 2.0.
It would be great if someone can give me some pointers:

Is there any plan or interest by anyone to update the package to the latest amd's amdapp-sdk 3.0?
 Would simply copypasting the old 2.8 data and updating it with new download locations and other easy changes for 3.0 work, or some (non-trivial) patching is needed?

cc @offlinehacker, this would also fix the build most probably.

Are there any updates to this issue, please?

These libraries are not used by anything in the nixpkgs tree. Let's remove them instead: https://github.com/NixOS/nixpkgs/pull/86233


add info about adding new instruction options

Fixes #185

Yea, I agree @lyzidiamond. I thought about starting this and then thought about my desire to change how the translations files work and opting for the quick solution so we don't throw away work later (maybe).


2022/04/06 progress

Successfully compiled and entered the game.
The following problems occur:
1.The worldserver process is terminated within a very short time (5min) after it is started.

2.There are many high-level playerbots in the birthplace, it is recommended to be distributed in the matching area according to the level.

Thank you for report this issue. Are you using Chinese locale? This may be related to the crash. I will investigate.

Thank you for report this issue. Are you using Chinese locale? This may be related to the crash. I will investigate.

YES,Chinese locale.
thank you very much.


Compile on Ubuntu 18.04

Add  to ActorIKConstraint.cpp to fix error
Add  to JellyComponent.cpp to fix error

To anyone who may want to know, I had to install both clang and glfw3 to get it to build. From the root directory, I ran:
$ sudo apt-get install -y clang
$ sudo apt-get install -y libglfw3 libglfw3-dev
$ git submodule update --init --recursive
$ make -f Makefile

Also, there's a similar change for Nima-Cpp-OpenGL.


Why is the variance of PPO's policy independent of state?

In issue #25 @ikostrikov mentioned that:

Log std is fine (it's just a hack for KFAC). I implemented it similarly to add_bias function from tensorflow. It just has zero input because it should not depend on observations.

when referring to this line of code.
Why would we want to have the variance, although learnable, constant for all states? It seems more natural to me to parametrize the policy so that both its mean and std are functions of the state. Something like what is mentioned in Reinforcement Learning:
An Introduction - 2nd edition, page 277, equation 13.17
.
Is there any reason for not doing so?

I'm ended up wondering the same point. Substituting a linear layer for the AddBias one, it works fine. But not confident if performance changed yet


optimize LocalDispatcherFilter

optimize LocalDispatcherFilter, use java.lang.String#startsWith(java.lang.String) replace org.apache.shenyu.common.utils.PathMatchUtils#match.

Codecov Report

Merging #3246 (6bf3664) into master (8b7570d) will decrease coverage by 0.12%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #3246      +/-   ##
============================================
- Coverage     57.65%   57.52%   -0.13%
+ Complexity     4546     4535      -11
============================================
  Files           729      729
  Lines         20808    20808
  Branches       1913     1913
============================================
- Hits          11997    11970      -27
- Misses         7754     7777      +23
- Partials       1057     1061       +4

Impacted Files
Coverage Δ

...pache/shenyu/web/filter/LocalDispatcherFilter.java
0.00% <0.00%> (ø)

...admin/controller/ShenyuHttpRegistryController.java
77.77% <0.00%> (-22.23%)
:arrow_down:

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
87.50% <0.00%> (-12.50%)
:arrow_down:

...in/disruptor/RegisterServerDisruptorPublisher.java
52.94% <0.00%> (-11.77%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
54.25% <0.00%> (-9.58%)
:arrow_down:

...rg/apache/shenyu/plugin/rewrite/RewritePlugin.java
50.00% <0.00%> (-5.56%)
:arrow_down:

...in/response/strategy/NettyClientMessageWriter.java
69.56% <0.00%> (-4.35%)
:arrow_down:

...he/shenyu/plugin/grpc/client/ShenyuGrpcClient.java
8.00% <0.00%> (-4.00%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
74.79% <0.00%> (-2.44%)
:arrow_down:

... and 1 more

Continue to review full report at Codecov.

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


Issue with Text editor

We have written the needed data into your clipboard because it was too large to send. Please paste.

Please let me know the solution.

Please provide detailed steps how you end up in this situation.


Add alerting/monitoring - start with email/essential-contacts alerting on the 2 pairs of partner interconnects - 1 or more in failover to all 4 down

Add terraform modules and resources to prod targeting the interconnects to start in #249
https://registry.terraform.io/modules/terraform-google-modules/project-factory/google/latest/submodules/essential_contacts
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy#nested_alert_strategy
monitoring/alerting
https://cloud.google.com/network-connectivity/docs/interconnect/how-to/monitoring
port to or from https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/issues/448

Manual first an an existing vlan attachment set that is up - in order that current 24 metrics flag is set

debugging on partner-interconnect
https://source.cloud.google.com/tzpe-tlz-tlz-de/tlscsr2/+/d605b0997174a7c439832f6e9e5399e85867986a:modules/20-partner-interconnect/main.tf;dlc=53fb91787cff2366fed8b485c320f96659830404
https://console.cloud.google.com/cloud-build/builds;region=global/bfd55143-b614-45dc-b573-cba0168d3643;step=4?project=tzpe-tlz-tlz-de&supportedpurview=project

resource "google_monitoring_alert_policy" "alert_policy2" {
    project = var.interconnect_router_project_id
    display_name = "My Alert Policy2"
    combiner     = "OR"
    conditions {
        display_name = "test condition"
        condition_threshold {
            filter     = "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\""
            duration   = "60s"
            comparison = "COMPARISON_GT"
            aggregations {
            alignment_period   = "60s"
            per_series_aligner = "ALIGN_RATE"
            }
        }

    }

    alert_strategy {
        auto_close = true
    }

    user_labels = {
        foo = "bar"
    }
}

#Step #4 - "tf apply": │ Error: project: required field is not set
#Step #4 - "tf apply": │   with module.partner-interconnect-primary.google_monitoring_alert_policy.alert_policy,
#Step #4 - "tf apply": │   on ../../modules/20-partner-interconnect/main.tf line 36, in resource "google_monitoring_alert_policy" "alert_policy":

disabled in prod for now until DNS is up in
https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/286

resource "google_monitoring_alert_policy" "alert_policy" {
  project = var.interconnect_router_project_id
  display_name = "router-bgp-session-level-1"
  combiner     = "OR"
  conditions {
    display_name = "test condition"
    condition_threshold {
      filter     = "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\""
      duration   = "60s"
      comparison = "COMPARISON_GT"
      aggregations {
        alignment_period   = "60s"
        per_series_aligner = "ALIGN_RATE"
      }
    }
  }

  user_labels = {
    foo = "bar"
  }
}

20240406: Closing issue during retrofit/rebase of this TEF V1 based/modified repo to TEF V4 standards
This issue may participate in the LZ refactor after rebase
Query on all issues related to the older V1 version via the tag
https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/labels/2024-pre-tef-v4


Delay render until store is rehydrated

@bertho-zero can we delay the render of the application until the store gets rehydrated?

This is the case, there is only the counter of people connected to the chat that changes because your socket is connected after the first rendering.
The store is created with the rehydrated data:
https://github.com/bertho-zero/react-redux-universal-hot-example/blob/be73b7321f28c69dc5bfa31975038781f832718b/src/client.js#L63-L76
Do you see something else wrong?

Yes, there is Server and Client Mismatch.
Example:
I have some data which I store in localForage consider an anonymous user and when the user comes back to the site again I wanted to sync users local state in the browser to the redux store for that we are using redux persist based on his local state some things need to be highlighted in the DOM but there is no server local state so when DOM renders on browser the redux store gets updated and then client gets the changes based on local state and React is giving me Server and Client DOM mismatch.

@p-rk  There are four possible solutions or none.

Dont use localforge but a cookie store.
If it is just a style change, do it directly in the dom through the ref method
Disable SSR
OR..

I created a new lib especially for this problem. @wicked_query/redux-persist-component
What this does is after the componentDidMount, it calls a action with the localstate. Then in your redux reducer you listen for this action and restore the state.
If needed i could make a fork with this implemented, i am just low on time.

@p-rk Can you try with https://github.com/bertho-zero/react-redux-universal-hot-example/pull/445 ?

@p-rk  I have the impression that what you are describing is a problem that can be solved like this: https://github.com/bertho-zero/react-redux-universal-hot-example/blob/338fe6a56dd36427fc1fec14dbc44eb533e34716/src/containers/App/App.js#L21-L30

@bertho-zero sorry for my delay. I was busy since last few days so didn't find to check your comments. But surely will try the cookie one and update here. Thanks

With cookies, this works awesome.
Thanks


New stablecoin launch playbook v1

Expected Behavior
This is a v1 doc that anyone external to cLabs could read and understand the scope of both on and off chain activities, and governance procedures that are needed to happen to launch a new fiat pegged stablecoin on Celo. The audience for this is community members of Celo that is somewhat familiar with governance. It is intended to enable the community to launch their own stablecoins and community coins in the future. It may be posted to Medium or Github for public consumption.
This should feed into a better v2 internal playbook with greater technical depth that we can build on as we launch the next stablecoin.
Current Behavior
Currently, cLabs deploys new currencies based on tribal knowledge and the community is informed of upcoming stablecoins through the CGP/CIP processes. The community is only involved through governance proceedings and 3rd party app integrations.

Are we ready to close this? the only sub item is already closed


update go to 1.17.7 - ci

Description of your changes

Fixes #
I have:

[ ] Read and followed Crossplane's contribution process.
[ ] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

/approve


Tracking issue for Mac M1/M2 support

torch.device("mps") might work out of the box so I will try it...

FYI - https://github.com/suno-ai/bark/pull/22 may help as well


(opt): Reduced size and cloning costs of blocks

This PR reduces the overall size of blocks and the cost of cloning one, which impacts the time it takes to instantiate a block (transforming a block definition to a usable SOM value), in hopes to improve performance.
This PR only affects the bytecode interpreter.

I've rebased this branch on the latest master, and re-ran the benchmarks on it to see if it is still viable as an optimization and the numbers I got on my machine seem to confirm it with a ~8% average performance improvement:

While I try to not have too many things running during the benchmarks, my machine is not the most quiet, which can lead to outliers that can influence the results, like we see with the Storage benchmarks where most of the results are an improvement but a few major outliers succeed to change the average to an unfavorable one.
I'll try to add some amount of statistical detection of outliers, similar to what hyperfine does.
But regardless, the results reported to ReBenchDB from the CI benchmarks confirm performance improvements across the board, including for the Storage benchmark.

This PR is ready to be merged, so let's just do it.
I am not sure why I left it open.


Allow disabling of "no gamepads detected"

I have a sixaxis (ps3) controller connected to my rpi. The controller powers off when the pi is powered off. Every time ES is started it complains about no controllers available, unless i turn on the controller while the pi is booting. Since the pi is powered by my TV, and is frequently turned off and on again, this is a real nuisance.
Please add config file option to disable this dialogue.

I don't know, but as you need at least ONE input device to use ES, the warning message is required if no input device is connected. Your workaround should be sufficient.

This is an issue for me too. I'm connecting wii remotes, so they won't be connected right when it lauches. I could wait to launch ES until one of them is connected, but I would prefer that it just skip that screen. I also configured a keyboard, which didn't do anything. Although that may be a different issue, because ES is never able to recognize my keyboard, I have to reconfigure it every time

Just kidding. I deleted my es_input and reconfigured the keyboard and now it works. Still, it is a bit of a weird workaround


New point generators

Implement the point generator functions used for the new logo that currently are just some code snippets. @mdienst

Closed with #175.


Scratchpad of tabris.js 2 is failing on 'Cannot find module polyfills'.

I am seeing issues post tabris.js beta 2 is shown in the scratchpad. Though i restored default, it doesn't help me. I even installed the latest tabris.js 2 app from Playstore..
Any suggestions

@natanraj Thanks for the heads up. We have fixed the scratchpad.

thanks. it works.

The below code was working earlier. But not any more. Here container is a cell
container.on('change:item', function(target, item){
       target.find('#ceremonySlot').first().text = item.when + '\n'+item.ceremony;
     });

it says target.find is not a function

this is on my scratchpad

@natanraj Your code needs to be adjusted to the changes to the event listener API in 2.0.0.beta2. Sorry for the inconvenience.
See https://github.com/eclipsesource/tabris-js/blob/master/doc/migration-guide.md

It is a big change in most of my code.

@natanraj The scratchpad represents the latest developmentstream of Tabris.js. You can still build and run your app against 1.x if you choose to.

@natanraj Again, sorry for the inconvenience. We didn't take this decision easy. However, this change allows us to provide more information on events, like type, timeStamp, additional parameters etc. without introducing further breakage, so we decided to make this change before 2.0.

I understand. May I know what was the earlier API reference for Video (or in general all widgets) ?

@natanraj https://tabrisjs.com/documentation/1.10/api/Video

I am seeing this issue now. polyfill.js error thrown. Sometime back it was going with tabris.js unable to be found..
Is any backend changes going on

@natanraj You've posted about this three times.  One post is sufficient.


Issue 1004

Prepopulate Resource Types and Specification Parameters Name Table #1004

- Update to support prepopulation with specific values
- Fixed issues in execute/add batch in the Prepopuation
- Prepopulate ParameterNames and ResourceTypes
- Refactor Main to remove random AddStatic values
- Update to Support Derby and DerbyFhirDatabase and DerbyBootstrapper

Tested with derby, postgres and db2