WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Currently the deno executable take up about 80M on macos, and after a single strip command, it reduces down to 50M! .

It'd be better to build it with -C link-arg=-s to strip off unused symbols in binary release tag.

Issue 2:
I am running Arch Linux on Raspberry Pi and it seems deno is not working on it yet. I wonder if this is something on the road map or not? Thanks.
Issue 1:
Version:

deno 0.41.0
v8 8.2.308
typescript 3.8.3

How to reproduce:

deno bundle https://unpkg.com/@vaadin/router@1.7.1/dist/vaadin-router.js output.js

The following error is produced:

error: Uncaught URIError: relative import path "my-view.js" not prefixed with / or ./ or ../ Imported from "https://unpkg.com/@vaadin/router@1.7.1/dist/vaadin-router.js"
► $deno$/ops/dispatch_json.ts:43:11
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10)
at Object.resolveModules ($deno$/ops/compiler.ts:11:10)
at resolveModules ($deno$/compiler/imports.ts:63:22)
at processImports ($deno$/compiler/imports.ts:147:27)
at Object.processImports ($deno$/compiler/imports.ts:156:13)
at async compile (file:///Users/runner/runners/2.169.0/work/deno/deno/cli/js/compiler.ts:131:31)
at async tsCompilerOnMessage (file:///Users/runner/runners/2.169.0/work/deno/deno/cli/js/compiler.ts:338:22)
at async workerMessageRecvCallback ($deno$/runtime_worker.ts:62:9)

deno bundle appears to get caught up on this part of https://unpkg.com/@vaadin/router@1.7.1/dist/vaadin-router.js:

// Actions like `() => import('my-view.js')` are not expected to
// end the resolution, despite the result is not empty. Checking
// the result with a whitelist of values that end the resolution.

When this chunk of comments is removed from a local version of the file and deno bundle is attempted again it works without issue.

Desired behavior:

Deno bundle should ignore comments while looking for imports.

Also, thank you for creating such an incredible tool!

Issue 2:
v0.20.0

Parser doesn't find declarations correctly?

[EDITED]

Previous example has unrelated mistake but I don' know which code can reproduce error I met.

I met this error when I ran -> https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts

That can be compiled with deno@v0.19.0. But got error below with v0.20.0:

error: Uncaught ImportPrefixMissing: relative import path "${resp.url}" not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:85:10)
Issue 1:
Here is the test code:

import pandas as pd
from numpy.random import randint, rand, seed

seed(10)
N_Group = 20
N_Rows = 1000
df = pd.DataFrame({"g":randint(0, N_Group, N_Rows), "a":rand(N_Rows), "b":rand(N_Rows)})

def f(df):
df["a"] -= df["b"].mean()
return df

%time df1 = df.groupby("g").apply(f)
%time df2 = df.groupby("g").transform(f)

the output is:

Wall time: 17 ms
Wall time: 682 ms

before the for-loop for every group in apply(), it disable the 'mode.chained_assignment' opition:

# ignore SettingWithCopy here in case the user mutates
with option_context('mode.chained_assignment',None):
return self._python_apply_general(f)

but there is not such code for transform().

Issue 2:
to_records() and the df constructor are broken for data containing categoricals when created with dtype='category' or astype('category').

Broken (TypeError: data type not understood):

pd.DataFrame(list('abc'),dtype='category')

df=pd.DataFrame(list('abc'), columns=['A'])
df['A'] = df['A'].astype('category')
df.to_records()

Works:

pd.Series(list('abc'), dtype='category')

pd.DataFrame(list('abc'), dtype=pd.core.common.CategoricalDtype)

df=pd.DataFrame(list('abc'), columns=['A'])
df['A'] = df['A'].astype(pd.core.common.CategoricalDtype)
df.to_records()

pd.Series(list('abc'), dtype='category').to_frame().to_records()

to_frame seems to remove the category dtype though.

Pandas version: 0.15.0-20-g2737f5a
Issue 1:
I have a problem with consistency of ES sorting. When I order for example by date, ES gives different orderings from one query to another because of duplicate dates. To fix this we usually perform sorting by date + sorting by _id, which meant to be unique, but it isn't. Sorting by _id field only acts the same, it is bouncing. We have config of ES 1.4.1, 1 shard + 1 replica per index. When I disable replica it seems that sorting bouncing stops.

Issue 2:
Elasticsearch version:

2.3.1

Description of the problem including expected versus actual behavior:

This is similar to #15291 but still happens with version 2.3.1 on slightly different circumstances. In the previous issue the field was a string, now it's an array.

POST /test_index
{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0
},
"mappings" : {
"file" : { }
}
}
}

