text:
Record an introductory demo

Description of problem
There have been multiple requests and also an outstanding one since Cartographer launch, to have a recorded demo where we introduce users on how to actually use Carto.
It could be something like 'a day in the life of a workload through a supply chain which is choreographed by Cartographer'
As described by one of the users who requested a demo, the expected outcome could look like:

How to create a workload, label it and run it through a choreographed supply chain

Tagging  @ciberkleid and @waciumawanjohi to know your thoughts around this.

Also related to #275

Done as part of TGIK episode:
https://www.youtube.com/watch?v=TJPGn0-hpPY&t=1957s

repo: vmware-tanzu/cartographer


text:
Cartographer fails with ServiceAccountSecretError on k8s 1.24

You'll see an error like this:
Status:
  Conditions:
    Last Transition Time:  2022-06-23T07:27:06Z
    Message:
    Reason:                Ready
    Status:                True
    Type:                  SupplyChainReady
    Last Transition Time:  2022-06-23T07:27:06Z
    Message:               service account [my-apps/default] does not have any token secrets
    Reason:                ServiceAccountSecretError
    Status:                False
    Type:                  ResourcesSubmitted
    Last Transition Time:  2022-06-23T07:27:06Z
    Message:               service account [my-apps/default] does not have any token secrets
    Reason:                ServiceAccountSecretError
    Status:                False
    Type:                  Ready
  Observed Generation:     1
  Supply Chain Ref:
    Kind:  ClusterSupplyChain
    Name:  source-to-url
Events:    <none>

This is because in k8s 1.24:

Secrets are not automatically created for ServiceAccounts
ServiceAccounts no longer list their Secrets

