text:
Use FP32 in RoPE initialization

Fixes #883
This PR uses FP32 for initializing the cos and sin cache in RoPE. This resolves the precision issues when using a large base like 1000000 with FP16.
NOTE: This change is aligned with the RoPE definition in HuggingFace. However, as mentioned in #863, this may not align with the original definition of Meta's LLaMA. In the original implementation, FP32 is not only used for initialization, but is also used for calculating RoPE. The original implementation can be supported by slightly modifying the kernel.

Thanks! LGTM. Last implemement may change output everytime using same prompt. Generation of this version is stable for me.

@esmeetu Thanks for the confirmation!

I am getting RuntimeError: expected scalar type Half but found Float when passing cos_sin_cacheas fp32.

authors: WoosukKwon esmeetu fxmarty


text:
[Kernel] Turn off CUTLASS scaled_mm for Ada Lovelace

We haven't tuned the cutlass kernels for SM89 and performance is very bad.
The following benchmarks were run on an L40 with
    python benchmarks/benchmark_serving.py \
    --backend openai \
    --model neuralmagic/Meta-Llama-3-8B-Instruct-FP8 \
    --dataset-path ShareGPT_V3_unfiltered_cleaned_split.json \
    --request-rate 1 \
    --num-prompts 200 \
    --port 8000

Using the CUTLASS kernels:
============ Serving Benchmark Result ============
Successful requests:                     200
Benchmark duration (s):                  211.44
Total input tokens:                      42659
Total generated tokens:                  41049
Request throughput (req/s):              0.95
Input token throughput (tok/s):          201.76
Output token throughput (tok/s):         194.14
---------------Time to First Token----------------
Mean TTFT (ms):                          71.19
Median TTFT (ms):                        63.17
P99 TTFT (ms):                           159.21
-----Time per Output Token (excl. 1st token)------
Mean TPOT (ms):                          35.87
Median TPOT (ms):                        35.42
P99 TPOT (ms):                           46.35
---------------Inter-token Latency----------------
Mean ITL (ms):                           35.67
Median ITL (ms):                         33.55
P99 ITL (ms):                            102.87
==================================================

Using torch.scaled_mm:
============ Serving Benchmark Result ============
Successful requests:                     200
Benchmark duration (s):                  202.07
Total input tokens:                      42659
Total generated tokens:                  40851
Request throughput (req/s):              0.99
Input token throughput (tok/s):          211.11
Output token throughput (tok/s):         202.16
---------------Time to First Token----------------
Mean TTFT (ms):                          30.50
Median TTFT (ms):                        29.03
P99 TTFT (ms):                           60.73
-----Time per Output Token (excl. 1st token)------
Mean TPOT (ms):                          16.58
Median TPOT (ms):                        16.46
P99 TPOT (ms):                           19.92
---------------Inter-token Latency----------------
Mean ITL (ms):                           16.52
Median ITL (ms):                         16.09
P99 ITL (ms):                            33.85
==================================================

 PR Checklist (Click to Expand)
Thank you for your contribution to vLLM! Before submitting the pull request, please ensure the PR meets the following criteria. This helps vLLM maintain the code quality and improve the efficiency of the review process.
PR Title and Classification
Only specific types of PRs will be reviewed. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:

[Bugfix] for bug fixes.
[CI/Build] for build or continuous integration improvements.
[Doc] for documentation fixes and improvements.
[Model] for adding a new model or improving an existing model. Model name should appear in the title.
[Frontend] For changes on the vLLM frontend (e.g., OpenAI API server, LLM class, etc.)
[Kernel] for changes affecting CUDA kernels or other compute kernels.
[Core] for changes in the core vLLM logic (e.g., LLMEngine, AsyncLLMEngine, Scheduler, etc.)
[Hardware][Vendor] for hardware-specific changes. Vendor name should appear in the prefix (e.g., [Hardware][AMD]).
[Misc] for PRs that do not fit the above categories. Please use this sparingly.

Note: If the PR spans more than one category, please include all relevant prefixes.
Code Quality
The PR need to meet the following code quality standards:

We adhere to Google Python style guide and Google C++ style guide.
Pass all linter checks. Please use format.sh to format your code.
The code need to be well-documented to ensure future contributors can easily understand the code.
Include sufficient tests to ensure the project to stay correct and robust. This includes both unit tests and integration tests.
Please add documentation to docs/source/ if the PR modifies the user-facing behaviors of vLLM. It helps vLLM user understand and utilize the new features or changes.

Notes for Large Changes
Please keep the changes as concise as possible. For major architectural changes (>500 LOC excluding kernel/data/config/test), we would expect a GitHub issue (RFC) discussing the technical design and justification. Otherwise, we will tag it with rfc-required and might not go through the PR.
What to Expect for the Reviews
The goal of the vLLM team is to be a transparent reviewing machine. We would like to make the review process transparent and efficient and make sure no contributor feel confused or frustrated. However, the vLLM team is small, so we need to prioritize some PRs over others. Here is what you can expect from the review process:

 After the PR is submitted, the PR will be assigned to a reviewer. Every reviewer will pick up the PRs based on their expertise and availability.
 After the PR is assigned, the reviewer will provide status update every 2-3 days. If the PR is not reviewed within 7 days, please feel free to ping the reviewer or the vLLM team.
 After the review, the reviewer will put an  action-required label on the PR if there are changes required. The contributor should address the comments and ping the reviewer to re-review the PR.
 Please respond to all comments within a reasonable time frame. If a comment isn't clear or you disagree with a suggestion, feel free to ask for clarification or discuss the suggestion.

Thank You
 Finally, thank you for taking the time to read these guidelines and for your interest in contributing to vLLM. Your contributions make vLLM a great tool for everyone!

This should fix https://github.com/vllm-project/vllm/issues/6240
In a future PR we'll tune the CUTLASS SM89 FP8 kernels. We will need to do this anyway for the int8 case as well.

/ready

@tlrmchlsmth FYI - the lm-eval score for llama changed a bit for fp8 with this change. I just tweaked the values in the config.
Note: we are only running 250 samples for this model. I will re-run with 1000 samples so its a bit more stable

@robertgshaw2-neuralmagic thanks. Looks like we're failing on the GPTQ marlin tests as well. Are those flakey?

@robertgshaw2-neuralmagic thanks. Looks like we're failing on the GPTQ marlin tests as well. Are those flakey?

yes due to nondeteminism. will rerun

source: gharchive/pull-request

repo: vllm-project/vllm

license_type: permissive

license_source: github-api


text:
How to use habitat to build my own vlmaps dataset

According to your paper ”we use the Habitat simulator with the Matterport3D dataset for the evaluation of multi-object and spatial goal navigation tasks”. You obtained a large dataset using habitat。

I have already built the habitat simulation environment, but I can only run a simple demo based on the documentation. I would like to use other datasets from matterport3D to collect several datasets in Habitat and compare the results with real datasets.
In the paper, there is not much description on how to use the Habitat dataset to build one's own dataset. Can you provide some tips on this work?

I will release the full code soon! There you can find the code to create your own dataset.

source: gharchive/issue

authors: Jessy-Huang Tom-Huang

repo: vlmaps/vlmaps

license: MIT


text:
Conflict with docker env_file parsing

Hello,
I'm working on an app using docker, my environment variables are stored in an env_file and loaded in the environment by docker.
I have variable that can contains space, if I don't escape it with quotes phpdotenv throw an exception. Since the variable is ever loaded I don't understand why phpdotenv want to validate it.
For exemple if I use a database's password with a space, I will add something like that in my env_file
...
MYSQL_PASSWORD=user pass
...

The mysql container will create a user with this password but phpdotenv will throw an error because it expects to see quotes around user pass but if I add this quotes the mysql user will be created with quotes in is password.
Note that, phpdotenv don't read the env_file, it gets the variables from environment.

In fact an .env file was in the project and the error come from this one.
So the error was just a conflict between docker's parser and the phpdotenv one

Having the same problem. @lalop Did you find a solution?

Not really

Same issue happens to "dockerized" java command invocation upon passing external values to java cli via system property:
Dockerfile:
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]

Snippet from my docker-compose:
  ...
    environment:
      JAVA_OPTS: |
        -server
        -ea
        -Xms64m
        -Xmx128m
        -Dfoo.property=My Property
...

resulting with Error: Could not find or load main class Property

I think this is not a problem, docker is infrastructure level, and application level is another that should even be in separate directory (repositories) docker through the volumes you can link your application although this in another directory, well I think I.

I have the same problem, this seems to be a direct conflict between how Docker parses and phpdotenv parses.
From the Docker docs: There is no special handling of quotation marks. This means that they are part of the VAL.
Per phpdotenv: Unquoted values cannot contain whitespace
This means there is no way for me to use variable with spaces in it (without having separate env files). My Docker image requires an environment variable (with whitespace) in order to run. If I use quotes, Docker reads it incorrectly. If I don't use quotes my PHP app blows up.

authors: andrewkandzuba gueroverde lalop pgross41 timkelty

repo: vlucas/phpdotenv

license_source: bigquery


text:
Consider Apache license

I see you picked the MIT license. I think that is a fine license, but if we want to possibly migrate the work here to the Akka organization or even into the upstream Akka project it might be lower-friction if we already use Apache License 2.0 here.

OK. No problem.

Done.

authors: raboof vmencik

repo: vmencik/akka-graal-config


text:
Force string

When using autolink for user generated content the content may be nil. This returns an error:
Rinku.auto_link(nil) # => TypeError: wrong argument type nil (expected String)

Maybe the argument could be forced to string with to_s.

This could be getting dangerously close to garbage-in-garbage-out; it's preferable that you deal with nil in an application-specific manner rather than relying on Rinku to coerce it to the empty string for you.

Yeah... I don't know why i made this an issue 3 years ago...

Haha, I'm just cleaning out old issues :)

authors: harmdewit kivikakk

repo: vmg/rinku

license: isc


text:
I can't connect with Ldap

Hello,
I'm trying to connect with Ldap. I have this error :
error: cannot bind with sTasCfmgmt: unable to read LDAP response packet: read tcp 10.254.4.186:47404->10.211.196.85:636: read: connection reset by peer
I have tested my credentials in Ldap Browser. There worked fine.
That is my vars.yml file :
your git repo uri
git_repo_uri: ((repo))
git_repo_branch: master
your cf system domain
system_domain: ((system-domain))
user account with permission to create orgs/spaces
user_id: "cf-mgmt"
DEPRECATED - Use client_secret - password of user account with permission to create orgs/spaces
password: ""
client secret for uaa for user_id
client_secret: ((cf-mgmt-client-secret))
logging level for cf-mgmt commands in the pipeline
log_level: DEBUG
time interval to trigger update/delete jobs on
time-trigger: 50m
configuration directory
config_dir: config-repo
allow specifying ldap server in pipeline vs in ldap.yml only needed if using LDAP
ldap_server: ((ldap-server))
allow specifying ldap bind user in pipeline vs in ldap.yml only needed if using LDAP
ldap_user: sTasCfmgmt
password to bind to ldap - only needed if using LDAP
ldap_password: ((cfmgmt-pass))
Below the ldap.yml file :
enabled: true
ldapHost: xxx
ldapPort: 636
use_tls: true
bindDN: uid=xxx,ou=Utilisateurs
userSearchBase: ou=Utilisateurs,ou=xxxx,dc=mvt,dc=xxxx,dc=dev
userNameAttribute: sTasCfmgmt
userMailAttribute: xxx@xxx.com
userObjectClass: top,person,organizationalPerson,user
groupSearchBase: ou=Groupes,ou=xxx,dc=mvt,dc=xxx,dc=dev
groupAttribute: member
groupObjectClass: top, person
origin: ldap
insecure_skip_verify: true
ca_cert: |
-----BEGIN CERTIFICATE-----
MIIGHzCCBQegAwIBAgINAJLy5Acu55chLRp0MzANBgkqhkiG9w0BAQsFADBNMR0w
GwYDVQQKDBRNb3V2ZW1lbnQgRGVzamFyZGluczEsMCoGA1UEAwwjQUMgU3ViIFBy
XXXX
4vP5cxZ8Mh4pm6L/2VZvwSp9Svm9AovtNUXgX9vjkn4uvMtx+Xmg5OQIrLlaY5Pg
Fbzr8Iy38GmV0Bbon7C1S2kPLr+cuw3VPLko173IJ+D0GkkM+BUW2i7wa6rnrZ7P
t8MenXoNvSdV/cXbpGpKV0FOaB6sQyqlHDGpBOIbddDl/kCuK4rCEVHKCuObIX5P
4fxJepakk1bKi7emt26AApmntDtJXV86k83jATLGIBbDnDNJpOhw2nAxViNFSiCi
XXXX
-----END CERTIFICATE-----
useIDForSAMLUser: false
minTLSVersion: 1.0
maxTLSVersion: 1.3
Please, can U help me?
Thanks