POST /test_index/file
{
"texts": [
"quick brown fox here.",
"just a fox"
]
}

POST /test_index/file/_search
{
"query": {
"match_phrase": {
"text": "quick brown fox"
}
},
"highlight": {
"fields": {
"text": {
"number_of_fragments": 0
}
}
}
}

I expect to get a single highlighted fragment from the first string in the array, but instead I get

"hits" : [ {
"_index" : "test_index",
"_type" : "file",
"_id" : "AVRcVPVIk4eDYtUZXTb8",
"_score" : 0.34520942,
"_source" : {
"texts" : [ "quick brown fox here.", "just a fox" ]
},
"highlight" : {
"texts" : [ "<em>quick</em> <em>brown</em> <em>fox</em> here.", "just a <em>fox</em>" ]
}
} ]

The separate fox is also highlighted even though it doesn't actually match.
Issue 1:
Kubernetes v1.3

Kubelet v1.3

Steps to reproduce:

Create a service with the named port:

apiVersion: v1
kind: Service
metadata:
name: nginx-service
labels:
k8s-app: nginx-service
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
name: myport
selector:
k8s-app: nginx-service

Change "port" from 80 to some other value, call kubectl apply. It fails:

> kubectl apply -f n
proto: no encoder for TypeMeta unversioned.TypeMeta [GetProperties]
proto: tag has too few fields: "-"
proto: no coders for struct *reflect.rtype
proto: no encoder for sec int64 [GetProperties]
proto: no encoder for nsec int32 [GetProperties]
proto: no encoder for loc *time.Location [GetProperties]
proto: no encoder for Time time.Time [GetProperties]
proto: no coders for intstr.Type
proto: no encoder for Type intstr.Type [GetProperties]
The Service "nginx-service" is invalid.
spec.ports[1].name: Duplicate value: "myport"

Workaround: rename the port, and then apply works fine

Issue 2:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): no

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): "more than its spec" "is invalid"

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0+coreos.0", GitCommit:"278a1f7034bdba61cba443722647da1a8204a6fc", GitTreeState:"clean", BuildDate:"2016-09-26T20:48:37Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: AWS

OS (e.g. from /etc/os-release): CoreOS 1122.2.0

Kernel (e.g. uname -a): 4.7.0-coreos

Install tools: bootkube

Others:

What happened:

I've got 4 copies of pods for several deployments, though the replicas field is set to 3

NAME READY STATUS RESTARTS AGE
kube-controller-manager-237587340-epcni 1/1 Running 2 10h
kube-controller-manager-237587340-gtxil 1/1 Running 21 1d
kube-controller-manager-237587340-i396r 1/1 Running 2 2h
kube-controller-manager-237587340-u553o 1/1 Running 4 6h

What you expected to happen:

For it to only have 3 pods

How to reproduce it (as minimally and precisely as possible):

Unknown

Anything else do we need to know:

Deployment, pods, and logs attached

logs.txt

pods.yaml.txt

deployment.yaml.txt
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

next

node

OS

browser

etc

Issue 2:
Problem with building next.js 6.0.0-canary with transform-react-jsx-source plugin.

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Success build as in stable next 5.x version

Current Behavior

Crash with output:

Module build failed: TypeError: Cannot read property 'filename' of undefined
at PluginPass.JSXOpeningElement (...../node_modules/babel-plugin-transform-react-jsx-source/lib/index.js:32:38)