We should instead obtain tokens as necessary using the Token API which is the recommended way from the deprecation.
A similar issue occurred with carvel-kapp-controller:
(Link to Issue)[https://github.com/vmware-tanzu/carvel-kapp-controller/issues/687]
(Link to Fix)[https://github.com/vmware-tanzu/carvel-kapp-controller/pull/695]

on testing, we might be able to add a test matrix for 1.24 & 1.23 by tweaking
# hack/setup.sh
25:readonly KIND_IMAGE=${KIND_IMAGE:-kindest/node:v1.21.1}
169:    KIND_IMAGE:     $KIND_IMAGE
213:    image: ${KIND_IMAGE}

🤔

source: gharchive/issue

authors: cirocosta idoru

license_type: permissive

license_source: github-api


text:
kapp is not working on WSL2/docker

What steps did you take:
FROM ubuntu:latest

ENV KAPP_VERISON 0.35.0

RUN \
  apt update && apt install -y curl && \
  curl -sSL "https://github.com/vmware-tanzu/carvel-kapp/releases/download/v${KAPP_VERSION}/kapp-linux-amd64" -o /usr/local/bin/kapp && chmod +x /usr/local/bin/kapp

RUN kapp

What happened:
kapp
/usr/local/bin/kapp: line 1: Not: command not found

What did you expect:
kapp should run on WSL2/docker
Anything else you would like to add:
no
Environment:

kapp version (use kapp --version): 0.35.0
OS (e.g. from /etc/os-release): WSL2
Kubernetes version (use kubectl version)

Hey @lukasmrtvy,
We were able to reproduce this and actually had trouble with figuring it out too, but it looks like there is a typo in the Dockerfile above.
ENV KAPP_VERISON 0.35.0 should be ENV KAPP_VERSION 0.35.0
VERSION has the typo.
//cc @gcheadle-vmware @pivotal-dean

Hey @lukasmrtvy,
We were able to reproduce this and actually had trouble with figuring it out too, but it looks like there is a typo in the Dockerfile above.
ENV KAPP_VERISON 0.35.0 should be ENV KAPP_VERSION 0.35.0
VERSION has the typo.
//cc @gcheadle-vmware @pivotal-dean

oh, stupid me, sorry guys for bothering..

oh, stupid me, sorry guys for bothering..

authors: danielhelfand lukasmrtvy

repo: vmware-tanzu/carvel-kapp


text:
Added configuration option for docker buildkit

Referencing: #81
(Re-opening due to CLA troubles.)
This change adds configuration to enable docker buildkit in the following format:

apiVersion: kbld.k14s.io/v1alpha1
kind: Config
sources:

image: foo/bar
path: bar/
docker:
build:
file: docker/bar/Dockerfile
buildkit: true
Signed-off-by: Andrew Costa ancosta@vmware.com

Looks like the CLA signing didn't propagate, so I'll try closing and opening again.

Looks like the CLA signing didn't propagate, so I'll try closing and opening again.

source: gharchive/pull-request

repo: vmware-tanzu/carvel-kbld


text:
Release ytt v0.33.0

Release Checklist

[x] Create release in Github

[x] Bump Version
[x] Create an OSM Release
[x] Create a Github release
[x] Create the Release Notes
[x] Generate Binaries and Checksum

[x] Ask Dmitriy to deploy this release to the Playground.
[x] Close any GitHub issues that have been delivered.

[x] Add a link to the release on the issue.

[x] Update the packaging repositories

[x] Update Homebrew
[x] Update Github Action
[x] Update Website Installation Script

[x] Create TanzuNet product
~[ ] Push any artifacts to a registry~ (skipped this step)
[x] Add announcement in community meeting
~[ ] Confirm Playground has the new version.~ (never happened)
[x] Communicate in Slack

Post Release:

[x] update ytt docs 😬
[ ] attach OSL file to TanzuNet Product
[ ] Notify Chocolatey maintainer of new release

OSL file in hand. Requesting TanzuNet Admins to make product mutable: https://vmware.slack.com/archives/C055G2ZGW/p1623274217086600

repo: vmware-tanzu/carvel-ytt


text:
tanzu cli version doesn't match released version

Bug Report
Just installed tanzu 0.9.1 release to test and when I run tanzu.exe the version is v0.2.1
❯  tanzu version
version: v0.2.1
buildDate: 2021-09-29
sha: ceaa474

Expected Behavior
That the CLI says it's version 0.9.1
Steps to Reproduce the Bug
Install and run tanzu version
Screenshots or additional information and context

Environment Details

Build version (tanzu version):  buildDate: 2021-09-29
Deployment (Managed/Standalone cluster):
Infrastructure Provider (Docker/AWS/Azure/vSphere):
Operating System (client):  Windows 10

Diagnostics and log bundle

This is actually correct since the tanzu CLI we use is from the v0.2.1 release of tanzu-framework.
There is an open item to expand this version output to include other components where we could have something better indicate which version of TCE is being used.
Going to close this as a duplicate of https://github.com/vmware-tanzu/tanzu-framework/issues/36

authors: iguyking stmcginnis

repo: vmware-tanzu/community-edition


text:
Need to modify OVA template in order to configure node's booting

I'v tried to logon into the VM created from the OVA photon-3-kube-v1.22.5+vmware.1-tkg.2-tce-011.ova at the login prompt with root/changeme.
But it doesn't work.
I need to enter in the VM in order to customize it by modifing the configuration in /etc/default/docker with
DOCKER_OPTS="--insecure-registry reg.poltronesofa.com"
In this way every node of every cluster I made is ready to use my private registry.
How can i enter ?

Hi @gbonazzoli - logging in locally with a password is disabled. Part of the deployment is providing an SSH key that gets configured for log in. See https://tanzucommunityedition.io/docs/v0.11/tips/#connect-to-cluster-nodes-with-ssh for details on how to connect to the VM.

You may want to avoid manually modifying the nodes though. There is some information here about configuring tanzu to use a private registry: https://docs.vmware.com/en/VMware-vSphere/7.0/vmware-vsphere-with-tanzu/GUID-376FCCD1-7743-4202-ACCA-56F214B6892F.html
I don't think we have anything in the TCE docs, at least yet.

Thank you @stmcginnis
I connected through ssh to the deprivileged capv user (in vSphere) and then sudo bash to become root.
Than I modified /etc/default/docker and rebooted the node.
And it works like a charm.
I can finally work with my private container registry.
Do you think that if I transform this modified virtual machine into the photon-3-kube-v1.22.5+vmware.1-tkg.2-tce-011.ova template, tanzu will be equally happy ?

Do you think that if I transform this modified virtual machine into the photon-3-kube-v1.22.5+vmware.1-tkg.2-tce-011.ova template, tanzu will be equally happy ?

I don't believe that would work. There are modifications done to the VM with cloud-init, so the currently running configuration is not what would be expected when initially deploying the template.

@kcoriordan, engineering talked and we think details about using a private registry would be great for our docs. Is this something we could target for a future release?

authors: gbonazzoli joshrosso stmcginnis


text:
Create a knative plugin

Services
Revisions
Logs
Events, Metrics

For events we can use https://github.com/n3wscott/graph/ as a library to generate the dot file and render that output using our graphviz component. We make want to consider making an upstream contribution to make the setting of URL calls done via a URL function so that we can set the URL to Octant URLs.
We want to List services
We want to show Service details (revisions, logs)
For metrics we would need a new chart component to show useful visualizations.

I want to gather up some more details about what views for a knative plugin would look like and what functionality it might have, if any?
@mattmoor @n3wscott do you all have any thoughts on this? Would love to know what you would consider the top 1 or 2 things that would go in to an initial knative plugin for Octant.

For serving...
I think getting Knative Services into the workload via would be a good start.  Being able to visualize the history of Revisions (and which are ready / getting traffic) would be a great next step.  Not sure if/how-far you have done down the "editing rabbit hole", but there are a few higher-level experiences there that would be nice.
cc @evankanderson @vaikas as well

Also the concept of ducks and listing things that are Addressable or Sources? I am working on ClusterDuckTypes to help this but it is likely a few weeks out, I can try to push for 0.18 kn release to get a PoC out, work happening here: github.com/knative-sandbox/discovery

For serving...
I think getting Knative Services into the workload via would be a good start. Being able to visualize the history of Revisions (and which are ready / getting traffic) would be a great next step. Not sure if/how-far you have done down the "editing rabbit hole", but there are a few higher-level experiences there that would be nice.
cc @evankanderson @vaikas as well

This issue here is really an Epic/tracking issue, so please feel free to dump details about editing as well.

Traffic control will be an interesting one.  Shifting traffic forwards or rolling back.

See: https://github.com/vmware-tanzu/octant-plugin-for-knative

repo: vmware-tanzu/octant


text:
143: Fixing installation instruction in https://vsecm.com/docs/instal…

Fixing installation instruction in https://vsecm.com/docs/instllation/

Looking good. — once merged, I’ll re-build the UI and republish and do a final check.

repo: vmware-tanzu/secrets-manager


text:
[main] Upgrade to latest dependencies

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

Codecov Report

Merging #503 (12bbd1b) into main (cd1012f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #503   +/-   ##
=======================================
  Coverage   66.23%   66.23%
=======================================
  Files          38       38
  Lines        2079     2079
=======================================
  Hits         1377     1377
  Misses        657      657
  Partials       45       45

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

authors: codecov-commenter knative-automation

repo: vmware-tanzu/sources-for-knative


text:
Add boolean validation for tanzu config set feature flags

What this PR does / why we need it

Add validation for tanzu config set feature flag value to restrict to boolean true or false values.

Which issue(s) this PR fixes

Fixes #
Describe testing done for PR

Added unit tests
Manual testing

> tz config get | grep foo
> tz config set features.global.foo bar
[x] : invalid value provided only boolean true or false are accepted
> tz config set features.global.foo true
> tz config set features.global.foo false
> tz config set features.global.foo bar
[x] : invalid value provided only boolean true or false are accepted
> tz config set features.global.foo ""
[x] : invalid value provided only boolean true or false are accepted
> tz config set features.global.foo true
> tz config get | grep foo
            foo: "true"
>

Release note

Tanzu CLI will only allow boolean true or false feature flag values

Additional information
Special notes for your reviewer

For completeness let's mention that this PR is technically not a backwards-compatible change. A script could currently run tz config set features.cluster.myfeat TRUE and everything would work but now it will not be able to. Considering the scenarios, I think a small breaking change is ok but I'd like opinions. @mpanchajanya @vuil @anujc25
If we want to reduce the risk of breakage we could allow the widest, valid and consistent values. Those values must work for both APIs, so they would be true/false, TRUE/FALSE and True/False. That being said, I think true/false is enough but I'd also like opinions.

Thanks for the explanation. Yes, I think this should be fine to accept as the field was used to set a boolean so far.

repo: vmware-tanzu/tanzu-cli


text:
Design bug fixes

I think I forgot to sync my fork correctly before creating the branch and starting a new pull request.
Fixes #502
Fixes #649
Fixes #544

This PR should be good to merge now... After talking with Rachel, wide screen mode on the guides pages will be it's own backlog card since we would want to make every page on the site have a wide view. So more of a global approach @BrianMMcClain @bryanfriedman

repo: vmware-tanzu/tanzu-dev-portal


text:
[NG] make datagrid header draggable

This PR includes changes that sets draggable directives to our datagrid headers.
There are two issues that I found while testing that haven't been solved in this PR. I would like to hear reviewers' takes on them:

On iOS devices, the scrolling is being triggered during dragging. Only trick that was solving this issue was using preventDefault on touchstart event.

The draggable ghost that's resetting/returning to its origin position is being clipped if the header gets dragged outside the datagrid. This is only specific to Chrome.

Preview: http://column-with-draggable.surge.sh/datagrids
Signed-off-by: stsogoo stsogoo@vmware.com

@gnomeontherun those are good points. Currently, once we place the clrDraggable directive on any element, that element will be draggable permanently. So eventually as you mentioned, we might want to add that option of locking columns or making columns non-draggable.
Another point you have raised is closing a filter panel. And I believe it should be closed once dragging starts. I think that could be addressed in this PR.

repo: vmware/clarity

license: MIT


text:
Feature: Preserve whitespace in text such as tabs and  newline in text

Our use case (ML/OSTC/OCTO) involves labeling GitHub reviews and comments. Currently the whitespace gets eliminated making human labeling of data more difficult.

Do you have a sample file that we can take a look at?

authors: SteveLiang mkbhanda


text:
Shared plugin: refactor kvstore and docker ops

Create a new kvStore interface, and have etcd as one of
the implementations of the kvStore interface.
Move docker host related operations to dockerops package

local testbed e2e passed.

@shivanshu21
Yes. It's set in config.json when the plugin is built.

repo: vmware/docker-volume-vsphere


text:
Silencing mount logs on plugin side to Debug instead of Info

Fixes #1703
Log for command: docker run -v test1:/vol busybox echo "Hello World"
2017-08-07 10:15:29.855702144 -0700 PDT [INFO] Mounting volume name=test1
2017-08-07 10:15:29.935677786 -0700 PDT [INFO] Directory doesn't exist, creating it path="/mnt/vmdk/test1@sharedVmfs-0"
2017-08-07 10:15:30.323388376 -0700 PDT [INFO] Scan complete device="/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0" event="/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0": 0x100 == IN_CREATE
2017-08-07 10:15:30.682192924 -0700 PDT [INFO] Unmounting Volume name=test1

@govint I think you meant to approve.

Yes, sorry clicked wrong.

authors: govint pshahzeb


text:
Bug: tox lint commands reports warnings

What happened?
The output of the lint checks, i.e. https://github.com/vmware/repository-service-tuf-api/pull/235/checks#step:5:65 , includes several warnings about the use of a glob matching pattern.
What steps did you take?
No response
What behavior did you expect?
Only warnings or errors introduced by a PR are reported in the checks output.
Relevant log output
> Warning:  The 'exclude' field in hook 'flake8' is a regex, not a glob -- matching '/*' probably isn't what you want here

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hey @joshuagl, thanks for pointing this out. ☺ I believe this is not a bug.
This warning was added to pre-commit in this issue. pre-commit expects in exclude a python regular expressions matched with re.search (see here).
Basically, in our use-case this warning is triggered from the inclusion of /*lib/python*|/*egg (the / specifically) in the exclude section. What we want to achieve with this is, for flake8 in this case, to not get the files that match this expression passed to it.
If we omitted the / we would get a TypeError("first argument must be string or compiled pattern").
You can verify that the match works (here is where pre-commit does it) by testing with this:
import re

def test_file_regex(regex, filename):
     pattern = re.compile(regex)
     print(pattern.search(filename))

test_file_regex("/*egg"", "asdfegg")  # <re.Match object; span=(4, 7), match='egg'>

These exclusion were adapted from the flake8 configuration (repository_service_tuf/__init__.py,venv,.venv,settings.py,.git,.tox,dist,docs,*lib/python*,*egg,build,tools) we used to have and flake8 uses glob patterns (see here)
What I do see we can do as an improvement is specify the regex's start/ending, for example, /*egg$, otherwise, asdfeggother also matches. This could be done for all patterns.
(@kairoaraujo, @MVrachev what do you think?)

Thanks for the detailed response. So is there a mismatch here? As far as I understand your writeup, the pre-commit framework expects exclude patterns to be in regular expression format, whereas flake8 expects exclude patterns to be in glob format.
This is causing errors to be surfaced when a glob format exclude is passed to a tool expecting a regular expression formatted exclude pattern. Is that right?

This is causing errors to be surfaced when a glob format exclude is passed to a tool expecting a regular expression formatted exclude pattern. Is that right?

Not exactly, by excluding files in pre-commit they are never passed to flake8 for linting, which is what we want. We just have to take into account that pre-commit expects a regular expression format.
What we have now works, but it's not the exact match of what we used to have in the flake8 formatted exclude.
Example:
flake8: settings.py - this means that only the file settings.py will be excluded (what we used to have in tox.ini's flake8 config)
pre-commit: settings.py - this means that the file settings.py but also a file name test-setting.py will be excluded.
If we want to have a more precise match we should change it to: ^settings.py$

If we have a precise idea of what we want to exclude I am okay to clarify the regex.
Honestly, I didn't understand does pre-commit successfully exclude the files we want or not. Are there files we miss now?
The example was not very clear to me.

This is causing errors to be surfaced when a glob format exclude is passed to a tool expecting a regular expression formatted exclude pattern. Is that right?

Not exactly, by excluding files in pre-commit they are never passed to flake8 for linting, which is what we want. We just have to take into account that pre-commit expects a regular expression format.
What we have now works, but it's not the exact match of what we used to have in the flake8 formatted exclude.
Example:
flake8: settings.py - this means that only the file settings.py will be excluded (what we used to have in tox.ini's flake8 config)
pre-commit: settings.py - this means that the file settings.py but also a file name test-setting.py will be excluded.
If we want to have a more precise match we should change it to: ^settings.py$

AFAIK we are not missing files, but as mentioned above, the exclude in .pre-commit-config.yaml expects a regular expression format (that will be matched with re.search). So, for example, adding settings.py to the list will not only exclude the file named settings.py, but would also exclude a file named, e.g., test-setting.py.

I understand.
If you want to spend time on this so we can properly exclude folders I support it.
On the topic of excluding folders: I was thinking that instead of excluding folders why don't we include the ones we want to lint?
They are not many top-level folders and this will make it easier for us to add new configuration files or other meta folders.
@kairoaraujo do you have any opinion on this?

I see. If you want to spend time on this so we can properly exclude folders I support it.

+1 it is not a hurry to close this issue. Even if @KAUTH doesn't want to work on it we can add it as a task for this issue to be closed.

On the topic of excluding folders: I was thinking that instead of excluding folders why don't we include the ones we want to lint? They are not many top-level folders and this will make it easier for us to add new configuration files or other meta folders. @kairoaraujo do you have any opinion on this?

The excluding is more safety.
If we introduce a new folder and don't add it to the included list, it can take a long time until we notice that.

The excluding is more safety.
If we introduce a new folder and don't add it to the included list, it can take a long time until we notice that.

I would go this way as well

authors: KAUTH MVrachev joshuagl kairoaraujo

repo: vmware/repository-service-tuf-api


text:
bar显示K线图时报错TypeError: can't compare offset-naive and offset-aware datetimes

环境

操作系统: 如Windows 10
vn.py版本: 如v2.1.9.x

Issue类型
三选一：Bug
实际程序行为
群主，您好
该问题在vnpy社区提了，根据xiaohe要求在这里发个issue的。
===
2021年3月19日 下午1:11
群主，您好
使用K线图表时，报错，错误信息如下：
Traceback (most recent call last):
File "D:\00_VNPY_2.x\Anaconda3\lib\site-packages\vnpy\app\chart_wizard\ui\widget.py", line 188, in process_history_event
chart.update_history(history)
File "D:\00_VNPY_2.x\Anaconda3\lib\site-packages\vnpy\chart\widget.py", line 158, in update_history
self._manager.update_history(history)
File "D:\00_VNPY_2.x\Anaconda3\lib\site-packages\vnpy\chart\manager.py", line 30, in update_history
self._bars = dict(sorted(self._bars.items(), key=lambda tp: tp[0]))
TypeError: can't compare offset-naive and offset-aware datetimes
这个是获取数据库的bar的时候，显示在图表上的时候报错的，获取au2106，au2112以及其他单标旳的时候没问题，但是获取价差.LOCAL显示历史数据bar的时候，就报错的，请问都是从同一个数据表获取数据，都是一样的数据格式，为何这里报错的？请您百忙中指导下，谢谢！
该如何调整或者修改呢？
===
2021年3月19日 下午1:20
群主，您好
经过查找，感觉是价差base.py位置的calculate_price使用的是
# Update calculate time
self.datetime = datetime.now()
而接口（ctp）中使用的是：
timestamp = f"{self.current_date} {data['UpdateTime']}.{int(data['UpdateMillisec']/100)}"
dt = datetime.strptime(timestamp, "%Y%m%d %H:%M:%S.%f")
dt = CHINA_TZ.localize(dt)
需要将价差base.py中calculate_price函数中的
# Update calculate time
self.datetime = datetime.now()
进行更改，否则在to_tick中是
datetime=self.datetime,
这样保存到数据库中虽然可以保存，但是读取过来就出错了。
得看哪种方式调整最优了，感觉需要修改calculate_price里边的。

xiaohe
2021年3月19日 下午1:45
应该是一个有时区信息一个没有导致的，方便的话可以去github开个issue, 谢谢

确定是在spread位置的datetime没有zone导致的，修改了后续存的数据再查询就不报错了，参考的是ib的gateway的实现方式。

已修复，非常感谢

repo: vnpy/vnpy

license: mit

license_source: bigquery


text:
Vocabulary-Search in group route

Status
Type
Env Vars Change

:x: Hold
Feature
No

Description
Added optional search query parameter to group/:groupId/vocabulary route.
Screenshots / GIFs (if appropriate):
Dummy frontend integration:

Resolves
https://github.com/vocascan/vocascan-frontend/issues/108

Notiz an mich selber: Parameter in die Swagger Doku schreiben

Can be merged 👍

repo: vocascan/vocascan-server


text:
🛑 Gitea is down

In 79c93bc, Gitea (https://git.voit.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gitea is back up in bee1113.

repo: voitcode/upptime


text:
Is Bulgarian to ASCII correct?

Example: Is this correct?
"пример" -> "primer"

Can a native speaker, please check the character-replacement, thanks.
https://github.com/voku/portable-ascii/blob/master/src/voku/helper/data/ascii_by_languages.php#L208

checked & fixed by @mkosturkov

repo: voku/portable-ascii


text:
Request to be an member of Volcano community

hi, members of Volcano community. i believe volcano is a bigdata-training advanced scheduler in k8s, i had learnt a lot from it and community, im glad to give a hand to someone help-need with my learnt. Here are some of my contributions:
volcano-sh/volcano#2260
(WIP)issues#2337
(WIP)issues#2282
i hope can join as a member of this thriving community and contribute more, gain more, help more in the future.

Thanks for your contribution! Welcome to Volcano community!
/lgtm

/approve

+1
/approve

Invited, please visit https://github.com/volcano-sh to accept the invitation.

authors: Thor-wl kevin-wangzefeng shinytang6 waiterQ william-wang

repo: volcano-sh/community


text:
fix response_mask index

Issue Overview
Hello, and thank you for your hard work on this project! While using verl, I noticed a calculation error in the compute_data_metric function within ray_trainer. Specifically, the function uses a 2D int tensor instead of the expected bool tensor for indexing. This discrepancy, based on PyTorch's advanced indexing mechanism, results in a 3D array rather than the expected 1D array.
Problem Details
The core issue lies in the behavior of PyTorch advanced indexing when using non-boolean tensors:

Incorrect Mask Behavior:

Advanced indexing treats the provided 2D tensor as integer-based indices instead of a mask.
As a result, indexing operates row-by-row, failing to correctly mask elements in the same row that are not part of the desired response.

Excessive Memory Usage:

The resulting data shape unexpectedly inflates from batch_size * sequence_length to batch_size * sequence_length * sequence_length.

For large sequence lengths (e.g., 16k), this causes the program to exceed available memory (CPU OOM), leading to worker termination. The system may output the following cryptic error:
A worker died or was killed while executing a task by an unexpected system error.
To troubleshoot the problem, check the logs for the dead worker...

Minimal Reproduction Code
Below is a minimal code example that demonstrates the issue:
import torch

# 定义一个二维张量
x = torch.tensor([
    [10, 20, 30],
    [40, 50, 60],
    [70, 80, 90]
])

# 定义一个二维掩码
mask = torch.tensor([
    [1, 0, 1],
    [0, 1, 0],
    [1, 1, 1]
])

print("原始张量:")
print(x)
print("掩码:")
print(mask)
print("布尔索引结果:")
print(x[mask.bool()])
# tensor([10, 30, 50, 70, 80, 90])
print("直接索引结果：")
print(x[mask])
# tensor([[[40, 50, 60],
#          [10, 20, 30],
#          [40, 50, 60]],

#         [[10, 20, 30],
#          [40, 50, 60],
#          [10, 20, 30]],

#         [[40, 50, 60],
#          [40, 50, 60],
#          [40, 50, 60]]])

Proposed Fix
To resolve the issue, simply add .bool() to convert response_mask into mask tensor as expected.

Hi @huiyeruzhou, thanks for your contribution!
Your fix for the metrics looks good to me.

It seems that the ci has some problems. I'll merge this branch after this PR https://github.com/volcengine/verl/pull/59 is merged. Sorry about that.

repo: volcengine/verl


text:
.Net Core Migration issue with MySql.

When trying to import the database i get the following error: (When using an old serene database its working fine, i can login easily, so the problem is with running migrations for the 1st time)
I Modified line 147,148 in DataMigrations to

            SkippedMigrations = false;
            //return;

and i get:

MySql.Data.MySqlClient.MySqlException: Invalid attempt to Read when reader is closed.
at MySql.Data.MySqlClient.MySqlDataReader.Throw(Exception ex)
at MySql.Data.MySqlClient.MySqlDataReader.Read()
at FluentMigrator.Runner.VersionLoader.LoadVersionInfo()
at FluentMigrator.Runner.MigrationRunner..ctor(IAssemblyCollection assemblies, IRunnerContext runnerContext, IMigrationProcessor processor)
at FluentMigrator.Runner.Initialization.TaskExecutor.Initialize()
at FluentMigrator.Runner.Initialization.TaskExecutor.Execute()
at VIGMA.DataMigrations.RunMigrations(String databaseKey) in ....AspNetCore\Initialization\DataMigrations.cs:line 172

At line 172 its:

new TaskExecutor(runner)
{
ConnectionString = cs.ConnectionString
}.Execute();

Read docs carefully

authors: chizdamasii volkanceylan

repo: volkanceylan/Serenity


text:
CORE v3.04 - Crash on new project start - CultureNotFoundException

Just downloaded the latest CORE version of Serene and it crashes on my new Windows 10 desktop with a Culture error. Seems it is looking for en-UK and in the USA we use en or en-US in our browsers. I got this on a Windows 7 running Internet Explorer 11. BTW, I downloaded the same code on my Windows 10 laptop and it ran fine.
Target: .NET Core 2.0
ERROR IN CODE:
Startup.cs
line 99 - reqLocOpt.SupportedUICultures = UserCultureProvider.SupportedCultures;

ERROR IN BROWSER:
An error occurred while starting the application.

CultureNotFoundException: Culture is not supported.
 Parameter name: name
 en-UK is an invalid culture identifier.

System.Globalization.CultureInfo.InitializeFromName(string name, bool useUserOverride)

TypeInitializationException: The type initializer for 'POC1.AppServices.UserCultureProvider' threw an exception.

POC1.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in Startup.cs, line 99

CultureNotFoundException: Culture is not supported. Parameter name: name en-UK is an invalid culture identifier.

System.Globalization.CultureInfo.InitializeFromName(string name, bool useUserOverride)

POC1.AppServices.UserCultureProvider..cctor() in UserCultureProvider.cs
+
39.        public static readonly List<CultureInfo> SupportedCultures = new List<CultureInfo>

Show raw exception details

System.Globalization.CultureNotFoundException: Culture is not supported.
Parameter name: name
en-UK is an invalid culture identifier.
   at System.Globalization.CultureInfo.InitializeFromName(String name, Boolean useUserOverride)
   at POC1.AppServices.UserCultureProvider..cctor() in C:\OPT\Projects\POC1\POC1\POC1.Web\Initialization\UserCultureProvider.cs:line 39

TypeInitializationException: The type initializer for 'POC1.AppServices.UserCultureProvider' threw an exception.

POC1.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in Startup.cs
+
99.            reqLocOpt.SupportedUICultures = UserCultureProvider.SupportedCultures;

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)

Microsoft.AspNetCore.ApplicationInsights.HostingStartup.ApplicationInsightsLoggerStartupFilter+<>c__DisplayClass0_1.<Configure>b__0(IApplicationBuilder builder)

Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter+<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)

Microsoft.AspNetCore.Server.IISIntegration.IISSetupFilter+<>c__DisplayClass3_0.<Configure>b__0(IApplicationBuilder app)

Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter+<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder builder)

Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

Show raw exception details

System.TypeInitializationException: The type initializer for 'POC1.AppServices.UserCultureProvider' threw an exception. ---> System.Globalization.CultureNotFoundException: Culture is not supported.
Parameter name: name
en-UK is an invalid culture identifier.
   at System.Globalization.CultureInfo.InitializeFromName(String name, Boolean useUserOverride)
   at POC1.AppServices.UserCultureProvider..cctor() in C:\OPT\Projects\POC1\POC1\POC1.Web\Initialization\UserCultureProvider.cs:line 39
   --- End of inner exception stack trace ---
   at POC1.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in C:\OPT\Projects\POC1\POC1\POC1.Web\Initialization\Startup.cs:line 99
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
   at Microsoft.AspNetCore.ApplicationInsights.HostingStartup.ApplicationInsightsLoggerStartupFilter.<>c__DisplayClass0_1.<Configure>b__0(IApplicationBuilder builder)
   at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)
   at Microsoft.AspNetCore.Server.IISIntegration.IISSetupFilter.<>c__DisplayClass3_0.<Configure>b__0(IApplicationBuilder app)
   at Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder builder)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()

.NET Core 4.6.00001.0 X64 v4.0.0.0    |   Microsoft.AspNetCore.Hosting version 2.0.0-rtm-26452    |    Microsoft Windows 6.1.7601 S    |   Need help?

PACKAGE.json
{
  "name": "serene.aspnetcore",
  "version": "1.0.0",
  "description": "POC1 ASP.NET Core",
  "main": "index.js",
  "repository": {
    "type": "git",
    "url": "https://github.com/volkanceylan/serene"
  },
  "dependencies": {
    "@types/jquery": "^2.0.39",
    "@types/jquery.blockui": "0.0.27",
    "@types/jquery.cookie": "^1.4.28",
    "@types/jquery.validation": "^1.13.32",
    "@types/jqueryui": "^1.11.32",
    "@types/jspdf": "^1.1.31",
    "@types/sortablejs": "^1.3.31",
    "@types/toastr": "^2.1.33",
    "less": "^2.7.2",
    "vue": "^2.1.10"
  },
  "devDependencies": {
    "typescript": "2.4.2"
  },
  "scripts": {
    "tsc": "tsc -p ./tsconfig.json",
    "less": "lessc ./wwwroot/Content/site/site.less ./wwwroot/content/site/site.css"
  },
  "author": "",
  "license": "ISC"
}

Try replacing en-UK with en-GB in UserCultureProvider

I walked through the code and the UserCultureProvider.SupportedCultures = null on my desktop. On my laptop, there are 12 values in there. So maybe we need to set some default values for this in the event of a null is returned?
Also, my desktop is on a highly secured network. My laptop is on open internet.

It is not null, it is crashing because it cant create en-UK in your machine, somehow it can in mine

I changed it to en-GB but still has null value and crashed. So I drilled into the inner exception and it shows fa-FA is invalid so I commented that out and it works now. I also tested with the en-UK value and it resulted in a null. Changed it back to en-GB and works fine.
en-UK => en-GB
fa-FA => comment out

This commit (2f90b52388fbadfa079dfa4a6c9f8aaac4aa0a0e) should be fixing such problems, even if there are valid cultures that are missing on a system

2f90b52388fbadfa079dfa4a6c9f8aaac4aa0a0e

https://github.com/volkanceylan/Serene/commit/2f90b52388fbadfa079dfa4a6c9f8aaac4aa0a0e

authors: VR-Architect volkanceylan


text:
UNC path for file uploads not found

Hi,
I have created a unc path for uploading my files. The path is on a network file server as shown in the image below.

When I try to open the uploaded file, it throws the error in the image below. Please help

Possible duplicate #3671
Please check my answer here: https://github.com/volkanceylan/Serenity/issues/3671#issuecomment-626475076


text:
Uncaught TypeError: Cannot read property 'ownerDocument' of undefined

After click add link/image button and close its modal and click the buttons again, will have that error in console of chrome. I click the error link, it link me to this part
  focus: function() {
    if (this.element.ownerDocument.querySelector(":focus") === this.element) {
      return;
    }

    try { this.element.focus(); } catch(e) {}
  },

This is a known issue on Bootstrap-wysihtml5: https://github.com/bootstrap-wysiwyg/bootstrap3-wysiwyg/issues/105
There's nothing to be done on Bootsy's side. I'm planning on moving to another js library on the next major version.

Well, try changing line number 14705 in all.js
          dialog.on('hide', function() {             $(this.container).modal('hide');             setTimeout(editor.composer.focus, 0);           });
to
  dialog.on('hide', function() {             $(this.container).modal('hide');             setTimeout(function () {                 editor.composer.focus.call(editor.composer);             }, 0);           });
I think, here the scope is being lost.

authors: berhalak volmer vshy108

repo: volmer/bootsy


text:
Infinite scrolling

Are there plans to implement infinite scrolling like the Reddit Enhancement Suite?

Thanks for your interest.
You are welcome to clone the repository, and add a feature to detect when the end of the page has been reached, and invoke the code that exists already in the script, and is bound as a button, which dynamically loads/appends the next-page, for each column.
Should you add such feature, please make it so, that someone can also disable it easily, and there is a timer, so, that someone can reach, without any frustration, the links in the end of the page.
If it is user-friendly, I will be happy to publish it as an update in the main version.

Implemented?

authors: ofek volos

repo: volos/HackerNewsUX


text:
Update the PlymouthJS logo to the most recent version

Hi,
The version of our logo on this repository is out of date now - we've been using a yellow version recently.
Cheers!
Andy

update

@chayano Not sure what you mean? Do you need me to do something?

Update

authors: andymantell chayano


text:
Prefix tasks

Summary
Proposed changes:

adds new rule for prefixing tasks

Resolves #6 .
Checklist

[x] The changes only affect or contain one style guide rule or section.
[X] The changes are in style guide format.
[X] The new style guide section has an entry in the Table of Contents (only if changes introduce new section).
[ ] The changes can be merged into the target branch without conflicts.

I am having second thoughts on the rule as a whole. I did not realise that the npm-run-all module is a vendor module. With this rule, we introduce a dependency on the npm-run-all module, while this is an npm style guide, not an npm-with-vendor-modules styleguide.
Could we refactor the script examples in a way that does not involve npm-run-all? But do it with plain npm?

@petergoes  in response to https://github.com/voorhoede/npm-style-guide/pull/11#issuecomment-208807519. Yes we can, see https://github.com/voorhoede/npm-style-guide/pull/11#discussion_r59231522 .
I don't mind suggesting vendor modules. This guide is about what works for us. Not necessarily for the whole world. Even before I knew about npm-run-all I found this good practice. Grunt introduced this as a pattern and you see it being used a lot. I'm also using the prefixing with and without npm-run-all: https://github.com/jbmoelker/demo-viewer/blob/master/package.json#L10 .

I did not know about the Grunt thing. Will continue your feedback as soon as I find some spare time :)

If someone can come up with a better way to introduce npm-run-all, feel free to contribute.
@jbmoelker it's difficult to keep the recommended and usage block together and not break the styleguides recommended/avoid flow.

authors: jbmoelker petergoes

repo: voorhoede/npm-style-guide


text:
Contest pages

This PR:

Updates the contests page to work with the new public_id
Connects the individual contest page to postgres

Missing from this is connecting the overview table which will likely require us to first make some changes to the validations table.

LGTM

authors: bwreid tie-rack

repo: votinginfoproject/Metis


text:
Example App not working at all. After following instructions Xcode 14.3

Missing files and mis-configurations

Thanks for the report. As you might guess, the external pods used in the SDK bundle have support from iOS 9, which is why that warning occurs. Re the development file, our readme indicates you need to create a config file that holds the public key and app name for the demo to run https://github.com/vouched/vouched-ios/blob/master/Example/README.md

oh that is right, thanks. I might recommend the demo being updated to not requiring creating new files. what I typically see in sample projects like this for Xcode is just a var holding the keys, it may not be a production recommended setup, but it allows a demo to be clone, keys replace, app run, sample up and running, very quick and requires no additional files.

Yeah, good point, I'll include that in a future release.

authors: JayLVouched mcmurrym

repo: vouched/vouched-ios


text:
Update express types to latest

There is an issue with installing express types package without a lock file (via yarn) that gets resolved by updating to the latest version.
node_modules/@types/express-serve-static-core/index.d.ts:99:68 - error TS1110: Type expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends `${infer P}${Tail}` ? P : S;
                                                                      ~~~

node_modules/@types/express-serve-static-core/index.d.ts:99:77 - error TS1005: '}' expected.

99 type RemoveTail<S extends string, Tail extends string> = S extends `${infer P}${Tail}` ? P : S;
                                                                               ~

@mercury2269 please pull the latest from master and update the files.

repo: vpulim/node-soap


text:
Keep getting IDE Fatal Errors with CLion 2021.1.1

I constantly get IDE errors in Clion version 2021.1.1 I believe they happen when I close a project...
Here is the stack trace:
com.vladsch.clionarduinoplugin.serial.SerialProjectComponent@65941d3f

com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=BlockNot, containerState=DISPOSE_IN_PROGRESS, componentStore=/Users/michael/CLionProjects/BlockNot) (disposed)
	at com.intellij.serviceContainer.ComponentManagerImpl.getMessageBus(ComponentManagerImpl.kt:211)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.fireStateChanged(ToolWindowManagerImpl.kt:1640)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.unregisterToolWindow(ToolWindowManagerImpl.kt:1107)
	at com.jetbrains.rdserver.toolWindow.BackendServerToolWindowManager.unregisterToolWindow(BackendServerToolWindowManager.kt:70)
	at com.vladsch.clionarduinoplugin.serial.SerialMonitorToolWindow.unregisterToolWindow(SerialMonitorToolWindow.java:72)
	at com.vladsch.clionarduinoplugin.serial.SerialProjectComponent.projectClosed(SerialProjectComponent.java:87)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectClosed(ProjectManagerImpl.java:467)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.lambda$closeProject$4(ProjectManagerImpl.java:376)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:959)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject(ProjectManagerImpl.java:365)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.closeAndDispose(ProjectManagerImpl.java:400)
	at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.closeProjectAndShowWelcomeFrameIfNoProjectOpened(CloseProjectWindowHelper.kt:52)
	at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.windowClosing(CloseProjectWindowHelper.kt:40)
	at com.intellij.openapi.wm.impl.ProjectFrameHelper$2.windowClosing(ProjectFrameHelper.java:228)
	at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
	at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
	at java.desktop/java.awt.Window.processWindowEvent(Window.java:2090)
	at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
	at java.desktop/java.awt.Window.processEvent(Window.java:2049)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2784)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:969)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:781)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

I'm surprised at how little response your issue has raised.  I've experienced the same thing.  When CLion went to 2021.1, this plugin broke.  Maybe very few people use this plugin for Arduino development using CLion, and it will no longer be supported.  This plugin probably falls into the category of something fun to create, but a pain to maintain.  I am still surprised that no other users are having these problems.  It was nice while it lasted.  I've noted other plugins commenting on CLion's lack of response to plugin issues created by the 2021 update.   I've switched to VSCode with the PlatformIO extension.  Even though I prefer CLion's environment, I like the fact that the VSCode/PlatformIO approach does a better job of finding the right serial port.  If you ever find a work around, I hope you post the results here.

@bbar2 - When I develop in CLion for Arduino, I USUALLY have the Arduino IDE open as well with a sketch loaded that I simply call "delete.ino" ... CLion gives me code completion like nobody else can ... lol ... then when I want to test my code, I simple CMD+A, CMD+C CMD+TAB to Arduino IDE, CMD+V then CMD+U ... takes less than 3 seconds when I'm dialed in. It would be nice to use Clion for all of it, but I've had too many random issues with compiling and uploading when I switch to a different MC like an ESP8266 or a Teensy ... or programming an ATTIny85 through a nano ... I wouldn't even attempt that with PlatformIO...  the Raspberry Pi Pico has been nice to develop on with CLion since the code gets uploaded to a volume instead of the serial port ...
And as far as this plugin goes, It's been removed ... it doesn't like the new version of CLion and I got no time for plugins that won't play ball.  lol
Mike

Thanks for the work around.  Sometimes brute force is the right answer.  And like you said -- it's a matter of seconds.
VSCode's code completion and class navigation is not as nice as CLion's, but it's not bad and the rest of the environment is certainly working out to be more user friendly.  No CMake is nice, and port selection also works well even with different projects on two targets from the same dev machine.

Is there any version of CLion known to actually work with v1.52 of this plugin? Last night, I spent about 2 hours installing and uninstalling older and older versions of CLion trying to find one that actually works without blowing up in a manner similar to above, but all of the following versions died on me:

2020.3.4
2020.1.3
2019.3.6
2019.2.5

The text of OP's exceptions (similar to what I remember seeing) leads me to think it might be blowing up due to some security constraint newly imposed by Jetbrains' JRE that was retroactively applied to later releases of 2020.3, 2020.1, 2019.3, 2019.2, and 2019.1. In other words, a big architectural change (CMake?) in 2021.1+ finished the job, but its PRESENT problem with newer releases of older versions might be JRE-related.
That suggests two things that, when done together, might be able to make the existing Arduino plugin work:

Find the last release of CLion that's known (or at least believed to be) architecturally compatible with this plugin
Work backwards from the penultimate release of that last known-good version of CLion until one with a JRE that won't blow up with a security exception is found. This assumes Jetbrains regards changes to the JRE as a minor-version incrementing change. If they went back and updated the JREs of ALL archived releases, the strategy obviously wouldn't work.

Or... possibly... as an alternative to working backwards to find a compatible major release with equally compatible JRE, try to figure out whether there's some way to make the newer JRE not blow up with a security exception (kind of like how strong encryption used to stupidly be disabled by default unless you jumped through hoops to create a security exception policy for the machine).

The plugin started working again with the CLion 2021.2 release.

Hmmm, I just reinstalled 2021.3, vCL-213.5744.254, and it still appears to be broken. What specific version of CLion are you presently running?
I created a new Arduino sketch after installing the plugin and restarting, and got two fatal errors:
com.vladsch.clionarduinoplugin.serial.SerialProjectComponent@58dc1b60

com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=vsaMega1, containerState=DISPOSE_IN_PROGRESS, componentStore=C:\src\experiments\CLion\vsaMega1) (disposed)
	at com.intellij.serviceContainer.ComponentManagerImpl.getMessageBus(ComponentManagerImpl.kt:191)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.fireStateChanged(ToolWindowManagerImpl.kt:1712)
	at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.unregisterToolWindow(ToolWindowManagerImpl.kt:1125)
	at com.jetbrains.rdserver.toolWindow.BackendServerToolWindowManager.unregisterToolWindow(BackendServerToolWindowManager.kt:108)
	at com.vladsch.clionarduinoplugin.serial.SerialMonitorToolWindow.unregisterToolWindow(SerialMonitorToolWindow.java:72)
	at com.vladsch.clionarduinoplugin.serial.SerialProjectComponent.projectClosed(SerialProjectComponent.java:87)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectClosed(ProjectManagerImpl.java:479)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.lambda$closeProject$4(ProjectManagerImpl.java:384)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:947)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.lambda$closeProject$5(ProjectManagerImpl.java:373)
	at com.intellij.openapi.util.ShutDownTracker.executeWithStopperThread(ShutDownTracker.java:114)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject(ProjectManagerImpl.java:354)
	at com.intellij.openapi.project.impl.ProjectManagerImpl.closeAndDispose(ProjectManagerImpl.java:406)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl$closeAndDisposeKeepingFrame$1.compute(ProjectManagerExImpl.kt:364)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl$closeAndDisposeKeepingFrame$1.compute(ProjectManagerExImpl.kt:59)
	at com.intellij.openapi.wm.impl.WindowManagerImpl.runWithFrameReuseEnabled(WindowManagerImpl.kt:379)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl.closeAndDisposeKeepingFrame(ProjectManagerExImpl.kt:364)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl.access$closeAndDisposeKeepingFrame(ProjectManagerExImpl.kt:59)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl$checkExistingProjectOnOpen$1.invoke(ProjectManagerExImpl.kt:346)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl$checkExistingProjectOnOpen$1.run(ProjectManagerExImpl.kt:59)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:437)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:455)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl.checkExistingProjectOnOpen(ProjectManagerExImpl.kt:310)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl.openProjectAsync(ProjectManagerExImpl.kt:103)
	at com.intellij.openapi.project.impl.ProjectManagerExImpl.openProject(ProjectManagerExImpl.kt:75)
	at com.intellij.ide.util.projectWizard.AbstractNewProjectStep.doGenerateProject(AbstractNewProjectStep.java:243)
	at com.intellij.ide.util.projectWizard.AbstractNewProjectStep$AbstractCallback.consume(AbstractNewProjectStep.java:188)
	at com.intellij.ide.util.projectWizard.ProjectSettingsStepBase$1.actionPerformed(ProjectSettingsStepBase.java:143)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:270)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6654)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
	at java.desktop/java.awt.Component.processEvent(Component.java:6419)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2790)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:820)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:757)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:498)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
	at java.desktop/java.awt.Dialog.show(Dialog.java:1070)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:701)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:437)
	at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1671)
	at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1629)
	at com.jetbrains.cidr.cpp.cmake.projectWizard.NewCMakeProjectAction.actionPerformed(NewCMakeProjectAction.java:49)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:244)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:265)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:244)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:300)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:236)
	at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:67)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:292)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$3(ActionMenuItem.java:131)
	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:131)
	at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:541)
	at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:571)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6654)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
	at java.desktop/java.awt.Component.processEvent(Component.java:6419)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2790)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:820)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:757)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:498)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

and
java.lang.NullPointerException
	at com.vladsch.clionarduinoplugin.resources.ArduinoToolchainFiles$1.run(ArduinoToolchainFiles.java:55)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:947)
	at com.vladsch.clionarduinoplugin.resources.ArduinoToolchainFiles.copyToDirectory(ArduinoToolchainFiles.java:25)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator.createFiles(ArduinoProjectGenerator.kt:153)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator.access$createFiles(ArduinoProjectGenerator.kt:59)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator$generateProject$1.compute(ArduinoProjectGenerator.kt:167)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator$generateProject$1.compute(ArduinoProjectGenerator.kt:59)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:935)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:961)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator.generateProject(ArduinoProjectGenerator.kt:166)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator.generateProject(ArduinoProjectGenerator.kt:59)
	at com.intellij.ide.util.projectWizard.AbstractNewProjectStep.doGenerateProject(AbstractNewProjectStep.java:245)
	at com.intellij.ide.util.projectWizard.AbstractNewProjectStep$AbstractCallback.consume(AbstractNewProjectStep.java:188)
	at com.intellij.ide.util.projectWizard.ProjectSettingsStepBase$1.actionPerformed(ProjectSettingsStepBase.java:143)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:270)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6654)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
	at java.desktop/java.awt.Component.processEvent(Component.java:6419)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2790)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:820)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:757)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:498)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
	at java.desktop/java.awt.Dialog.show(Dialog.java:1070)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:701)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:437)
	at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1671)
	at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1629)
	at com.jetbrains.cidr.cpp.cmake.projectWizard.NewCMakeProjectAction.actionPerformed(NewCMakeProjectAction.java:49)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:244)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:265)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:244)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:300)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:236)
	at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:67)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:292)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$3(ActionMenuItem.java:131)
	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:131)
	at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:541)
	at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:571)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6654)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
	at java.desktop/java.awt.Component.processEvent(Component.java:6419)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5029)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2790)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4861)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:820)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:757)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:498)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

I'm using CLion 2021.2 on a Mac.
Build #CL-212.4746.93, built on July 27, 2021
Runtime version: 11.0.11+9-b1504.13 x86_64
macOS 12.1
Although I confirmed the plugin worked when 2021.2 came out, I used it only briefly.  When the plugin was totally dead, prior to 2021.2, I switched to PlatformIO and have not looked back.  No more of these problems.

Well, for what it's worth, I uninstalled 2021.3 and tried 2021.2.4... and it's still as dead as John Cleese's parrot:
java.lang.NullPointerException
	at com.vladsch.clionarduinoplugin.resources.ArduinoToolchainFiles$1.run(ArduinoToolchainFiles.java:55)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:936)
	at com.vladsch.clionarduinoplugin.resources.ArduinoToolchainFiles.copyToDirectory(ArduinoToolchainFiles.java:25)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator.createFiles(ArduinoProjectGenerator.kt:153)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator.access$createFiles(ArduinoProjectGenerator.kt:59)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator$generateProject$1.compute(ArduinoProjectGenerator.kt:167)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator$generateProject$1.compute(ArduinoProjectGenerator.kt:59)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:924)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:950)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator.generateProject(ArduinoProjectGenerator.kt:166)
	at com.vladsch.clionarduinoplugin.generators.ArduinoProjectGenerator.generateProject(ArduinoProjectGenerator.kt:59)
	at com.intellij.ide.util.projectWizard.AbstractNewProjectStep.doGenerateProject(AbstractNewProjectStep.java:231)
	at com.intellij.ide.util.projectWizard.AbstractNewProjectStep$AbstractCallback.consume(AbstractNewProjectStep.java:180)
	at com.intellij.ide.util.projectWizard.ProjectSettingsStepBase$1.actionPerformed(ProjectSettingsStepBase.java:141)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:270)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6652)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3345)
	at java.desktop/java.awt.Component.processEvent(Component.java:6417)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2784)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:885)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:814)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:751)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:441)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:825)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:440)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:492)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

that's a bummer.  When this first happened to me on the 2021.1 update, I was unsuccessful rolling back to the prior version where the plugin had been working with no issues.  So I don't have complete confidence in the rollback process.  This is a frustrating problem.  You know it's something simple, but with the plugin basically being unsupported, the problem lingers.

OMG, CLion's configuration is like a fsck'ing virus. It's like they want to make it as hard as they possibly can to scrub the slate clean and start over with a completely 100% virgin installation, untainted by past settings and plugins.
I've uninstalled it & told Windows to delete all the settings and files.
I then went and manually deleted the files under c:\Program Files\Jetbrains\CLion* that it left behind, and did the same with the CLion* directories under AppData\Local\Jetbrains and AppData\Roaming\Jetbrains.
I then reinstalled Clion 2021.3... and it all came back like a bad horror movie... plugins, settings, everything :-O

I uploaded a new release 1.5.6 which works on CLion 2019.1 to 2022.2.
It seems CLion 2022.3 has made big changes to their CMake and arduino-cmake does not work. I have zero experience with CMake, I have a perpetual fallback license for CLion 2020.2 and I am not using sufficiently to justify making it work for later versions.

@vsch

It seems CLion 2022.3 has made big changes to their CMake and arduino-cmake does not work. I have zero experience with CMake, I have a perpetual fallback license for CLion 2020.2 and I am not using sufficiently to justify making it work for later versions.

If I'm not mistaken, you can get free full licensing of Jetbrains IDEs as long as you can demonstrate that you are an active open source developer ... Here is the info on it.

@EasyG0ing1, that is only part of the issue. Maintaining plugins for the IDE is a real PITA. The API keeps evolving with every release, including preview releases. This means constant effort to keep the plugin compatible with the new IDEs.
Additionally, CLion has obfuscated a large chunk of its implementation starting in version 2020.3 (if memory serves correctly). This means that the only way I found of compiling the plugin is to copy the clion.jar from an older version to the project directory. The plugin runs fine with newer IDEs for now, but I have to actually run it to find out if it works. No compile time checking, since I have to build against an older IDE implementation.
The JetBrains Open API is a jungle of massive proportions, constantly evolving, and a nightmare to figure out, unless you spend a lot of time doing it because of all the details to be tracked. I have been doing this part-time, which means I forget a ton of important details, and have to re-learn them every time I work on any of my plugins.
I would also point out that this is a labour of love task and not a paid job. Which means I don't have the time to spend on this plugin, except when I have time to spare and the desire to spend hours trying to figure out a working combination of IntelliJ Community IDE version and CLion version, which I can use to debug the plugin, and figure out what is really broken or just misconfigured in the dev environment.
All in all, I love the IDEs but hate maintaining plugins for them.
That said, I have uploaded a fix to https://github.com/vsch/CLionArduinoPlugin/blob/master/dist/CLionArduinoPlugin.1.5.9.zip (download and Install plugin from disk, in plugins of the IDE) for the exceptions and fixed a few bugs related to baud rate either being always custom or default for project build settings.
This version also has changes from 1.5.7, brings back the clear button (lost in the chasing the API race) and added an option to clear serial monitor console after reconnecting on build.
I will not make an official build until I can update Arduino-CMake to work with 2022.3 and up.

@vsch - I completely understand each 'pain point' you mentioned concerning maintaining a JetBrains plugin and keeping it current as JetBrains pushes out new releases to their IDEs. The frustrations that you listed can almost be a template for anything that we do with part-time development since coding is a constantly evolving discipline that creates - as you stated - massive complexity that becomes difficult to keep up with. And I fear this paradigm will only get worse as languages evolve and security becomes more complicated to implement among other crucial elements in open source projects.
I do appreciate your efforts here.
It might be a consideration for you to try and wean people away from this project over to PlatformIO. Its CLion plugin seemed pretty stable for 2022.2.3. Still, I haven't checked it with 2022.2.4 or .5. Obviously the folks that actively develop PlatformIO would face the same challenges that you have met with maintaining a CLion plugin. They seem to exclusively prefer Visual Studio - open source edition for MC development using their platform.
Sadly, My hope for a consistent and actively updated option for developing microcontroller code in CLion will continue to be a hit-and-miss option for me. The Arduino IDE is hideous for writing code. Their new version makes some attempts to bring standard IDE features and even offers code completion, but the aesthetics are rather horrid, it feels "klunky" in general, and navigation around the code is severely lacking. CLion is still a much preferred IDE over theirs. And Visual Studio? I think not ... once you get used to using the JetBrains IDEs, it makes it very difficult to use another IDE.
Thank you again - for your efforts here,
Mike Sims

repo: vsch/CLionArduinoPlugin


text:
Feature/master/systemd compatibility

Ensure => 'absent' for initd softlink on systems with systemd like ubuntu 16.04 etc.

@bjeske Thanks a lot for your contribution. Before I can merge it could you please make sure that all tests passes? And if you could do a rebase so we only have one commit to merge would also be great.

@tobru I've rebased, squashed and added tests for this PR in #94, as I'm looking to move to the upstream for a customer rather than a fork.
@bjeske The commit is still under your name in the new PR, but squashed and tests fixed

Merged in #94

authors: bjeske petems tobru

repo: vshn/puppet-gitlab


text:
Added BundleInfos

Simple getter for bundle informations
Project URL
https://github.com/singcodes/BundleInfos
Description
added the BundleInfos project to "Content -> Utility"
Checklist

[x] Only one project is in this pull request
[x] Addition in chronological order (bottom of category)
[ ] Travis CI pass
[x] Supports iOS 7 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

Hey @singcodes, thanks for contributing to Awesome iOS.
Your library seems really cool but your README.md needs a little bit of improvement before we can add to Awesome iOS. I'll create an issue and will help you as much as you want!

authors: lfarah singcodes

repo: vsouza/awesome-ios


text:
vue-template-compiler version mismatch

Updated to vue 2.4.2 recently and vue-styleguidist gives an error of a version mismatch between vue (2.4.2) and vue-template-compiler (2.4.1).
I traced it back to the dependency here for vue-template-compiler at 2.3.4
It works if I manually change it to 2.4.2 in my project's lock file.

Ok, I've published the fix under v1.2.1 of vue-styleguidist.

repo: vue-styleguidist/vue-docgen-api


text:
面包屑增加一个返回操作，可以后退到上一页

建议面包屑增加返回操作，可以后退的上一页

浏览器 后退按钮 或 键盘 Backspace 退格键均可后退上一页

authors: baiyuxiong sendya

repo: vueComponent/ant-design-vue-pro


text:
Please add VueMastery

Vue Mastery has been doing a lot for the Vue community and I will like to see it in this awesome list in a couple of different Categories.
Please add a sub-link to VueConfUS for all of the previously recorded talks at the conference.
https://www.vuemastery.com/vueconf?utm_campaign=vue-conf&utm_medium=github&utm_source=vue-awesome
Please also add this "Intro to Vue" free course by Adam Jahr
https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance?utm_campaign=Intro-course&utm_medium=github&utm_source=vue-awesome
Add to Websites
https://www.vuemastery.com/?utm_campaign=homepage&utm_medium=github&utm_source=vue-awesome
As a YouTube Channel for all the 30+VueConf.US talks.
Here is the playlist for the conference.
https://www.youtube.com/watch?v=j1EWDbXtbjA&list=PLJNLwTPak6dj-HOz4eFrKDJsJSZsgvWPs&index=1
Lastly, the Vue Essentials Syntax Cheat-Sheet
https://www.vuemastery.com/vue-cheat-sheet?utm_campaign=cheat-sheet&utm_medium=github&utm_source=vue-awesome
Thank you in advance!

@ChaseWGregory Please create a PR if this is still relevant

authors: ChaseWGregory Scrum

repo: vuejs/awesome-vue


text:
vue3+vite+tsx TSX files in Google debug exception

🧐 as the img, i can not  debug in chrome

💻 Sample code
file : data-picker.vue
<script type="text/babel" lang="tsx" name="DataPicker">
import { reactive, ref, toRefs } from 'vue'
import { isArray } from '../../utils/methods/types';
export default {
    props: {
        placeholder: {
            type: String,
            default: '请输入'
        },
        label: {
            type: String
        },
        clearable: {
            type: Boolean,
            default: true
        },
        shortcuts: {
            type: Array,
            default: ()=> [],

        },
    },

    setup(props: any) {
        debugger
        // const state = reactive({
        //     inputVal: ''
        // })

        const value2 = ref('')
        const defaultTime2: [Date, Date] = [new Date(2000, 1, 1, 12, 0, 0), new Date(2000, 2, 1, 8, 0, 0)] // '12:00:00', '08:00:00'
        const scopeShortcuts = ref([

        ])
        const mergeShortcuts = computed(()=> {
            debugger
            if(props.shortcuts && isArray(props.shortcuts) && props.shortcuts.length>0) {
                return props.shortcuts
            } else {
                return scopeShortcuts
            }
        })

        return { value2, defaultTime2,mergeShortcuts }
    },
    render() {
        debugger
        return (
            <el-date-picker
                vModel={this.value2}
                type="datetimerange"
                shortcuts={this.mergeShortcuts}
                range-separator="To"
                start-placeholder="Start date"
                end-placeholder="End date"
                default-time={this.defaultTime2}
            />
        )
    }
}
</script>
<style scoped></style>

🚑 Other information  config
// vite.config.ts
{
        // 静态资源基础路径 base:"./":"/"
        base: './',
        envDir: './env', //这里使用相对路径，绝对路径其实也可以（环境变量配置的文件路径）
        envPrefix: ['VITE', 'VENUS'], //vite默认只加载VITE（设置prefix可识别其他配置项）
        plugins: [
            vue({ reactivityTransform: true }),
            vueJsx(),
            // 自动引入compostitionApi和全局typescript说明
            autoImport({
                resolvers: [ElementPlusResolver()],
                include: [
                    /\.[t]sx?$/, //匹配.ts,.tsx,.js,.jsx
                    /\.vue$/,
                    /\.vue\?vue/, //.vue
                    /\.md$/ //.md
                ],
                imports: ['vue', 'vue-router'], //自动导入vue和vue-router相关方法
                dts: 'src/auto-imports.d.ts' //生成auto-import.d.ts  全局声明
            }),
            componentsVite({
                resolvers: [ElementPlusResolver()],
                dts: 'src/components-imports.d.ts', //生成components-import.d.ts  全局声明
                dirs: ['src/components'] //按需加载的文件夹
            }),
            visualizer({
                open: true, //设置为 true,否则无效
                gzipSize: true,
                brotliSize: true
            }),
            resolveExternalsPlugin({ AMap: 'AMap' }),
            // 需要时可以放开，这里暂时没有调用
            viteCompression({
                // 生成压缩包gz
                verbose: true, //输出压缩成功
                disable: false, // 是否禁用
                threshold: 10240, // 体积大于阈值会被压缩，单位是b
                algorithm: 'gzip', // 压缩算法
                ext: '.gz' // 生成的压缩包后缀
            })
        ],
        // 强制预构建插件包
        optimizeDeps: {
            include: ['axios']
        },
        css: {
            // css预处理器
            preprocessorOptions: {
                less: {
                    chartset: false,
                    modifyVars: {
                        // 全局less变量存储路径(配置less的全局变量)
                        hack: `true; @import (reference) "${path.resolve('src/styles/common.less')}";`
                    },
                    javascriptEnabled: true
                }
            },
            postcss: {
                plugins: [
                    {
                        postcssPlugin: 'internal:charset-removal',
                        AtRule: {
                            charset: (atRule: any) => {
                                // 去除elementPlus内部charset警告
                                if (atRule.name === 'charset') {
                                    atRule.remove()
                                }
                            }
                        }
                    }
                ]
            }
        },
        build: {
            sourcemap: mode === 'prod' && command === 'build', //是否构建source map 文件
            outDir: 'dist', //指定输出路径
            assetsDir: 'assets', //指定静态资源存放路径
            chunkSizeWarningLimit: 1000,
            cssCodeSplit: true, //提取css一个文件
            emptyOutDir: true, //打包前先清空原有打包文件
            // 生产情况下清空console
            // minify: 'terser',Vite3需要单独安装插件
            terserOptions: {
                compress: {
                    drop_console: true,
                    drop_debugger: true
                },
                ie8: true,
                output: { comments: true } // 删除注释
            },
            rollupOptions: {
                input: {
                    index: path.resolve(__dirname, 'index.html')
                },
                compact: true,
                // 拆分代码，按需加载
                manualChunks: {
                    vue: ['vue', 'vue-router']
                },
                output: {
                    chunkFileNames: 'assets/js/[name]-[hash].js',
                    entryFileNames: 'assets/js/[name]-[hash].js',
                    assetFileNames: 'assets/[ext]/[name]-[hash].[ext]'
                },
                brotliSize: false // 不统计
            }
        },
        ...

    }

// tsconfig.json
{
 "compilerOptions": {
 "target": "ESNext",
 "useDefineForClassFields": true,
 "module": "ESNext",
 "moduleResolution": "Node",
 "strict": true,
 "jsx": "preserve",
 "jsxFactory": "h",
 "jsxFragmentFactory": "Fragment",
 "importHelpers": true,
 "sourceMap": true,
  ...

 "include": [
 "src/**/*.ts",
 "src/**/*.d.ts",
 "src/**/*.tsx",
 "src/**/*.vue",
 "src/auto-imports.d.ts",
 "./commitlint.config.ts",
 "./config",
 ".eslintrc.js",
  ],
 "exclude": [
 "node_modules",
 "dist",
 "**/*.js"
  ],
 "references": [
    {
 "path": "./tsconfig.node.json"
    }
  ]
}