It's now OK. This issue occurs with version < 1.0.50. I change the cf-mgmt version and it's now OK

repo: vmware-tanzu-labs/cf-mgmt


text:
Replace usage of klog to use klogv2 in antrea

Replace usage of klog in all components to bump up to v2
[1] https://github.com/kubernetes/kubernetes/pull/90183
[2] https://github.com/kubernetes/enhancements/pull/1617
[3] https://github.com/kubernetes/klog/pull/148/files

Hello, Can I take this issue?
If so, should third_party/proxy be updated to a version using v2?

Hello, Can I take this issue?
If so, should third_party/proxy be updated to a version using v2?

Absolutely!
Regarding the third_party packages, our aim is to remove that dependency by working on https://github.com/kubernetes/kubernetes/issues/92369, so we can skip that for now.

repo: vmware-tanzu/antrea


text:
[main] Update actions

Cron -knative-prow-robot
/cc we don't use Prow
/assign we don't use Prow
Produced by: knative-sandbox/knobots/actions/update-actions
Details:

Codecov Report

Merging #271 (b2b4626) into main (377a6cd) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #271   +/-   ##
=======================================
  Coverage   80.39%   80.39%
=======================================
  Files          20       20
  Lines         765      765
=======================================
  Hits          615      615
- Misses        135      136    +1
+ Partials       15       14    -1

Impacted Files
Coverage Δ

pkg/vsphere/adapter.go
62.79% <0.00%> (ø)

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 377a6cd...b2b4626. Read the comment docs.

authors: codecov-commenter knative-automation

repo: vmware-tanzu/sources-for-knative


text:
Update OVA to use photon 2.0

move ova infra to top-level directory from scripts subdirectory
Use dispatch image for building OVA based on photon 2.0
Update scripts to work properly on photon 2.0
Fix ovfenv binary to work properly in fusion
Fix minor bugs causing errors in OVA logs

photon 2.0-based OVA is ~30% smaller than the previous one
Tested on Fusion 11.0 and VMC

Thanks Zach!

repo: vmware/dispatch


text:
Update admin-cli.md

Update user guide (admin-cli.md) accordingly after the DEFAULT_TENANT, DEFAULT_PRIVILEGE, and DEFAULT_DATASTORE change are introduced.

update existing samples with the latest command output
add a section about new command "tenant update"
update the description of command "tenant access add" regarding the "default_datastore" management.

@pdhamdhere @kerneltime Please review it.

We need a small write up of the default tenant behavior here
It should explain that default tenant is created.. what is the behavior for default tenant for datastores, when and what should a VM that gets assigned to default tenant expect..

Will continue to review.

@kerneltime
Mark has a detailed design about default_tenant, default_privilege and default_datastore here. https://github.com/vmware/docker-volume-vsphere/issues/621
Please take a look. Should we just put a link to this document  in tenancy.md or we can write a short paragraph based on this document.

Address comments fro Ritesh. A small write up of the default tenant behavior is added.

authors: kerneltime lipingxue

repo: vmware/docker-volume-vsphere


text:
Tool tip was truncated

Change the resolution, still cannot see the full message.

@pengpengshui change the size to 'tooltip-lg'

authors: sigsbee steven-zou wy65701436

repo: vmware/harbor


text:
Cherry-pick: Fix mis-interpretation of severity in Clair

Currently "Critical" vulnerablity is treated as "Unknown" in Harbor.
This commit provides a quickfix that it will be interpret as "High".  In
future, we should consider introduce "Critical" and enable UI to handle
it to be more consistent with CVSS spec.

Coverage increased (+0.05%) to 64.481% when pulling dd819d5a72fc1f385d291f671c73f126861be4d2 on reasonerjt:release-1.5.0 into cf296d3c55522bcfaaf6ff316ae84c7603897d54 on vmware:release-1.5.0.

authors: coveralls reasonerjt


text:
Feature to see previous logs for crashed pods

It would be super helpful if we can see previous logs for pods in case they crash and restarts and will help in debugging a lot. It can be done with kubectl with --previous option

Octant will gain support to see pods that have been terminated. This will allow you to see previous logs.

You can now do this, added when we added support for seeing terminated pods in #274

authors: bryanl ld-singh wwitzel3

repo: vmware/octant


text:
IEvents.ReadPLog should use IAppStorage.Get when 1 log item is requested

Is your feature request related to a problem? Please describe.
ReadPLog always reads with IAppStorage.Read
Describe the solution you'd like
Due to performance reasons, I'd expect ReadPLog reads log with IAppStorage.Get when toReadCount is 1

complette

repo: voedger/voedger


text:
Apply fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.

For more information, click here.

This change is

Coverage remained the same at 94.01% when pulling 4100a618c2f95ec8978b491ce88e6b043c27661e on analysis-wjYmvo into ffa98a6e99446b456091925bca136a2c68aa5ea6 on master.

authors: coveralls voku

repo: voku/anti-xss

license: mit


text:
Change Icons in Gnome 3

Hey, at the moment the icons in the headerbar under Fedora 21 with Gnome-Shell look kind of odd.

Now I don't know if this is intended behaviour, but to me I would change the Icons to fit the Gnome-Shell.
Here is an example of gedit in Gnome:

This would mean to use symbolic icons when using GNOME Shell. Don't know if there is a nice way to to that.

I dont think there is one, unfortunately. Sadly it ruins the whole experience on Gnome, because the headerbar gets huge.

IIUC, MarkMyWords first supports ElementaryOS. I don’t know much about this platform, does it use an application’s menu ? If not, it’ll be quite easy to implement a switch based on the Gtk setting.
The GtkToolbar (Menubar.vala, but see my pull request to change that) support is for Ubuntu, right ? Does it need also an app-menu or not ?

elementary OS is Ubuntu with a different theme and a custom desktop
environment. It fully supports Gtk features so app menu is fine.
I trying to find a computer tontwsr your pull request and will merge asap
Thanks for the contribution!
On 7 Mar 2015 01:52, "A. B." notifications@github.com wrote:

IIUC, MarkMyWords first supports ElementaryOS. I don’t know much about
this platform, does it use an application’s menu ? If not, it’ll be quite
easy to implement a switch based on the Gtk setting.
The GtkToolbar (Menubar.vala, but see my pull request to change that)
support is for Ubuntu, right ? Does it need also an app-menu or not ?
—
Reply to this email directly or view it on GitHub
https://github.com/voldyman/MarkMyWords/issues/35#issuecomment-77628822.

Not fixed in Version 0.6

authors: Algram Obsidien emersion voldyman

repo: voldyman/MarkMyWords


text:
benchmarks.json: tweak dataset-serialize invocation

I hope that this passes CI (i.e., I hope that the automatic check does not require --iterations=3 --drop-caches=true.

E         -     "command": "dataset-serialize ALL --iterations=6 --all=true",
E         ?                                                    ^
E         +     "command": "dataset-serialize ALL --iterations=3 --all=true --drop-caches=true",
E         ?                                                    ^           +++++++++++++++++++
E               "flags": {
E                 "language": "Pyth

I find this rather inflexible, I think depending on the benchmark specifics we should be able to tweak things. What do we think?

Seems like iterations can be set as class attribute, and it seems like --drop-caches=true is hard-coded: https://github.com/voltrondata-labs/benchmarks/blob/16330feaeaa9d498f0fa08794045270798e118c1/benchmarks/_benchmark.py#L338

Pull Request Test Coverage Report for Build 3739321263

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.007%) to 87.222%

Totals

Change from base Build 3706037481:
0.007%

Covered Lines:
1488

Relevant Lines:
1706

💛  - Coveralls

authors: coveralls jgehrcke

repo: voltrondata-labs/benchmarks


text:
Add Contributors modal takes on full black background (vs transparent like other modals)

Not a P0
The Add Contributors modal takes on full black background (vs transparent like other modals). The modal bg should use the same visual pattern as all other modals (black with transparency).

@shaunop
Ready to review

authors: sbvhev shaunop

repo: voteagora/op-atlas


text:
404 error when downloading OpenImages dataset using fiftyOne v0.10.0

I am trying to download OpenImages dataset without much success. I have been getting an error as shown below when executing the following statement. I am using version 0.10.0 on Python 3.6.7 64-bot on macOS version 10.15.7
dataset =fiftyone.zoo.load_zoo_dataset(
    "open-images-v6", split="validation", max_samples=50)

Error Output:
Downloading split 'validation' to '/Users/srikanth.nadella/fiftyone/open-images-v6/validation'
Downloading validation samples
   0% ||------------------|  0/50 [528.7ms elapsed, ? remaining, ? samples/s]
---------------------------------------------------------------------------
RemoteTraceback                           Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
  File "/Users/srikanth.nadella/anaconda3/envs/hfc/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/Users/srikanth.nadella/anaconda3/envs/hfc/lib/python3.6/site-packages/fiftyone/utils/openimages.py", line 1577, in _do_s3_download
    s3_client.download_file(_BUCKET_NAME, filepath_download, filepath)
  File "/Users/srikanth.nadella/.local/lib/python3.6/site-packages/boto3/s3/inject.py", line 172, in download_file
    extra_args=ExtraArgs, callback=Callback)
  File "/Users/srikanth.nadella/.local/lib/python3.6/site-packages/boto3/s3/transfer.py", line 307, in download_file
    future.result()
  File "/Users/srikanth.nadella/anaconda3/envs/hfc/lib/python3.6/site-packages/s3transfer/futures.py", line 106, in result
    return self._coordinator.result()
  File "/Users/srikanth.nadella/anaconda3/envs/hfc/lib/python3.6/site-packages/s3transfer/futures.py", line 265, in result
    raise self._exception
  File "/Users/srikanth.nadella/anaconda3/envs/hfc/lib/python3.6/site-packages/s3transfer/tasks.py", line 255, in _main
    self._submit(transfer_future=transfer_future, **kwargs)
  File "/Users/srikanth.nadella/anaconda3/envs/hfc/lib/python3.6/site-packages/s3transfer/download.py", line 345, in _submit
    **transfer_future.meta.call_args.extra_args
  File "/Users/srikanth.nadella/.local/lib/python3.6/site-packages/botocore/client.py", line 357, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/Users/srikanth.nadella/.local/lib/python3.6/site-packages/botocore/client.py", line 661, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