Steps to Reproduce

Setup custom babelrc with transform-react-jsx-source plugin

{
...
"development": {
"plugins": [
"transform-react-display-name",
"transform-react-jsx-source", // <1----
"transform-react-jsx-self"
]
},
...
}

next start

Note

Without transform-react-jsx-source build process is successful.

Your Environment

Tech
Version

next
6.0.0-canary.3

node
9.11.1

OS
Mac OS

deps
up-to-date
Issue 1:
Currently it only turns warnings from lints into errors. It should work like -Werror and replace all warnings by errors.

Issue 2:
Long winded test case using libcore: (build with --crate-type staticlib and --emit asm)

#![feature(no_std, lang_items, asm, core)]
#![no_std]

use core::fmt;

#[macro_use]
extern crate core;

#[lang="panic_fmt"]
extern fn panic_fmt(msg: &fmt::Arguments, file: &'static str, line: u32) -> ! {
loop { }
}

#[lang="stack_exhausted"]
extern fn stack_exhausted() {
loop { }
}

#[lang="eh_personality"]
extern fn eh_personality() {
loop { }
}

#[inline(always)]
fn foo() {
panic!("Das Ist Nümberwang!");
}

fn black_box<T>(mut value: T) -> T {
unsafe {
asm!("" :: "r"(&mut value) :: "volatile");
}
value
}

pub fn main() {
match black_box(5) {
1 => foo(),
48 => foo(),
92 => foo(),
23 => foo(),
4 => foo(),
70 => foo(),
29 => foo(),
36 => foo(),
34 => foo(),
58 => foo(),
_ => { }
}
}

This duplicates the following 3 times in the resulting code:

leaq _ZN3foo14_MSG_FILE_LINE20h7545777ae10911d4MaaE(%rip), %rdi
callq _ZN9panicking5panic20hefc2bd49b5114e0db7BE@PLT

This may not seem too bad, but in real world cases you can end up with something on the order of this: https://gist.github.com/Tobba/ab10d5644d3d4ef97917
Issue 1:
🐛 Bug Report

When running babel with preset-env on this code

import x from './x';

export default function(x) {}

It errors with 'Duplicate declaration "x"'

I think this is valid code however, as node has no problem executing the file (with esm)

Issue 2:
Noticed a little edge-case when preparing a related issue report.

Input:

var obj = {
get foo() {
// ...
},

set foo(value) {
// ...
}
};

Output:

var obj = function(_obj) {
Object.defineProperties(_obj, {
foo: {
get: // ...
function() {
// ...
},

set: // ...
function(value) {
// ...
}
}
});

return _obj;
}({});

As you can see, the comment lines repeated.
Issue 1:
Migrated issue, originally created by Anonymous

Traceback (most recent call last):

File "./scripts/reflect_models.py", line 162, in

main()

File "./scripts/reflect_models.py", line 153, in main

t = get_table(name, metadata, owner=user)

File "./scripts/reflect_models.py", line 127, in get_table

return sqlalchemy.Table(table_name, metadata, **kwargs)

File "/tmp/sa_ora_reflect_error/src/sqlalchemy/lib/sqlalchemy/schema.py", line 175, in call

metadata._get_engine(raiseerr=True).reflecttable(table)

File "/tmp/sa_ora_reflect_error/src/sqlalchemy/lib/sqlalchemy/engine/base.py", line 806, in reflecttable

self.dialect.reflecttable(conn, table)

File "/tmp/sa_ora_reflect_error/src/sqlalchemy/lib/sqlalchemy/databases/oracle.py", line 358, in reflecttable

row = c.fetchone()

File "/tmp/sa_ora_reflect_error/src/sqlalchemy/lib/sqlalchemy/engine/base.py", line 1024, in fetchone

return self._process_row(row)

File "/tmp/sa_ora_reflect_error/src/sqlalchemy/lib/sqlalchemy/engine/base.py", line 1109, in _process_row