// components-imports.d.ts
declare module '@vue/runtime-core' {
  export interface GlobalComponents {
   ...,
   TableCustom: typeof import('./components/tableCustom/index.vue')['default']
   TmsDataPicker: typeof import('./components/TMSBase/tms-data-picker.vue')['default']
   TmsNumberInput: typeof import('./components/TMSBase/tms-number-input.vue')['default']
  }
}

这不是这个库的问题，说不定你console.log都打印不了

这不是这个库的问题，说不定你console.log都打印不了

打印是能打印的 只不过都在导出的那一行了。

你进不去setup，实在不行，有一个办法，你build一下，然后把对应的terser关了，看看打包后的源码。
我还是认为这不是这个库的问题。是不是因为type='text/babel'的问题啊，我从没加过这个

terser

terser关了 type 去掉了 也都是不行的 怀疑 soucemap文件就指到那一行，或者就是内存里压缩了的样子

排查下吧 @gogHeroDream  是单个的这个vue文件进不去，还是所有的vue文件都进不去setup啊，多多思考，总会解决的。
要不你配置一个有这问题的demo提交到一个仓库里面，让我排查下是啥问题

排查下吧 @gogHeroDream 是单个的这个vue文件进不去，还是所有的vue文件都进不去setup啊，多多思考，总会解决的。
要不你配置一个有这问题的demo提交到一个仓库里面，让我排查下是啥问题