"""

The above exception was the direct cause of the following exception:

ClientError                               Traceback (most recent call last)
<ipython-input-44-3f5a506fd2f7> in <module>
      1 dataset = foz.load_zoo_dataset(
----> 2     "open-images-v6", split="validation", max_samples=50
      3 )

~/anaconda3/envs/hfc/lib/python3.6/site-packages/fiftyone/zoo/datasets/__init__.py in load_zoo_dataset(name, split, splits, dataset_name, dataset_dir, download_if_necessary, drop_existing_dataset, overwrite, cleanup, **kwargs)
    193             overwrite=overwrite,
    194             cleanup=cleanup,
--> 195             **download_kwargs
    196         )
    197         zoo_dataset = info.get_zoo_dataset()

~/anaconda3/envs/hfc/lib/python3.6/site-packages/fiftyone/zoo/datasets/__init__.py in download_zoo_dataset(name, split, splits, dataset_dir, overwrite, cleanup, **kwargs)
    118         splits=splits,
    119         overwrite=overwrite,
--> 120         cleanup=cleanup,
    121     )
    122

~/anaconda3/envs/hfc/lib/python3.6/site-packages/fiftyone/zoo/datasets/__init__.py in download_and_prepare(self, dataset_dir, split, splits, overwrite, cleanup)
    949                     num_samples,
    950                     classes,
--> 951                 ) = self._download_and_prepare(split_dir, scratch_dir, split)
    952
    953                 # Add split to ZooDatasetInfo

~/anaconda3/envs/hfc/lib/python3.6/site-packages/fiftyone/zoo/datasets/base.py in _download_and_prepare(self, dataset_dir, scratch_dir, split)
    994             shuffle=self.shuffle,
    995             seed=self.seed,
--> 996             max_samples=self.max_samples,
    997         )
    998         dataset_type = fot.OpenImagesV6Dataset()

~/anaconda3/envs/hfc/lib/python3.6/site-packages/fiftyone/utils/openimages.py in download_open_images_split(dataset_dir, split, label_types, classes, attrs, image_ids, image_ids_file, num_workers, version, shuffle, seed, max_samples)
    534         max_samples,
    535         shuffle,
--> 536         num_workers,
    537     )
    538

~/anaconda3/envs/hfc/lib/python3.6/site-packages/fiftyone/utils/openimages.py in _load_open_images_split(label_types, guarantee_all_types, split_image_ids, downloaded_ids, classes_map, attrs_map, oi_classes, oi_attrs, seg_classes, dataset_dir, split, classes, max_samples, shuffle, num_workers)
   1272         return 0
   1273
-> 1274     _download_specific_images(valid_ids, split, dataset_dir, num_workers)
   1275
   1276     if "segmentations" in label_types:

~/anaconda3/envs/hfc/lib/python3.6/site-packages/fiftyone/utils/openimages.py in _download_specific_images(valid_ids, split, dataset_dir, num_workers, ext)
   1561     with fou.ProgressBar(total=len(inputs)) as pb:
   1562         with multiprocessing.Pool(num_workers, _initialize_worker) as pool:
-> 1563             for _ in pool.imap_unordered(_do_s3_download, inputs):
   1564                 pb.update()
   1565

~/anaconda3/envs/hfc/lib/python3.6/multiprocessing/pool.py in next(self, timeout)
    759         if success:
    760             return value
--> 761         raise value
    762
    763     __next__ = next                    # XXX

ClientError: An error occurred (404) when calling the HeadObject operation: Not Found

I realized that I had the wrong AWS account configured in my awscli. Changing to the correct account fixed this issue.


text:
Persistent Red colors

I am working with images containing a lot of grass and trees. Everything is green.
Visualizing the bounding boxes in green is not so practical.
I am looking for a way to persistently assign a color to those annotations (especially, I only have one class) without the need of launching a new view of manually changing the settings.
Is there something like this available in fiftyone?

Hi @nasserdr does this help you? You can assign custom colors to the dataset's app config that will be loaded every time.
https://docs.voxel51.com/user_guide/using_datasets.html#custom-color-scheme

Thanks, so it's Save as default' in the color settings.
Solved :)

authors: nasserdr swheaton


text:
healthz endpoint

I am attempting to deploy puppetboard into our kubernetes infrastructure, however I am unable to reliably define a healthprobe using the service.
Would it be possible to present a /healthz endpoint on the application which returns a simple 200 OK response when the application is operational?

After forking the project to attempt to add this myself, I've just found that this can be done with the /status endpoint.
Cheers

repo: voxpupuli/puppetboard


text:
Manage any other exception for get_or_abort

Log any other exception that can be raised from execution of a function and raised 500

Coverage increased (+0.3%) to 82.639% when pulling 4cd4d1a84dc4dfa431ed8869d2a462d77e2bccfd on qkponton:patch-1 into 3ea5de9f91742ce5c748ab5d8a7cc8b9ec3f408c on voxpupuli:master.

Coverage increased (+0.3%) to 82.639% when pulling 4cd4d1a84dc4dfa431ed8869d2a462d77e2bccfd on qkponton:patch-1 into 3ea5de9f91742ce5c748ab5d8a7cc8b9ec3f408c on voxpupuli:master.

thanks for the PR!

authors: bastelfreak coveralls qkponton


text:
11/3AM レポート

アプローチ
hakaruをAutoScalingする
想定インパクト
現状ELBに3台のインスタンスが紐付いている。
その状態で200: 75,000req, 502: 88,000req, 504: 20,000reqで58%が落ちている。
インスタンス数を2.5倍にすれば捌き切れるのではないか？
モニタリング項目

平均秒間リクエスト数
トータルリクエスト数
ターゲット接続エラーグラフ

結果/考察
kakeruから送られるはずのリクエスト数と実際に計測されたレポートの結果に乖離が見られた。
本来、設定前と同じく約20万リクエストを想定していたが、設定後では3.5万リクエストしかこなかった。
ELBの接続数も増えていない。
現状わかる範囲ではkakeruにも問題がなさそうな範囲である。
原因が今の所わからないが、kakeruやkakeruからELBまでの導線あたりに何か原因があるのかもしれないと考えている。
もしくはAutoScalingの設定に何か原因があるかもしれない。
昨日と同じ状態でSenario2を実行した結果

AutoScalingを追加した後、Senario2を実行した結果

Kakeruのモニタリング

そういえばこの問題はSCENARIO=2をSENARIO=2にタイポしていただけでしたー。


text:
Class for database access

Hello.
I want to create class, which would handle database connection and have a public atribute ResultSet.
Something like this:
#include "ocilib.hpp"
#include <string>
#include <iostream>

using namespace ocilib;

class Dao
{
private:

	Connection* con;
	Statement* st;

public:
	Resultset* rs;
	Dao(std::string sqlQuery);
	~Dao();

};

and realisation of class:
#include "Dao.h"

Dao::Dao(std::string sql_query)
{
	try
	{
		Environment::Initialize();
		con = new Connection("rfinfot1", "broker", "broker");
		st = new Statement(*con);
		st->Execute(sql_query.c_str());
		*rs = st->GetResultset();
	}
	catch (std::exception& ex)
	{
		std::cout << ex.what() << std::endl;
	}
}

Dao::~Dao()
{
	Environment::Cleanup();
}

But I got exception when I do '*rs = st->GetResultset();'.
I think that there is a problem in my architecture solution. Can you help me with right architecture for my goal?

Hi,

Environment::initialize() and Environment::Finalize() should be called only once per application life-time
Resulsets are owned by Statements and deallocated every time their origin statement are re-prepared
You cannot "store" a "smart reference" on a resultset (which what a ocilib::Resultset object is) but you can store a "smart reference" on a statement if you do keep trace of its connection (as statements are children objects of connections)

ocilib C++ objects are "smart reference" on handles from its C API.  You don't need to allocate them using new. Instead you can just assign them.
What you can do is:
#include "ocilib.hpp"
#include <string>
#include <iostream>

using namespace ocilib;

class Dao
{
private:

	Connection con;
	Statement st;

public:
	Dao(std::string sqlQuery);
        Resultset Result();
	~Dao();
};

and realisation of class:
#include "Dao.h"

static std::atomic<bool> ocilibInitialized;

Dao::Dao(std::string sql_query)
{
	try
	{
		if (!ocilibInitialized)
                {
                     // quick and dirty code as there is possible race condition on the guard
                     ocilibInitialized = true;
                     Environment::Initialize();
                }

		con = connection("rfinfot1", "broker", "broker");
		st = Statement(con);
		s.Execute(sql_query);
	}
	catch (std::exception& ex)
	{
		std::cout << ex.what() << std::endl;
	}
}

Resultset Dao::Result()
{
    return st.GetResultset();
}

Dao::~Dao()
{
	if (ocilibInitialized)
        {
             Environment::Cleanup();
        }
}
`

Regards,

Vincent

Thank you!

authors: lapleski vrogier

repo: vrogier/ocilib


text:
Fix external and internal links

Fixes the remaining broken links found in the README file.

@vsapronov any comments on this?


text:
Add support for Ink

Fixes #1241
Changes proposed:

[x] Add
[ ] Delete
[ ] Fix
[ ] Prepare

LGTM! We have to review the svg and eventually accommodate it to our svg conventions but don't worry, I'll do it. Thank you again for this! 👍

authors: admvx robertohuertasm

repo: vscode-icons/vscode-icons


text:
Update file_type_cpp.svg

Fixes #IssueNumber
Changes proposed:

[ ] Add
[ ] Delete
[ ] Fix
[ ] Prepare

I am new to github and modified it by accident, sorry for it..
------------------ Original message ------------------
From: "Roberto Huertas";
Sendtime: Monday, Aug 16, 2021 10:38 PM
To: "vscode-icons/vscode-icons";
Cc: @.***>; "Author";
Subject: Re: [vscode-icons/vscode-icons] Update file_type_cpp.svg (#2824)
@robertohuertasm requested changes on this pull request.
What is the issue this is fixing? It seems it got worst.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

No problem! 👍🏻  Closing this then!

authors: little-procyon robertohuertasm


text:
Feat store rules tests

Unit Tests for EditRuleController. 86% coverage. The part missing triggers an alert that we can't close programatically, and it blocks the rest of the test, so I didn't test it.

 (4) [Story] Armazenar a regra criada/editada na GUI numa lista de Regras [4]


text:
Add BedgeNotificHub

Adding BedgeNotificHub
Project URL

https://github.com/jogendra/BedgeNotificHub
Category

UI/Badge
Description

Make any UIView a full-fledged animated notification center. It is a way to quickly add a notification badge icon to a UIView.
Why it should be included to awesome-ios (mandatory)
It is an open source cocoapods that can serve the purpose of many developers.
Checklist

[ ] Has 50 Github stargazers or more
[x] Only one project/change is in this pull request
[x] Isn't an archived project
[ ] Has more than one contributor
[ ] Has unit tests, integration tests or UI tests
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 4 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Warning

:warning:
Found 13 link issues, a project collaborator will take care of these, thanks :)

Link issues by awesome_bot

Line
Status
Link

206
403
https://www.udemy.com/arkit-beginner-to-professional/?couponCode=CREATORS

228
301
https://answers.io/ redirects tohttps://get.fabric.io

460
301
https://github.com/hyperoslo/Hue redirects tohttps://github.com/zenangst/Hue

613
404
https://github.com/mentalfaculty/impeller

932
301
https://github.com/schibsted/layout redirects tohttps://github.com/nicklockwood/layout

1333
404
https://github.com/SvenTiigi/PerfectAPIClient

1509
301
https://github.com/RC7770/MFCard redirects tohttps://github.com/MobileFirstInc/MFCard

1623
Error
https://www.packetzoom.com/  Connection refused - connect(2) for "www.packetzoom.com" port 443

1654
301
https://github.com/SlackKit/SlackKit redirects tohttps://github.com/pvzig/SlackKit

1666
404
https://github.com/SvenTiigi/PerfectSlackAPIClient

1892
301
https://github.com/KrauseFx/trainer redirects tohttps://github.com/xcpretty/trainer

3208
301
https://www.shinobicontrols.com/blog/ios-10-day-by-day-index redirects tohttps://www.shinobicontrols.com/blog/ios-10-day-by-day-index/

3251
301
http://principleformac.com redirects tohttps://principleformac.com/

  Generated by :no_entry_sign: Danger

@jogendra We cannot merge your PR yet until you fill all of contribution guideline requirements. Feel free to open PR once it is ready.
Please check our CONTRIBUTION GUIDELINES

authors: danger-awesome-ios jogendra vsouza

repo: vsouza/awesome-ios


text:
Emails are incorrectly recognized as URL.

$urlHighlight->getUrls('sc@icloud.com');
Will the email be used as a url, if avoided?

Hello @DylanBack 👋 Thank you for your interest in Url highlight library.
I'm not sure if I get your issue correctly. There is a way to disable email matching. It cold be done by providing Validator instance with 4th argument (matchEmails) as false. See corresponding validator documentation section for details.
Here is a small example with disabled email matching:
<?php

require __DIR__ . '/vendor/autoload.php';

use VStelmakh\UrlHighlight\UrlHighlight;
use VStelmakh\UrlHighlight\Validator\Validator;

$validator = new Validator(true, [], [], false);
$urlHighlight = new UrlHighlight($validator);
$result = $urlHighlight->getUrls('Match example.com but not nsc@icloud.com');

var_dump($result);

// Output:
//
// array(1) {
//  [0]=>
//  string(11) "example.com"
// }

authors: DylanBack vstelmakh

repo: vstelmakh/url-highlight


text:
Error when using npm run dev after installed

// package.json
"devDependencies": {
"@nuxt/content": "^2.12.1",
"@nuxt/devtools": "latest",
"@nuxt/ui": "^2.13.0",
"@nuxtjs/i18n": "^8.3.1",
"@nuxtjs/supabase": "^1.2.1",
"nuxt": "^3.10.1",
"nuxt-disqus": "^1.0.1"
},
"dependencies": {
"@vue-email/nuxt": "^0.8.19",
"@vueuse/core": "^10.9.0",
"resend": "^3.2.0",
"yup": "^1.4.0"
}
ERROR:
No driver set for storage mount point "50".
nitro 15:31:12
WARN  No driver set for storage mount point "100".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "200".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "300".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "400".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "500".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "600".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "700".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "800".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "900".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "950".                                                                                nitro 15:31:12
WARN  No driver set for storage mount point "DEFAULT".                                                                                nitro 15:31:12
ERROR  [uncaughtException] callback is not a function                                                                                15:31:12
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

same issue
it looks like I cannot use '@nuxt/ui' and '@vue-email/nuxt' together :(

@RealBuddy - that's very annoying if that's correct. How did you come to this conclusion?

Just try to use both modules in one nuxt project

I have also tried to use both modules and am getting a myriad of errors. Hope this is an easy fix.

same issue it looks like I cannot use '@nuxt/ui' and '@vue-email/nuxt' together :(

I am getting the exact same issue when I use '@nuxt/ui' and '@vue-email/nuxt' together

I have also tried to use both modules and am getting a myriad of errors. Hope this is an easy fix.

There is another issue raised about this #1773

I found a workaround for that. You need to change order of nuxt modules, and move Vue-email/nuxt before Nuxt/ui. It fixes this issue for me.

I found a workaround for that. You need to change order of nuxt modules, and move Vue-email/nuxt before Nuxt/ui. It fixes this issue for me.

I have tried your solution and it seems to work when updating to @nuxt/ui '^2.16.0'. The problem I found was the previous version.
My modules now look like this and work as expected, thanks for your input.
modules: [         '@vue-email/nuxt',         '@nuxt/ui',         '@nuxt/image',         '@pinia/nuxt',         '@pinia-plugin-persistedstate/nuxt',         '@nuxtjs/supabase',         '@unlok-co/nuxt-stripe',         '@nuxtjs/turnstile',         'nuxt-resend',         'nuxt-rating'     ]

we just merged a new project rewrite, please do check the docs and the updated logic https://vuemail.net/

authors: Flowko RealBuddy admiralsemu brunobrasilweb cull2203 kstraszewski

repo: vue-email/nuxt


text:
本地跑起来了， 但用admin登录的时候，progress bar走了很久，超过2分钟，才进入里面

暂时也没看代码，这是我clone之后遇到的第一个问题

测试了很多，为啥点击很多，反应很慢？是什么原因么？

考虑可能是请求的接口服务器请求不到，可以看浏览器的 console 网络选项卡的情况

@sendya 谢谢，我再研究一下哈。

进不去首页 太卡了不能用啊 Console一堆错误

进不去首页 好卡啊~ Console有堆错误

进不去首页 好卡啊~ Console有堆错误

有问题就开新 issue 按照格式提供问题，不要再已经关闭的 issue 内体温

authors: medmin mingyouzhu sendya

repo: vueComponent/ant-design-vue-pro


text:
[Question] PageContainer 能增加 back 返回按钮

🧐 问题描述 Problem Description
PageContainer 问下能否增加back按钮的配置
目前看的源码好像 ProPageHeader 这个中间的组件props 不接收 不传递 back
导致底层的 APageHeader 的返回箭头不展示
如果是我看错了，问下如果正确使用 返回箭头

我也遇到这问题了，可以暂时用patch-package打个补丁过度下

repo: vueComponent/pro-components


text:
Disabled for options is not possible

Hi,
need to disable a few options of a filteredList and still need them to be listed in the dropdown (like crossed out).
I tried with:
[ { "value": "1", "label": "de-AT", "disabled": false }, { "value": "2", "label": "de-CH", "disabled": false }, { "value": "3, "label": "en-GB", "disabled": false }, { "value": "4", "label": "en-CA", "disabled": false }, { "value": "5", "label": "de-DE", "disabled": true }, { "value": "6", "label": "en-US", "disabled": false } ]

as options, but this doesn't really do anything.
Is there a possibility to achieve this or is your multiselect designed to display only choosable options?

This will be available in the next minor release. Hopefully in a couple of days.

Now this should work in latest release 1.2.0.

authors: SilberMa adamberecz

repo: vueform/multiselect


text:
部署问题

@dingyiming 最近已经两次错误的把 cn.vuejs.org force push 到 vuejs.org 的主仓库了，小心一点啊

真是抱歉，我查看下在什么时候做了这么糟糕的事情

我是把推送了新分支到 vuejs.org 吗？ 我这边查不到记录，是分支已经删除了吗？对不起，给大家添麻烦了。

覆盖了 vuejs.org 的 master...
看看是不是 git remote origin 配错了

从 github 的记录上看到有提交次数记录，本地有个三个源，可能是没注意的时候，推错了源，我把本地的vuejs.org源删除，一般主要是用于 获取 vuejs.org 的更新，未曾想出乎意料地反推回去了，真是抱歉，后面还得多小心点。


text:
Type for T | Ref

What problem does this feature solve?
This is a small quality-of-life improvement.
Many libs and composables will accept potentially reactive inputs.
They will typically read those input by doing unref(x), which works on both plain values and refs.
So the following typing might become a common pattern:
// Typing
function useLength(input: string | Ref<string>): Ref<number>;

// Example uses
let s1 = "abc";
let l1 = useLength(s1);
let s2 = ref("123");
let l2 = useLength(s2);

What does the proposed API look like?
I think it would be convenient and set a common standard for everyone if Vue exported the following type (name up for bikeshedding):
export type RValue<T> = T | Ref<T>

Of course, everybody is free to declare such a type in userland.
I think it might be convenient to import it from "vue", which is an existing import in the source files; and it would give a common name to such inputs that every lib can use (familiarity for users).
It will also encourage library authors to accept RValue<T> inputs, rather than say, Ref<T>.

That's something I do quite a lot, as you said it can be done quite easily on userland.
My only concern here is the naming RValue, I don't think RValue is good enough name to be exported from the library.

I personally call them MaybeRef<T> in my codebases.

A MaybeRef should accept [...]: ref(1), computed(() => 1), readonly(ref(1)).

Plus plain T of course and you should be able to call unref on it.

If we agree on MaybeRef being readonly then it should be added to the above requirements. I'm not sure if it's a bug in vue typings or limitations of TS, but you can pass a readonly ref (or computed ref) to a function that accepts writable refs:
function t (x: Ref<number>) {
  x.value = 1;
}

t(computed(() => 1)); // should not be allowed

Evan has opened a PR that, among other things, adds MaybeRef: #7997.

@LinusBorg I guess we can close this now as  this is implemented: https://vuejs.org/api/utility-types.html#mayberef

authors: LinusBorg jacekkarczmarczyk jd-solanki jods4 pikax skirtles-code

repo: vuejs/core


text:
vuex on nuxt disappears on page reload

Version
6.0.0-beta.21
Browser and OS info
windows 10, chrome 96
Steps to reproduce
load vuex store data via an api
view in devtools
reload page
What is expected?
vuex should display the newly loaded state
What is actually happening?
an error pops saying vuex 2 inspector not found

Might be a duplicate of #1475?

This might be fixed.

@glen-84 it is not fixed

repo: vuejs/devtools


text:
How to define default slot?

Hello, Now I want to define a slot and default slot, but I didn't find any good way. please help me to resolve this.
💻 Sample code
renderSlot(slots, 'default')

// this is what I want to define the default slot
<Button type="primary" htmlType="submit">登录</Button>

at first .you can try this way to define default slot
//define

const Button = defineComponent({
  props: {
    round: Boolean,
    color: String,
    size: {
      type: String,
      default: "normal",
      validator: enums(["mini", "small", "normal", "large"])
    }
  },
  emits: ["click"],
  setup(props, { attrs, slots, emit }) {
    const handleClick = event => emit("click", event);
    return () => (
      <>

          {slots && slots.default()}

      </>
    );
  }
});

//You can use this in other files

<Button >I am button</Button>

// define more slots

const MoreSlot = defineComponent({
  setup(props, { attrs, slots, emit }) {
    return () => (
      <>

 {slots && slots.default()}

{slots && `youer slots name`() }

      </>
    );
  }
});

at first .you can try this way to define default slot
//define

const Button = defineComponent({
  props: {
    round: Boolean,
    color: String,
    size: {
      type: String,
      default: "normal",
      validator: enums(["mini", "small", "normal", "large"])
    }
  },
  emits: ["click"],
  setup(props, { attrs, slots, emit }) {
    const handleClick = event => emit("click", event);
    return () => (
      <>

          {slots && slots.default()}

      </>
    );
  }
});

//You can use this in other files

<Button >I am button</Button>

// define more slots
const MoreSlot = defineComponent({
  setup(props, { attrs, slots, emit }) {
    return () => (
      <>

 {slots && slots.default()}

{slots && `youer slots name`() }

      </>
    );
  }
});

@linkscope

sorry, I mean that I don't konw how to define fallback content
We might want the text “Submit” to be rendered inside the  most of the time.
<button type="submit">
  <slot>Submit</slot>
</button>

how to do this?

Sorry, I don't know you mean, But may you can define a default context in your components  and  use props to control the default
context show or hide. @linkscope

Sorry, I don't know you mean, But you can define a default context in your components and use props to control the default
context show or hide. @linkscope

后备内容，Vue官方称其为fallback content，即如果不使用该插槽会默认显示的内容，我现在不清楚如何设置

后备内容，Vue官方称其为fallback content，即如果不使用该插槽会默认显示的内容，我现在不清楚如何设置
<slot>如果不使用该插槽，默认展示这里的数据</slot>

好吧，我觉得你想表达的是不是这样？
import { defineComponent } from "vue";

const Component = defineComponent({
  setup(props, { slots }) {
    const safeSlots = !!slots?.default;
    const defaultMessage = () => 默认信息;

    return () =>
{safeSlots ? slots.default() : "你想要的默认信息或者你写个渲染函数放这里"}
;
  }
});

后备内容，Vue官方称其为fallback content，即如果不使用该插槽会默认显示的内容，我现在不清楚如何设置
<slot>如果不使用该插槽，默认展示这里的数据</slot>

好吧，我觉得你想表达的是不是这样？
import { defineComponent } from "vue";

const Component = defineComponent({
  setup(props, { slots }) {
    const safeSlots = !!slots?.default;
    const defaultMessage = () => 默认信息;

    return () =>
{safeSlots ? slots.default() : "你想要的默认信息或者你写个渲染函数放这里"}
;
  }
});

@linkscope

OK, 感谢回答，但是否有更优雅的解法？因为之前一直在使用vue提供的renderSlot函数，查看源码后也发现该函数的最后一个参数是fallback content，但查看官网后没发现该函数的具体使用方法

OK, 我已经解决了该问题，最后使用h函数成功渲染出了后备内容，感谢您的回答
            {renderSlot(slots, 'default', {}, () => [
              h(
                Button,
                {
                  loading: store.state.isLoading,
                  type: 'primary',
                  htmlType: 'submit',
                  shape: 'round',
                  size: 'large'
                },
                '完成'
              )
            ])}

OK, 我已经解决了该问题，最后使用h函数成功渲染出了后备内容，感谢您的回答
            {renderSlot(slots, 'default', {}, () => [
              h(
                Button,
                {
                  loading: store.state.isLoading,
                  type: 'primary',
                  htmlType: 'submit',
                  shape: 'round',
                  size: 'large'
                },
                '完成'
              )
            ])}

也可以直接使用jsx的写法：

            {renderSlot(slots, 'default', {}, () => [<button type='primary' html-type='submit' shape='round'>完成</button>])}

authors: Iongtao XeryYue linkscope

repo: vuejs/jsx-next


text:
when to use webpack4?

now`s webpack version is 3.6

the answer lose question

authors: jcto leeseean

repo: vuejs/vue-cli


text:
npm run serve can't serve my imported js file because of incorrect mime type (text/html instead of text/javascript)

Version
3.2.1
Environment info

  System:
    OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
    CPU: (2) x64 Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
  Binaries:
    Node: 8.10.0 - /usr/bin/node
    Yarn: Not Found
    npm: 6.4.1 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    @vue/babel-preset-app:  3.2.0
    @vue/cli-overlay:  3.2.0
    @vue/cli-plugin-babel: ^3.2.0 => 3.2.0
    @vue/cli-plugin-unit-jest: ^3.2.0 => 3.2.0
    @vue/cli-service: ^3.2.0 => 3.2.0
    @vue/cli-shared-utils:  3.2.0
    @vue/component-compiler-utils:  2.3.0
    @vue/preload-webpack-plugin:  1.1.0
    @vue/test-utils: ^1.0.0-beta.27 => 1.0.0-beta.27
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    babel-plugin-transform-vue-jsx:  4.0.1
    jest-serializer-vue:  2.0.2
    vue: ^2.5.20 => 2.5.20
    vue-hot-reload-api:  2.3.1
    vue-jest:  3.0.1
    vue-loader:  15.4.2
    vue-router: ^3.0.2 => 3.0.2
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.5.20 => 2.5.20
    vue-template-es2015-compiler:  1.6.0
    vuex: ^3.0.1 => 3.0.1
  npmGlobalPackages:
    @vue/cli: 3.2.1

Steps to reproduce
Create a new vue cli project.
Install ionic core: npm i @ionic/core
Import into main.js: import '@ionic/core/dist/ionic.js'
npm run serve
Get "Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec." error in console
What is expected?
Work without mime error
What is actually happening?
Mime type error

Some people say that it could be serve server error.

This error usually appears because a requested js file was not returned by the server, and it served an html (error) page instead.
Please provide a repository with an actual Dunn able reproduction of the issue.
I don't think the steps you provided will be sufficient to reproduce you're problem.

Thank you for help. I found a solution - maybe this informatin will help subsequent people - to add Ionic core to a vue cli project, you have to use new @ionic/vue scripts.

authors: LinusBorg manveloff


text:
Unable to produce large library bundle that can be consumed by other projects

Version
2.6.0
Node and OS info
Node 10.13.0 / latest npm / Windows 10
Environment info
System:
    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
  Binaries:
    Node: 10.13.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 86.0.4240.111
    Edge: Spartan (44.18362.449.0)
  npmPackages:
    @ionic/vue: 0.0.9 => 0.0.9
    @ionic/vue-router: ^5.4.0 => 5.4.1
    @vue/babel-helper-vue-jsx-merge-props:  1.2.1
    @vue/babel-helper-vue-transform-on:  1.0.0-rc.2
    @vue/babel-plugin-jsx:  1.0.0-rc.3
    @vue/babel-plugin-transform-vue-jsx:  1.2.1
    @vue/babel-preset-app:  4.5.8
    @vue/babel-preset-jsx:  1.2.4
    @vue/babel-sugar-composition-api-inject-h:  1.2.1
    @vue/babel-sugar-composition-api-render-instance:  1.2.4
    @vue/babel-sugar-functional-vue:  1.2.2
    @vue/babel-sugar-inject-h:  1.2.2
    @vue/babel-sugar-v-model:  1.2.3
    @vue/babel-sugar-v-on:  1.2.3
    @vue/cli-overlay:  4.5.8
    @vue/cli-plugin-babel: ^4.5.6 => 4.5.8
    @vue/cli-plugin-e2e-cypress: ~4.5.0 => 4.5.8
    @vue/cli-plugin-e2e-nightwatch: ^4.5.6 => 4.5.8
    @vue/cli-plugin-eslint: ~4.5.0 => 4.5.8
    @vue/cli-plugin-router: ~4.5.0 => 4.5.8
    @vue/cli-plugin-typescript: ^4.5.6 => 4.5.8
    @vue/cli-plugin-unit-jest: ~4.5.0 => 4.5.8
    @vue/cli-plugin-unit-mocha: ^4.5.6 => 4.5.8
    @vue/cli-plugin-vuex:  4.5.8
    @vue/cli-service: ^4.5.6 => 4.5.8
    @vue/cli-shared-utils:  4.5.8
    @vue/compiler-core:  3.0.2
    @vue/compiler-dom:  3.0.2
    @vue/compiler-sfc: ^3.0.0-0 => 3.0.2
    @vue/compiler-ssr:  3.0.2
    @vue/component-compiler-utils:  3.2.0
    @vue/eslint-config-typescript: ^5.0.2 => 5.1.0
    @vue/preload-webpack-plugin:  1.1.2
    @vue/shared:  3.0.2
    @vue/test-utils: 1.1.0 => 1.1.0
    @vue/web-component-wrapper:  1.2.0
    eslint-plugin-vue: ^7.0.0-0 => 7.1.0
    jest-serializer-vue:  2.0.2
    typescript: ~3.9.3 => 3.9.7
    vue: ^2.6.12 => 2.6.12
    vue-eslint-parser:  7.1.1
    vue-hot-reload-api:  2.3.4
    vue-jest: ^3.0.7 => 3.0.7
    vue-loader:  15.9.4
    vue-router: ^3.4.3 => 3.4.8
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.12 => 2.6.12
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

Build large repository with library target.
Import library in different vue-cli created project.
Start the build.

This happens with large projects, my "library bundle" is around ~7mbs which is build for SPA application with multiple Vue components.
What is expected?
I expect that large library create with vue-cli should be imported and bundled with another vue-cli project.
What is actually happening?
Webpack is unable to consume library that was created from other webpack project and is built for commonjs target. It fails with "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out
of memory"

This was initially reported in webpack project: https://github.com/webpack/webpack/issues/11859

Is your large library bundle published on public/private npm ?  Just import it to your project without extra config?

@fangbinwei  It is a separate, private npm library build according to https://cli.vuejs.org/guide/build-targets.html#library

Import library in different vue-cli created project.

Can you provide more information about this step ? I assume you publish your library and npm install it by private registry in a new project. If your library is processed by some loader in your new project? @triforcely

@fangbinwei You are correct, it is npm installedin the second project. This "second project" imports this library, and it is also created with vue-cli and uses vue-cli-service for building.

@triforcely have you ever tried increasing the memory limit or updating node version?

Updating nodejs to latest LTS version solved the issue. Thanks @fangbinwei !

authors: fangbinwei triforcely


text:
keep-alive vnode缓存与shapeFlag不一致导致组件切换路由被销毁的问题

Version
3.2.26
Reproduction link
http://github.com/
Steps to reproduce
        <router-view v-slot="{ Component }">
            <transition name="fade-transform" mode="out-in">
                <keep-alive :include="cachedViews">
                    <component :is="Component" />
                </keep-alive>
            </transition>
        </router-view>

重现

初始状态cachedViews为[]
component  mounted之后，改变cachedViews的值，使component命中cachedViews，component的vnode会被缓存到 cache中，但是返回的vnode的shapeFlag是4，没有被标记为COMPONENT_SHOULD_KEEP_ALIVE(260)
切换路由，component被销毁，isUnmounted: true
再次切换回路由回来，会命中keep-alive的缓存，返回缓存的vnode，由于vnode对应的组件被销毁，导致组件会假死失去响应。

可能原因
      // 289行
      // 当组件mounted之后update就会将vnode拷贝一份
      // clone vnode if it's reused because we are going to mutate it
      if (vnode.el) {
        vnode = cloneVNode(vnode)
        if (rawVNode.shapeFlag & ShapeFlags.SUSPENSE) {
          rawVNode.ssContent = vnode
        }
      }

      // 322行
      // 改变了拷贝的vnode的shapeFlag为KEEP_ALIVE，但是返回的是rawVNode
      // rawVNode的shapeFlag还是4
      // avoid vnode being unmounted
      vnode.shapeFlag |= ShapeFlags.COMPONENT_SHOULD_KEEP_ALIVE

      current = vnode
      return rawVNode

What is expected?
组件mounted之后命中include能正确被缓存。
What is actually happening?
组件mounted之后命中include能被缓存，切换路由时组件会被销毁，重新激活时组件假死。

maybe it's a  duplicated of  https://github.com/vuejs/vue-next/issues/4984
/cc @ygj6

@edison1105
确实和 #4984 差不多的问题，用你的方法解决了，感谢！
<script lang="ts">
import { defineComponent，computed } from 'vue'
import { useStore } from 'vuex'

export default defineComponent({
    name: 'AppMain',
    setup() {
        const store = useStore();

        const cachedViews = computed(() => [...store.getters.cachedViews])

        return {
            cachedViews
        }
    },
})
</script>

解构数组后transition组件能响应数组项变化了，当cacheViews push、splice时 ，update从keep-alive组件提升到了transition组件，从父组件更新时会更新插槽生成新的component vnode，问题得到解决！

我的还是不行啊...

我的还是不行啊...

你是和我一样的问题么，展开cachedView之后我的缓存正常了。

不行啊
`

我这个不在App.vue中 应该跟它没关系把
store里面Name都有的啊
大佬瞅瞅？
`

       <router-view v-slot="{ Component }">
            <transition name="fade-transform" mode="out-in">
                <keep-alive :include="cachedViews">
                    <component :is="Component" />
                </keep-alive>
            </transition>
        </router-view>

<script lang="ts">
import { defineComponent，computed } from 'vue'
import { useStore } from 'vuex'

export default defineComponent({
    name: 'AppMain',
    setup() {
        const store = useStore();

        // 这里绑定的值要展开为新的数组， 这里你展开了么?
        const cachedViews = computed(() => [...store.getters.cachedViews])

        return {
            cachedViews
        }
    },
})
</script>

我是在这里展开的 但是没用...

 我是在这里展开的 但是没用...

暂时不知道你这个是什么情况，我试了一下即使去掉transaction组件和你一样，我这个也是正常的。按原理来说只要提示组件的更新到上一级就可以的，这是我的代码

@AK47-dadada
传个简单的可以复现的 demo 吧。

 我是在这里展开的 但是没用...

暂时不知道你这个是什么情况，我试了一下即使去掉transaction组件和你一样，我这个也是正常的。按原理来说只要提示组件的更新到上一级就可以的，这是我的代码

我确实不知道影响元素是哪个，很伤脑筋

@edison1105 大佬你稍等，我想想办法给你个demo

 我是在这里展开的 但是没用...

暂时不知道你这个是什么情况，我试了一下即使去掉transaction组件和你一样，我这个也是正常的。按原理来说只要提示组件的更新到上一级就可以的，这是我的代码

我确实不知道影响元素是哪个，很伤脑筋

你发个demo出来让edison大佬给你看看。

@qq10137383 搞了个线上demo居然没问题................................................................................................................................................

How can you call yourself ak47? Are you trying to be cute or jus downright stupid?

On Jan 12, 2022, at 7:40 PM, AK47-dadada @.***> wrote:

@qq10137383 搞了个线上demo居然没问题................................................................................................................................................
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.

@edison1105 这里有人骂人嗷

How can you call yourself ak47? Are you trying to be cute or jus downright stupid?
…
On Jan 12, 2022, at 7:40 PM, AK47-dadada @.***> wrote:  @qq10137383 搞了个线上demo居然没问题................................................................................................................................................ — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

It's just a username. Don't make people think you're jus downright stupid

@yyx990803 尤大 这里有人骂人哦

@qq10137383 兄弟 问题得到解决了
@edison1105 大佬，这个可以参照一下
http://www.jmblog.com.cn/article/61e5471af3e068311c322440

@qq10137383 兄弟 问题得到解决了 @edison1105 大佬，这个可以参照一下 http://www.jmblog.com.cn/article/61e5471af3e068311c322440

子路由的，也要单独加keepalive，这跟vue2的keepalive是一致的。

repo: vuejs/vue-next


text:
"export 'markNonReactive' was not found in 'vue'

 warning  in ./node_modules/vue-router/dist/vue-router.esm.js

"export 'markNonReactive' was not found in 'vue'

@zhuyankun
Here are some helpful links for you.

https://github.com/vuejs/vue-next/commit/09b4202a22ae03072a8a8405511e37f65b626568
https://github.com/vuejs/vue-router-next/commit/7636f556cd654fbdf49b494925628593e8383453

This should be fixed in the latest vue-router release

I added next release vesion
"vue-router": "4.1.0"

since I don't see this error

authors: AndrewBro posva zce zhuyankun


text:
fix(runtime-dom): "el._assign is not a function" in compat mode

In compat mode el._assign is not a function is thrown when you bind a model to a radio button because onUpdate:modelValue does not exist in the props. As far as I could see in compat mode it's called onModelCompat:input instead:
https://github.com/vuejs/vue-next/blob/4f17be7b1ce4872ded085a36b95c1897d8c1f299/packages/runtime-core/src/compat/componentVModel.ts#L38-L40
I created a reproducible repository here:
https://github.com/jaulz/vue-repro

Hmm, the logic is guarded to be only applied to component vnodes: https://github.com/vuejs/vue-next/blob/4f17be7b1ce4872ded085a36b95c1897d8c1f299/packages/runtime-core/src/compat/componentVModel.ts#L18
I'd love to see a reproduction to make sure we find the right fix.

@yyx990803 thanks for your response! In order to reproduce it you can clone https://github.com/jaulz/vue-repro and run it via yarn serve. Just click any of the options at the top.

@jaulz Your reproduction is way too large, can you boil it down to only Vue and no external libs so we can take a look? (https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro)

@yyx990803 @posva
While working on migration of bootstrap-vue to @vue/compat I believe I was able to extract minimal possible example:
import Vue from "@vue/compat";

const App = {
  compatConfig: {
    MODE: 3,
    COMPONENT_V_MODEL: true,
    RENDER_FUNCTION: true
  },
  render(h) {
    return h("input", {
      on: {
        input() {
          console.log("invoked");
        }
      },
      // This comment was in original code (bootstrap-vue):
      // Directive needed to   get `event.target.composing` set (if needed)
      directives: [{ name: "model", value: "foo", callback: () => {} }]
    });
  }
};

Vue.createApp(App).mount("#app");

Codesandbox
According to v2 docs - usage of v-model directive from render function was never promoted, but it will be cool to have this fixed for better compat-build compatibility

authors: jaulz posva xanf yyx990803


text:
shallow components throwing unknown custom element error

Problem
Trying to test a component that has dependency on some bootstrap-vue components.
component = shallow(Banner, {
  propsData: {
    'text': 'This is a banner'
  }
})

By calling shallow it is stubbing these components but the vue runtime is throwing errors. causing test failure.
console.error node_modules/vue/dist/vue.runtime.common.js:474
    [Vue warn]: Unknown custom element: <b-button> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

    (found in <Root>)

I have the same issue, with vue-material

authors: JamieLottering davidcostadev

repo: vuejs/vue-test-utils


text:
#631 - Silent "Avoid mutating a prop directly" warning when updating prop

This PR aims to solve #631
By default, Vue is throwing warnings when setProps is used/invoked, due to changes to observers and "Vue.config.silent" is false by default https://vuejs.org/v2/api/#silent
Since "silent" suppress all warnings and logs, it would be great to reduce the scope just to the desired functions/blocks.
Please, take this as an initial proposal and discuss if it makes sense to adopt this strategy and feel free to point missing implementation.

I think this is fine 🤔
The only negative I can see is that it would silence any true errors, so when somebody is trying to change a prop that doesn't exist. But at the moment, there are so many errors that you can't tell the difference anyway.

Thanks to you!
Your point makes total sense to me and we don't want to suppress valid errors (which can prevent bugs).
Anyway, when changing props which don't exist, aren't we expecting an exception instead of a console error?
https://github.com/vuejs/vue-test-utils/blob/dbf63bb3c6cb06f45713c4d2a98d45b52149a14d/test/specs/wrapper/setProps.spec.js#L30
I added a test case locally and the exception is thrown when changing the not existing prop (when silentWarnings is set to true).
Also, is there any missing part which would use the same logic? (if yes, maybe it would be great to discuss/consider decorators instead)

Ah great, I forgot we had that functionality!
I can't see any other methods currently where we need to set the config to silent.

Yep sounds good

authors: cdbkr eddyerburgh


text:
可以提供对集合数据变化的$watch 吗？

目前提供的deep参数只是针对当个对象的多个属性，在实际的应用开发中会涉及到对多行数据的统一提交，这就需要对集合数据变化的监听，对于集合数据的监听，大致需要这几个参数：当前对象(model)、更改的属性名(name)、更改值(newValue)、更改前值(oldValue)。
我用遍历方式来逐一绑定对象的watch，我换了好几种方法都不能监听到数据的变化！
谢谢！

『多行数据的统一提交』具体是什么？上代码。为什么一定要对集合数据监听才能解决你的问题？没讲清楚。

背景说明：多行数据的统一提交，是指基于表格的数据编辑，前端需要知道哪些数据做了修改，那么提交时只提交修改部分的就可以。
代码要点：
1、html,smart-table 是自定义的指令，封装了表格数据的操作。
    <smart-table class="table table-condensed" :row-num="true" :multi-select="false"         :columns="columns"   :data="rows" :pager="false">
   </smart-table>

2、javascript 代码，rows是需要检测变化的集合。
  data: function () {
    return{
      rows:[]
    }

3、需求：在代码中需要实时获取到修改的行或字段值，以便提交时只提交修改的部分。
4、目前的尝试，代码有问题（捕获不了$watch变化，就是 走不到console.log("fire!")这里）
    var self = this;
   _.forEach(this.rows,function(row){
      self.vm.$watch(row, function (value, oldValue) {
       console.log("fire!")
      }, {immediate: true, deep: true })
   });

谢谢！

请仔细看看 $watch 的 API 文档: http://vuejs.org/api/#vm-watch
只接受 expression 或 function。你传个对象进去没有用的。

改成expression和function后，还是不能捕获变更！
写法1：
  _.forEach(this.rows,function(row){
        self.vm.$watch(
         function () {
               return row;
         },
        function (newValue, oldValue)
                         console.log(newValue);
         },
         {
          deep:true
         })});

写法2（只监测第一行数）：
   self.vm.$watch(
        function () {
            return self.rows[0];
            },
        function (newValue, oldValue) {
            console.log(newValue);
         },{deep:true });

写法3（只监测第一行数,表达式写法）：
    self. vm.$watch('rows[0]', function(newValue,oldValue){
                console.log(newValue);
      }, {deep: true});

var self = this
this.rows.forEach(function (row, i) {
  self.$watch('rows[' + i + ']', function () { /* ... */}, { deep: true })
})

更好的办法是做一个 row 组件，每一个 row 组件 watch 自己的对象。

代码可以正常工作了，还是强烈建议增加对集合数据的监测，在callback可以获取到：当前对象(model)、更改的属性名(name)、更改值(newValue)、更改前值(oldValue)。
非常感谢！

这样循环是可以工作，但是属性名传不进去啊， 取得了最新值和旧值，但不知道是哪个属性的了。

authors: AronYang rendongsc yyx990803

repo: vuejs/vue


text:
Keep-Alive doesn't save the state of the slot component

Version
2.2.6
Reproduction link
https://jsfiddle.net/50wL7mdz/24930/
Steps to reproduce
Click the "Switch view" button.
What is expected?
The "home" view's state should have been kept alive when switching to the other signin view.
What is actually happening?
Instead the "home" view is recreated everytime.

If I remove the include="home" option from keep-alive, it works as intended or if I remove the mode="out-in" option from the transition node, it also works as intended.
I've debugged this and it seems that when every time it switches the component, the "include" watch is somehow triggered with undefined as val parameter and then it's being triggered again with the correct "home" value but by then the first trigger has already removed the home node from the cache.

To make use of the include option, you have to specify the name property for the component(s). This should also be explained in the docs.

Actually, forget that, it should work...

In the meantime, you can use an exclude with the rest of components as a workaround

@posva Do you have any idea yet why the cache is being invalidated when I use include?

authors: LinusBorg cynecx posva


text:
Would it be more efficient to use requestAnimationFrame first in nextTick

What problem does this feature solve?
it could be a copy of 2708, but i think issue-2708 is for vue1 which has no vdom.
i read an artile recently which relates to rIC & rAF & vdom links. let's leave rIC firstly and i think it would be a great efficiency improvement only if comparing vnodes、updating dom in rAF phase and updating state in other phases.
What does the proposed API look like?
i just want to discuss this issue...

Please use the forum for open ended discussions. The short answer is: no, we have investigated this and rIC or rAF are not what we want, because nextTick exists primarily for scheduling rather than deferring work. What we want is microtasks as much as possible.

Thanks for your answer.


text:
v-model doesn't work as expected with hebrew on mobile phone

Version
2.5.17
Reproduction link
https://jsfiddle.net/yakovyarmo/kw64ynt8/3/
Steps to reproduce
Start typing in the input using hebrew language on mobile device.
What is expected?
The data should be update on every input.
What is actually happening?
The data is updated some of the time and cause inconsistency.

I suspect that the issue occur becuse for some reason the browser treat hebrew with IME.
There has to be a way around it. maybe by a modifier that will trigger the update for native input.

This is expected with IME indeed. You can listen to individual events like input and compositionstart if you need the values as they are typed

what I'm saying is that v-model waits for the composition to be finished, if you want to get around that, you will have to use native events :)

why is that ok?
If the user left the field it will never emit compositionend.
That's a really big issue.
I don't think we need to sweep it under the rug.

@posva  Maybe the v-model directive should clear the evt.target.composing flag on blur?
somehwere in this section: https://github.com/vuejs/vue/blob/dev/src/platforms/web/runtime/directives/model.js#L34

authors: posva tmorehouse yakovyarmo


text:
[Bug report] config.js -> head will erase my link tag added from clientAppEnhance immediately after page loaded

Bug report
Description
i'm making a plugin to load markdown-it-katex. it needs to add an <link> css to the html.
so i wrote something like below into the clientAppEnhance.js file and correctly referenced.
export default defineClientAppEnhance(() => {
    console.log('katex loaded')
    const styleTag = document.createElement('link')
    styleTag.href = 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css'
    styleTag.rel = 'stylesheet'
    document.head.appendChild(styleTag)
})

and i found that if i set something to .vuepress/config.js > head , the <link> tag i wrote above loaded but erase  immediately.

i can see 'katex loaded' from console and the css request was sent from the network panel

and if i remove the content of .vuepress/config.js > head , everything goes well.
is this a bug or should i add tag from another place?
i think it is affected by this
https://github.com/vuepress/vuepress-next/blob/a0bf704ec6d1f8180d9bce6cd0af70a48cb6f09d/packages/%40vuepress/client/src/composables/updateHead.ts#L68

Steps to reproduce

make an local plugin with clientAppEnhance.js file
add <link> tag to <head> from defineClientAppEnhance
add some <link> to .vuepress/config.js > head

Reproduction link / repo:

Expected behavior
the tag added from defineClientAppEnhance shouldn't be erased.

Screenshots

Environment info

Browser:
Output of vuepress info:

System:
    OS: macOS 11.5.2
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 26.65 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.0 - ~/.nvm/versions/node/v14.15.0/bin/node
    Yarn: Not Found
    npm: 7.20.5 - ~/.nvm/versions/node/v14.15.0/bin/npm
  Utilities:
    Git: 2.18.0 - /usr/local/bin/git
  Browsers:
    Chrome: 92.0.4515.159
    Edge: Not Found
    Firefox: 91.0.2
    Safari: 14.1.2
  npmPackages:
    @vuepress/bundler-vite: Not Found
    @vuepress/bundler-webpack:  2.0.0-beta.25
    @vuepress/cli:  2.0.0-beta.25
    @vuepress/client:  2.0.0-beta.25
    @vuepress/core:  2.0.0-beta.25
    @vuepress/markdown:  2.0.0-beta.25
    @vuepress/plugin-active-header-links: ^2.0.0-beta.25 => 2.0.0-beta.25
    @vuepress/plugin-back-to-top:  2.0.0-beta.25
    @vuepress/plugin-container:  2.0.0-beta.25
    @vuepress/plugin-debug: Not Found
    @vuepress/plugin-docsearch: Not Found
    @vuepress/plugin-git:  2.0.0-beta.25
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-beta.25
    @vuepress/plugin-nprogress:  2.0.0-beta.25
    @vuepress/plugin-palette:  2.0.0-beta.25
    @vuepress/plugin-prismjs:  2.0.0-beta.25
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: Not Found
    @vuepress/plugin-search: Not Found
    @vuepress/plugin-shiki: ^2.0.0-beta.25 => 2.0.0-beta.25
    @vuepress/plugin-theme-data:  2.0.0-beta.25
    @vuepress/plugin-toc: ^2.0.0-beta.25 => 2.0.0-beta.25
    @vuepress/shared:  2.0.0-beta.25
    @vuepress/theme-default:  2.0.0-beta.25
    @vuepress/utils:  2.0.0-beta.25
    vue: ^3.2.6 => 3.2.6
    vue-loader:  16.5.0
    vue-router: ^4.0.11 => 4.0.11
    vuepress: ^2.0.0-beta.25 => 2.0.0-beta.25
    vuepress-vite: Not Found

ok!
https://codesandbox.io/s/vuepress-next-issue-426-t3vnp

it also affects plugin-google-analytics

repo: vuepress/vuepress-next


text:
Shader codegen always treats descriptors as readonly

Vulkano 0.14
I have a GLSL file with some readonly descriptors and some not, however the code generated by vulkano-shaders marks all of the descriptors as readonly. This has knock-on effects like the pipeline barrier code not working, since it looks for buffers that are not readonly in order to generate barriers in the right places.
It seems like vulkano-shaders always considers descriptors to structs (and by rule induction, buffers too) as readonly, which doesn't seem correct: https://github.com/vulkano-rs/vulkano/blob/master/vulkano-shaders/src/descriptor_sets.rs#L203

Any recepie for workaround?

I just ran into this bug myself. Vulkano-shader always sets the readonly attribute on the descriptors it generates to true, whether the shader writes to it or not. This has knock-on effects for memory safety in SyncCommandBufferBuilder: since the builder thinks the buffer isn't being written, it doesn't insert a pipeline barrier between the write and any subsequent reads, leading to a data race on the GPU.

authors: Rua Xenopathic Ziqul

repo: vulkano-rs/vulkano


text:
Creating frame buffers for VulkanoWindowRenderer

Version of vulkano: 0.34.0

How would I create frame buffers when the swapchain images stored as final_views in VulkanoWindowRenderer are private?
Usually in my code, when the window size changed, I would recreate my frame buffers by looping through the swapchain images and create a frame buffer for every one. Something like this:
let framebuffers = swapchain_images
      .iter()
      .map(|swapchain_image| {
          let swapchain_image_view = ImageView::new_default(swapchain_image.clone()).unwrap();
          Framebuffer::new(
              render_pass.clone(),
              FramebufferCreateInfo {
                  attachments: vec![swapchain_image_view, depth_buffer_view.clone()],
                  ..Default::default()
              },
          )
          .unwrap()
      })
      .collect::<Vec<_>>();

(Fairly certain I stole this code from one of the examples.)
How would I adapt the code to work with VulkanoWindowRenderer?
Edit: Thinking about this further, how would I even access the new images at all? Resize() only sets recreate_swapchain. Perhaps we could give some sort of closure for it to call when it recreates the swapchain?

You can look at some of Vulkano's examples that use vulkano-utils. Like this one:
https://github.com/vulkano-rs/vulkano/blob/7b17d590a7908ed2ba08d8e64f70b75b528b5d23/examples/multi-window-game-of-life/main.rs#L105-L109

What would be a more sensible course of action, so that I can implement it in my code?

It should be created whenever the swapchain is (re)created, and then kept and reused.

Okay by ctrl-f-ing my way through the vulkano window renderer code, I think it only sets recreate_swapchain on .resize() and .set_present_mode(), then it only actually recreates the swapchain on acquisition of the future. So now I just need to somehow access final_views so I can recreate my framebuffers.
This seems like it could be simplified by perhaps storing a closure that gets passed final_views, that gets called on recreation of the swapchain.

authors: Rua coolcatcoder


text:
Bring in Changes to Accomodate Falcon 3

This PR brings in some changes from other forks to make falcon-apispec work with falcon 3.
The important part is that the falcon-apispec was describing the available operations based on a map that has the methods on the object included, not just the defined methods.

My god, I'm sorry. I keep not noticing that base github gives and opening dumb PR's.


text:
add .exe to windows executable file suffix

Oh...

done

repo: vvatanabe/gitb


text:
🛑 Ecoindex.fr Back For Front is down

In d48d28e, Ecoindex.fr Back For Front (https://bff.ecoindex.fr/health) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ecoindex.fr Back For Front is back up in dc6aeef.

repo: vvatelot/upptime


text:
find pattern evalutes to false always

Thanks for excellent tool.
I have began to use it. Snapshot created without problem, however when using 'btrfs-autosnap -l ' get the following error:
find: warning: ‘-name’ matches against basenames only, but the given pattern contains a directory separator (‘/’), thus the expression will evaluate to false all the time.  Did you mean ‘-wholename’?
My root volume is  '_active/rootvol' mounted at    /
The created snapshot is clearly to be seen as '_active/rootvol-id7i6t'  with btrfs subvol list.
Any ideas?

Hello! Seems it's really problem of separator. I'll think how to solve it

Very much Appreciated.   It's an ideal hook.

I suspect this is happening due to the layout of my btrfs subvolumes.
The snapshots taken of the mounted _active/rootvol of rare being stored on _active, which is not mounted.
I can manually mount  the active _active subvol itself,  and see if I get the same error. I'll report back.

Sure the problem is the layout of your btrfs subvolumes. When I created the utility, I did not expect that it is possible to use the root btrfs subvolume nested in another one (you have _active/rootvol), but just rootvol is expected.
Moreover, the snapshot is created correctly, but not only the list function (-l), but also the function of deleting old snapshots (-r) does not work. I don't see a quick fix without changing the features.

OK vvl-R, thanks for confirmation.
I said it was a good tool, so aiming to use it I do this:
I'll modify, with no downside whatsoever,  my btrfs nested _active/rootvol layout by snapshotting that subvol  to  a flat layout at _rootvol  (and  necessarily making necessary changes to fstab, my systemd boot loader, plus re-generating  initramfs).
I think that should work.  No doubt the easiest solution, not so hard.
Kind regards,
John

I have done the modification to my btrfs filesystem as proposed, except upon re-consideration of systemd-boot config, I did not re-generate an initramfs,
All has worked smoothly. I installed btrfs-autosnap, updated software with pacman and the hook both created and listed a snapshot.
Voila!
Now,  I only have to delete the original _active/subvolume. (scarey, eh?)
Thanks for kind advice.
John

authors: plum vvl-rulez

repo: vvl-rulez/btrfs-autosnap


text:
more fixes and code refactoring

resolved issues which appeared from merging PR#3 and PR#4 without adjustments.
added default telegram image download folder.
half-way refactored telegram intel bot and fixed bugs. more testing required to finish refactoring and reduce all code duplicates, but need to wait for another telegram flood timeout to resolve sigh. added the stub to test as comment already.
updated readme.
resolved merging conflicts.

thank you so much!

authors: hRun vxunderground


text:
Feature request: Adding some text fixing features

First thanks so much for making this plug in. It helped me a lot!
I'd like to request a feature:
A pain point for using pdf highlighter in Logseq is that the words at the end of a line stick together and don't have spaces. I usually have to manually edit every single word. Someone has built a tool to fix this but it's only available in Mac. I don't know if you could integrate this into your plugin?

glad you find the plugin helpful 🙂 this is a great idea! i'll see what i can do

closing this issue because with the recent Logseq update, text from PDF annotation doesn't have the issue of words sticking together anymore (but it has a different issue haha https://github.com/logseq/logseq/issues/4437#issuecomment-1182013735=)

repo: vyleung/logseq-tidy-blocks-plugin


text:
Populate Box.quantity when Box record is created.

[x] When a Box record is created.  Set the Box.quantity to the value specified by Box type.
[x] Remove the Quantity field from the screens (field is left in place for future reference).
[ ] Copy quantity value from Box to Activity record when Box is empty (Dependency on #67).

mark as bug, milestone 1, assign to me.

@deeppunster, looks like you have some tests that are checking this field.  Can this be closed?

I believe this bug has been fixed.  Closing issue.

authors: deeppunster jocassid


text:
🛑 Wayback Archiver Documentation is down

In cae48ab, Wayback Archiver Documentation (https://initium.eu.org) was down:

HTTP code: 503
Response time: 601 ms

Resolved: Wayback Archiver Documentation is back up in ab725a1.

repo: wabarc/status


text:
CI tests should run on low-cost dyno

CI test runs are using the Performance M dyno. To reduce costs (and also to showcase the functionality) the example should use a standard dyno.

Thanks!

authors: muenzpraeger wadewegner


text:
Add payload encoding on burp "nested insertion" way

I found that the encoding used by burpbounty is buildUnencodedRequest, maybe add the encoding of buildRequest, like this https://forum.portswigger.net/thread/design-new-extension-problem-with-buildrequest-and-url-encode-5d4b35a6
Can solve more problems. Can this requirement be added?

Hi @nancheal !
That post, Antoni, is me. I have implemented correctly and the payload is not encode if you dont want. Have you any problem with the encode?
Thanks.

thanks for replay, i mean if the payload in "buildRequest" way, the feature(https://portswigger.net/burp/documentation/scanner/auditing#nested-insertion-points) will take effective(https://forum.portswigger.net/thread/design-new-extension-problem-with-buildrequest-and-url-encode-5d4b35a6) like a "auto encode" with burpsuite, but "buildUnencodedRequest" way may not Produces the above effect, would a "auto encode" will be possible? a big thanks

Hi @nancheal,
The burp extender api has no method to implement this, this is done only by its native scanner. I will look to implement it in the future, thanks for the suggestion!
Best regards.

@wagiro, thanks for accept this suggestion, I noticed that backslash-powered-scan (https://github.com/PortSwigger/backslash-powered-scanner) can request such an "auto-encode" request eyIxMjMxMiI6ImRhc2R3cWRxd2QkenE9JTNjJTYxJTYwJTI3JTIyJTI0JTdiJTdiJTVjJnpxd
which decoding is {"12312":"dasdwqdqwd$zq=%3c%61%60%27%22%24%7b%7b%5c&zq%3d"},
I think it should be this buildRequest (https://github.com/PortSwigger/backslash-powered-scanner/blob/master/src/burp/PayloadInjector.java#L113) make "auto encode" worked.
and the buildRequest wiki page(https://portswigger.net/burp/extender/api/burp/iscannerinsertionpoint.html) - "Note: Scan checks should submit raw non-encoded payloads to insertion points, and the insertion point has responsibility for performing any data encoding that is necessary given the nature and location of the insertion point." maybe the buildRequest can "auto encode", i guess

authors: nancheal wagiro

repo: wagiro/BurpBounty


text:
bug: pnpm wagmi init Cannot find module issue

Is there an existing issue for this?

[X] I have searched the existing issues

Package Version
1.0.0
Current Behavior
Hey guys. I'm excited about the v1.0.0 with viem, but looks like it doesn't work properly yet.
I'm trying to init with @wagmi/cli but receive cannot find module error
Expected Behavior
init without error
Steps To Reproduce

run pnpm i -D @wagmi/cli (v1.0.0)
run pnpm wagmi init
receive an error

Fixed in 1.0.1!

I'm still getting this error in 1.0.3, exports section in package.json still points to index.mts

New issue tracking this: https://github.com/wagmi-dev/wagmi/issues/2450#issuecomment-1567323117

authors: MrKampla didostap jxom tmm

repo: wagmi-dev/wagmi


text:
fix: add optimism goerli to chain lookup

Description
Fix #822
Additional Information

[x] I read the contributing docs (if this is your first contribution)

Your ENS/address: awkweb.eth

Thank you

authors: iyansr tmm


text:
Exception (504) Reason: "channel id space exhausted"

Channel did not close properly after publishing a message. They are all stacked in idle state. In my code, I did use puber.close() to close the publisher.
// PushMsg pushes a message to the message queue
func PushMsg(queueName string, m any) {
	data, err := json.Marshal(m)
	if err != nil {
		slog.Error(err)
		return
	}
	puber, err := rabbitmq.NewPublisher(wmqInstance.mqConnection,
		rabbitmq.WithPublisherOptionsLogger(slog.NewStdLogger()),
		rabbitmq.WithPublisherOptionsLogging,
	)
	if err != nil {
		slog.Error(err)
		return
	}
	err = puber.Publish(data, []string{queueName},
		rabbitmq.WithPublishOptionsMandatory,
		rabbitmq.WithPublishOptionsPersistentDelivery,
		rabbitmq.WithPublishOptionsExchange("amq.direct"))
	if err != nil {
		slog.Error(err)
		return
	}
	puber.Close()
}

same issue here. seems that channel created here
is never closed

authors: anxuanzi xwrs

repo: wagslane/go-rabbitmq


text:
No separation between two StructBlock blocks on edit page

Issue Summary
No space / separation between two StructBlock blocks on edit page.
Steps to Reproduce
In this example, StructBlock block contains two StructBlock blocks.
See the picture below how they are shown on the Edit page - there is no space or separation between them - it is not clear where first block ends and second starts...
class HeroSlideBlock(StructBlock):
    image = ImageChooserBlock(help_text="Use size 1920x1080 (for design optimisation).")
    title = CharBlock(max_length=100)
    button_link = LinkBlock()
    class Meta:
        label = "Hero slide"
        icon = "grip"

class HeroBlock(StructBlock):
    slide_one = HeroSlideBlock(label="First slide for Hero section")
    slide_two = HeroSlideBlock(label="Second slide for Hero section")
    class Meta:
        label = "Hero section"
        icon = "grip"

Technical details

Python version: 3.11.1
Django version: 4.2.6
Wagtail version: 5.1.2
Browser version: Google Chrome 117.0.5938.149 (Official Build) (64-bit)

Getting this

repo: wagtail/wagtail


text:
A hook to let documents served through Wagtail be given the proper content type.

Is your proposal related to a problem?
When serving remote-hosted documents through WAGTAILDOCS_SERVE_METHOD = 'serve_view', every file is given the application/octet-stream content type and marked as an attachment. This forces the browser to download the file, no matter what type it is. This is undesirable for things like PDFs, which should open within the browser, but cannot when served in this way.
I understand why Wagtail does this (vagaries regarding how each particular remote file backend provides info about the file's actual content type), but when the developer knows what the backend is, it'd be nice for them to be able to tell Wagtail how to retrieve the content type from the backend.
Describe the solution you'd like
I'd like to add a hook which fires in the final else block of wagtail.documents.views.serve.serve(), and sends the doc object into the hooked function, letting said function return the content type of that Document.
Describe alternatives you've considered
We currently get around this limitation by monkey-patching the entire wagtail.documents.views.serve.serve() function, which is major overkill just to change two lines near the end of the function. Having a hook we could implement would be much cleaner.
Additional context
I realize that WAGTAILDOCS_SERVE_METHOD = 'serve_view' isn't really intended for use with remote file system backends. We decided that it needed to be used for our servers because documents uploaded to our sites are sometimes highly secure material, and we need to make absolutely certain that viable S3 links to them cannot leak out to the public (which the redirect serve method would potentially allow). We already use the before_serve_document hook to implement our own additional protections, so it'd be really nice if we could use another hook to let us get rid of our monkey-patch.
After writing all of this up, I'm now fairly confident that I could make a PR for this, if you guys would be willing to accept such a change.

Hi @coredumperror,
I've previously written up a proposed approach for this at https://github.com/wagtail/wagtail/issues/1158#issuecomment-520545163, and would be very happy to see a PR for this.
I'd like to avoid hooks for this, because I think 99% of people want the same thing here (i.e. PDFs opening in the browser) and it makes sense for that to become the out-of-the-box behaviour with no further configuration; and for people with truly custom requirements, a custom document model is the logical place for that to go.

Alright, I'll put that PR on my TODO list.

authors: coredumperror gasman


text:
🛑 cyconet.org is down

In 902cd62, cyconet.org (https://www.cyconet.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cyconet.org is back up in 5682457 after 55 minutes.

repo: waja/cyconet-upptime


text:
1.0.32 Error - Routing error: A versioning/locking problem occurred during the API call to /transaction/update.

Hello,
since the update to version 1.0.32, we have encountered the following core error log permanently in our JTL Shop 5.3.2 with PHP 8.2.24:
Routing error: A versioning/locking problem occurred during the API call to /transaction/update.

Unfortunately, we have no idea what this means, but some customers are unable to complete their orders, and we suspect it might be related to this issue.
Best Regards
C.Kizilkaya

hi @cuneyt2002 , sorry to hear that you encounter this bug. Do you think you could share the full logs when this error is happening as well as your space_id.
You can send those to info@wallee.com


text:
Problem with Homebrew and .zshrc

I'm not sure if this is the place to post this, but I'll give it a shot anyway.  If this is not the most suitable location, feel free to close it and remove it.
Every time you upgrade a package with Homebrew, the following line is added to ~/.zshrc
source <(awless completion zsh)
My iTerm was extremely slow and after some digging I opened ~/.zshrc to see if there was something strange in there.
It turns out that that source line was repeated about 50-60 times.  Every time you run brew upgrade, that line is added a couple of times, causing things to slow down.
I know this is probably more related to Homebrew, but perhaps someone here can give some advice on how to solve this.
edit>
Can be closed.  Seems I misinterpreted the following line:

Or add to your ~/.zshrc
$ echo 'source <(awless completion zsh)\n' >> ~/.zshrc

That shouldn't be added to your ~/.zshrc, this is to add it to that file :).

Thanks for reporting.
That was then a documentation issue. We fixed that in the wiki.

repo: wallix/awless


text:
[App]: bump gql

Current Behavior
Currently GQL is pinned to 0.2.0 this has the dependency requirement graphql-core>=0.5.0,<2. This dependency is incompatible with Dagster.
Any harm in bumping this to 0.3.0 or even 3.3.0 if it is compatible?

I was on an old wandb client for some reason

repo: wandb/client


text:
Duplicate layer logging with torch.nn.DataParallel(model)

Weights and Biases version: 0.8.26
Python version: 3.7.6
Operating System: Linux

Description
In the model tab, the table listing Name/Type/# Parameters/Output Shape shows multiple entries for each submodule (one for each GPU). So if I train on 8 GPUs, I will see 8 copies of each submodule, which makes it quite confusing and cluttered to read. This even happens when I call watch on the underlying single-GPU module via wandb.watch(model.module). I believe the correct behavior would be to only display a single copy of the model submodules, even if there are multiple copies of that model across the GPUs.
What I Did
wandb.watch(model)
model = torch.nn.DataParallel(model)
...

Hi Timothy, it looks like we're having some issues with PyTorch DataParallel. Thanks for reporting this. @raubitsj is working on improving this integration.

In the past year we've majorly reworked the CLI and UI for Weights & Biases. We're closing issues older than 6 months. Please comment to reopen.

authors: cvphelps sydholl timothybrooks


text:
[Q] How to use wandb sweep with a yaml config

Hi,
I want to use sweep for hyperparameter tuning. However, all my arguments are read from a .ymal file rather than command line arguments, so I only need to run python main.py.
I used to use ArgumentParser and parser.add_argument for all arguments in other projects, and it was easy to use sweep. But it was now too much as I had so many arguments, so I decided to use a .yaml file.
Would it be possible to use sweep in this case?
Example of my config.yaml
model: GNN
dataset: tmdb
transformer:
  n_layers：2
  n_heads: 8
pre:
  epoch：1
  lr: 0.1
rec:
  epochs: 1
  lr: 0.01
gen:
  epochs:1
  lr:0.01

How I load config.yaml
config_dict = {}
with open(args.config, 'r', encoding='utf-8') as f:
    config_dict |= yaml.safe_load(f.read())

Thank you in advance

Hi @icedpanda , please see this document  on setting up sweeps. There are subsections on configuring sweeps via a yaml file and calling the sweep from the terminal. Our wandb agent handles parsing your yaml configs automatically. Please let me know if you have any questions from the above resource.

Hi @MBakirWB,
I have a sweep.yaml and a default .yaml.
From the documentation, and example here. I would assume the hyperparameters will be over-written by wandb.init() if its in sweep.
import wandb
import os

hyperparameter_defaults = dict(
    dropout = 0.5,
    channels_one = 16,
    channels_two = 32,
    batch_size = 100,
    learning_rate = 0.001,
    epochs = 2,
    )

wandb.init(config=hyperparameter_defaults, project="pytorch-cnn-fashion")
config = wandb.config

However, I am getting error: unrecognized argumens when I run  wandb agent .
So, It looks like wandb agent still passing these hyper-parameters via cmd like this python main.py --argument1, --arugment2. Or am I missing something?

Fixed by adding command to the sweep.yaml file.
command:
  - ${env}
  - ${interpreter}
  - ${program}

Found from here but missing this in the provided example.

Hi @icedpanda , thank-you for letting me know you were able to successfully call a sweep agent using .yaml file. Please do write in again with any additional questions.

authors: MBakirWB icedpanda

repo: wandb/wandb