row = [i) for i in xrange(len(row))](sup._get_col(row,)

File "/tmp/sa_ora_reflect_error/src/sqlalchemy/lib/sqlalchemy/engine/base.py", line 993, in _get_col

return rec1.convert_result_value(row[rec2], self.dialect)

File "/tmp/sa_ora_reflect_error/src/sqlalchemy/lib/sqlalchemy/databases/oracle.py", line 117, in convert_result_value

return value.read()

AttributeError: 'str' object has no attribute 'read'

When trying to troublshoot this bug, it appears, for the schema I have, it last worked in 0.3.8. Will attach a patch, taken from trunk, which works.

Attachments: oracle_reflection.diff

Issue 2:
Migrated issue, originally created by Anonymous

when reflecting from existing firebird table sqlalchemy reflects INTEGER fields as being BIGINT and BIGINT fields as NUMERIC
Issue 1:
Describe your question

Hi,

I've missed the ability to add IGNORE to the INSERT statement when doing bulk updates. So far I've extracted necessary pieces to make this work locally, but I was wondering if this is something that is welcomed in sqlalchemy. If that is the case I would PR this feature.

Example (if applicable)

bulk_save_objects(....,ignore_error=True)

(also for bulk version of update, insert)

Additional context

Useful links

https://stackoverflow.com/questions/1282025/bulk-insert-mysql-can-i-use-ignore-clause-is-there-a-limit-to-no-of-records#:~:text=Yes%2C%20you%20can%20use%20the,is%20a%20primary%20key)%3A

Have a nice day!

Issue 2:
Migrated issue, originally created by zoomorph (@zoomorph)

Listening for changes to a scalar attribute can be done via the 'set' event:

def validate_phone(target, value, oldvalue, initiator):
"""Strip non-numeric characters from a phone number"""

return re.sub(r'(?![0-9])', '', value)

# setup listener on UserContact.phone attribute, instructing
# it to use the return value
listen(UserContact.phone, 'set', validate_phone, retval=True)

When Mutable attributes are set, they also emit the 'set' event. However, they do not emit any events when they are merely changed.

A new event such as 'changed' should be added to cover this case. It would work like so:

def favorites_changed(target, value, oldvalue, initiator):
logger.info("Favorites was set or changed")
# do something

# setup listeners on UserContact.favorites attribute (a MutableList for example)
listen(UserContact.favorites, 'set', favorites_changed)
listen(UserContact.favorites, 'changed', favorites_changed)

u = session.query(UserContact).first()
u.favorites = [1, 2, 3] # emits 'set'
u.favorites.append(4) # should emit 'changed'
u.favorites[-1] = 5 # should emit 'changed'

Related to issue #3297
Issue 1:
xticklabels and yticklabels kwargs in clustermap are broken in seaborn v0.8.

This behaviour can be reproduced by:

$ conda create -n seaborn0.8 python=3 seaborn=0.8
$ source activate seaborn0.8
$ python
>>> import numpy as np
>>> import seaborn as sns
>>> sns.clustermap(np.random.rand(5,5), xticklabels=False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/harry/anaconda3/envs/seaborn0.8/lib/python3.6/site-packages/seaborn/matrix.py", line 1301, in clustermap
**kwargs)
File "/Users/harry/anaconda3/envs/seaborn0.8/lib/python3.6/site-packages/seaborn/matrix.py", line 1142, in plot
self.plot_matrix(colorbar_kws, xind, yind, **kws)
File "/Users/harry/anaconda3/envs/seaborn0.8/lib/python3.6/site-packages/seaborn/matrix.py", line 1118, in plot_matrix
xtl_rot = self.ax_heatmap.get_xticklabels()[0].get_rotation()
IndexError: list index out of range

With seaborn v0.7 this behaviour works as expected:

$ conda create -n seaborn0.7 python=3 seaborn=0.7
$ source activate seaborn0.7
$ python
>>> import numpy as np
>>> import seaborn as sns
>>> sns.clustermap(np.random.rand(5,5), xticklabels=False)
/Users/harry/anaconda3/envs/seaborn0.7/lib/python3.6/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The axisbg attribute was deprecated in version 2.0. Use facecolor instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
<seaborn.matrix.ClusterGrid object at 0x101a22898>

Issue 2:
Dataset:

train.csv

Code:

import numpy as np
import pandas as pd
import plotly.express as px
import matplotlib.pyplot as plt
import seaborn as sns

train_df = pd.read_csv("train.csv")

train_df["CryoSleep"] = train_df["CryoSleep"].astype(bool)
train_df["VIP"] = train_df["VIP"].astype(bool)
train_df["CryoSleep"] = train_df["CryoSleep"].astype(int)
train_df["VIP"] = train_df["VIP"].astype(int)
train_df["Transported"] = train_df["Transported"].astype(int)
train_df["HomePlanet"] = train_df["HomePlanet"].astype("category")
train_df["Destination"] = train_df["Destination"].astype("category")
_ = train_df.drop(columns=["PassengerId", "Cabin", "Name"]).copy(deep=True)

sns.pairplot(_.dropna())

No matter what, I cannot make it work on this dataset. Even if you skip the type conversion block and apply it to the original train_df it still fails. Even without dropna() it still fails.

Complete error message:

https://gist.github.com/FlorinAndrei/f84c68a3efdab40968ffd84687e5e343

Python 3.11.3

Pandas 2.0.0

Numpy 1.24.2

Seaborn 0.12.2

Jupyter Notebook
Issue 1:
+(/io/multibuild/common_utils.sh:469): install_pypy(): wget -nv https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v7.3.1-linux64.tar.bz2 -P downloads
https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v7.3.1-linux64.tar.bz2:
2020-09-10 02:11:44 ERROR 404: Not Found.

@mattip Any idea what is going on here? The needed package seems to be available at

https://downloads.python.org/pypy/pypy3.6-v7.3.1-src.tar.bz2 for source. There is also a CentOS 6 compatible binary at https://downloads.python.org/pypy/pypy3.6-v7.3.1-linux64.tar.bz2. Should we be using one of those?

Issue 2:
Both #16083 and #14924 show this error in the Azure Linux PyPy3 error log:

=================================== FAILURES ===================================
_________________________ TestCApiAccess.test_getitem __________________________

self = <numpy.core.tests.test_indexing.TestCApiAccess object at 0x0000000009dfd2b8>

def test_getitem(self):
subscript = functools.partial(array_indexing, 0)

# 0-d arrays don't work:
assert_raises(IndexError, subscript, np.ones(()), 0)
# Out of bound values:
assert_raises(IndexError, subscript, np.ones(10), 11)
> assert_raises(IndexError, subscript, np.ones(10), -11)

self = <numpy.core.tests.test_indexing.TestCApiAccess object at 0x0000000009dfd2b8>
subscript = functools.partial(<builtin_function_or_method object at 0x00007fc4341d21e0>, 0)

numpy/core/tests/test_indexing.py:1268:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../pypy3/lib-python/3/unittest/case.py:733: in assertRaises
return context.handle('assertRaises', args, kwargs)
args = (functools.partial(<builtin_function_or_method object at 0x00007fc4341d21e0>, 0), array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]), -11)
context = None
expected_exception = <class 'IndexError'>
kwargs = {}
self = <numpy.testing._private.utils._Dummy testMethod=nop>
../../../pypy3/lib-python/3/unittest/case.py:178: in handle
self = <unittest.case._AssertRaisesContext object at 0x0000000009dfd280>
standardMsg = 'IndexError not raised by functools.partial(<builtin_function_or_method object at 0x00007fc4341d21e0>, 0)'