就这种类型的不行，应该是别的配置的问题，  提交了个demo https://github.com/gogHeroDream/tsx-question-1229  有时间的话帮看下哈~。

排查下吧 @gogHeroDream 是单个的这个vue文件进不去，还是所有的vue文件都进不去setup啊，多多思考，总会解决的。
要不你配置一个有这问题的demo提交到一个仓库里面，让我排查下是啥问题

就这种类型的不行，应该是别的配置的问题， 提交了个demo https://github.com/gogHeroDream/tsx-question-1229 有时间的话帮看下哈~。

应该是你说的sourcemap的问题吧，真的是还能运行过去，但是sourmap指定不到正确位置（ps：我短时间解决不了）。babel-plugin-jsx解决不了这问题的，尽量不用这种写法吧，等下班啦

排查下吧 @gogHeroDream 是单个的这个vue文件进不去，还是所有的vue文件都进不去setup啊，多多思考，总会解决的。
要不你配置一个有这问题的demo提交到一个仓库里面，让我排查下是啥问题

就这种类型的不行，应该是别的配置的问题， 提交了个demo https://github.com/gogHeroDream/tsx-question-1229 有时间的话帮看下哈~。

打包后，如果不开启minify,minify:false，是可以进去的，开发环境debugger到不了正确位置。
应该是你说的开发环境下的sourcemap的问题吧，真的是还能运行过去【不报错执行成功】，但是sourmap指定不到正确位置（ps：我短时间解决不了）。babel-plugin-jsx解决不了这问题的，尽量不用这种写法吧，等下班啦