../../../pypy3/lib-python/3/unittest/case.py:135: AssertionError
Issue 1:
I have RHEL 7 distribution behind a proxy. I installed julia using official documentation and everything seemed to be fine.

Here's the yum listing (note, libgit2 is 0.23.1)

Installed:
julia.x86_64 0:0.5.0-1.el7.centos

Dependency Installed:
arpack.x86_64 0:3.1.3-2.el7
atlas.x86_64 0:3.10.1-7.el7
dSFMT.x86_64 0:2.2.3-4.el7.centos
fftw-libs-double.x86_64 0:3.3.3-8.el7
http-parser.x86_64 0:2.7.1-3.el7
julia-common.noarch 0:0.5.0-1.el7.centos
julia-devel.x86_64 0:0.5.0-1.el7.centos
libgit2.x86_64 0:0.23.3-1.el7.centos
llvm3.7-libs.x86_64 0:3.7.1-3.el7.centos
openblas-threads.x86_64 0:0.2.19-4.el7
openlibm.x86_64 0:0.5.3-1.el7
openspecfun.x86_64 0:0.5.3-1.el7
pcre2.x86_64 0:10.21-11.el7
suitesparse.x86_64 0:4.4.5-2.el7.centos
tbb.x86_64 0:4.1-5.20130314.el7
utf8proc.x86_64 0:2.0.2-1.el7.centos

Complete!

However, the further Pkg.add("IJulia") invocation failed on METADATA.jl cloning.

julia> Pkg.add("IJulia")
INFO: Initializing package repository /root/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Net, No Content-Type header in response)
in #clone#109(::String, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractCr edentials}, ::Function, ::String, ::String) at ./libgit2/libgit2.jl:327
in add(::String) at ./pkg/pkg.jl:100
in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64
in macro expansion at ./REPL.jl:95 [inlined]
in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68

I decided to post it as a bug, because

Proxy settings seems to work fine. Without environment variables HTTP_PROXY/HTTPS_PROXY being set I'm getting the error Failed to connect, not the one posted above.

Git is also configured fine. And actually, I overrulled Pkg.init() by manually running this code with run(): git clone [github]/METADATA.jl [HOME]/.julia/v.0.5/METADATA.

I haven't find similiar errors in already posted issues.

Issue 2:
I think it might be a good idea if we revised the NamedTuple internals to be something like this:

(; a = 1, b = 2) goes to (name"a" => 1, name"b" => 2), where the name string macro would pull the symbol into the type domain. I can see the following advantages

It would allow mixing unnamed and named entries in the same tuple

It would allow for much easier programmatic construction of named tuples

It would unify the tuple and the NamedTuple internals

It would remove the need for generated functions in the NamedTuple code (these kind of types are much easier to handle with recursion)

I can see the following disadvantages:

NamedTuple construction automatically checks for duplicate keys, but this syntax would allow duplicate keys, perhaps only throwing an error when getproperty is called (although just returning the first match could also be a valid option)
Issue 1:
Version

2.6.10

Reproduction link

https://codesandbox.io/s/vue-template-n369v

Steps to reproduce

create a component

and write the template structure like

<div>
<div class="test" v-if="flag">
<h2>first v-if</h2>
</div>
<div v-show="!flag">
<!-- any component that i want to render -->
<FullLifeCycle/>
</div>
<div v-if="flag">
<h2>second v-if</h2>
</div>
</div>

when using v-if, v-show, v-if together

and notice that the first element must give a class name

then, the component that in the v-show scope will be created twice (look my example console)

if i change the flag condition(i wrote that with a button), the component instance always recreates every times.

What is expected?

the component instance in v-show scope should be created once

What is actually happening?

when using v-if, v-show, v-if together

and notice that the first element must give a class name

then, the component that in the v-show scope will be created twice (look my example console)

I wrote all the component life cycle in v-show scoped.

the solutions

remove the first element(with v-if) class name will work correct(but i need the class name, lol)

do not use v-if => v-show => v-if structure. (could write as v-if => v-show => v-show, the bug wont happen)

Issue 2:
Version

2.6.10

Reproduction link

https://codepen.io/Richm8/pen/VoWZQZ

Steps to reproduce

In the attached codepen, Open console and then click on the toggle button, you'll see that the created and destroyed hooks are called for the logger component even though the component is not having any manipulations performed on it.

What is expected?

The created and destroy hooks on logger not to be called

What is actually happening?

The created and destroy hooks on logger are being called