嗯 好的 👌   debugger 位置不对  永远是导出的那个位置   应该不是babel-plugin-jsx 的问题  大概是其他配置引起的问题吧，之前也没确认问题在哪~

authors: abearxiong gogHeroDream

repo: vuejs/babel-plugin-jsx


text:
feat: resetAllStores helper for resetting all previously injects stores

For now, there is no possibility to reset all stores at once that were previously injected and used in the app. This PR introduces a new helper that allows resetting all the stores.

what is the use case? Why should this be in core?
IMO this kind of global helper should not be exposed in core because we don't want to encourage people to use the default $reset() behavior too much, it's more for debugging purposes. Resetting ALL stores looks more like a dangerous pattern as usually, only some stores are being reset at different moments in your application lifecycle (e.g. a store used for a form that spans over multiple pages)

As well as $reset that is available for the single store instance, there should be also a way to reset all stores at once.
Use case description: the user logged in to the application, visited some pages, and performed some actions and as a result, some pinia stores have now data saved in the state. The user logs out and the stores still contain some data. Another user (that may not have an access to some pieces of data) logs in with other credentials and can see the previously saved data in many stores. Of course, it can be fixed by manually resetting each store, but why if we can reset all of them using one function call?
If you consider it to be a DANGEROUS pattern, can we just mark it as not recommended and describe the consequences?

The user logs out and the stores still contain some data. Another user (that may not have an access to some pieces of data) logs in with other credentials and can see the previously saved data in many stores. Of course, it can be fixed by manually resetting each store, but why if we can reset all of them using one function call after logging out?

That is an app-specific design. Not all apps are built that way and even in that scenario resetting is completely overkill. It's also not explicit in its name. In your example, the logout() action should take care of all of that

The user logs out and the stores still contain some data. Another user (that may not have an access to some pieces of data) logs in with other credentials and can see the previously saved data in many stores. Of course, it can be fixed by manually resetting each store, but why if we can reset all of them using one function call after logging out?

That is an app-specific design. Not all apps are built that way and even in that scenario resetting is completely overkill. It's also not explicit in its name. In your example, the logout() action should take care of all of that

I got your point. Could you please add some technical details, why is that DANGEROUS or overkill?

Also, could you propose a better way to have all stores reset?

Keeping this exact same code in userland is totally fine!
Thanks for the PR! I'm closing this as I think it's better to keep it in userland for those few people who might need it.
dangerous because overkill because it resets every store instead of the ones that need it

repo: vuejs/pinia