Prerequisite Terraform setup script points to latest instead of required

Describe the bug:
Running setup_terraform.sh installs the latest version of terraform (0.13.3), which isn't compatible with Bedrock according to the README and cluster/common/provider/main.tf
To Reproduce:
Run the tools/prereqs/setup_terraform.sh script.
Run terraform -version
Expected behavior:
Installs the required version of terraform.
Additional context:
The script should look at one location in the repo to determine the version of Terraform it should download.
Does this require updates to documentation?:
No

Looks like Terraform 13 is very recent. @andrewDoing you should download Terraform 12 instead to unblock yourself for now.
This probably could be solved with Docker images like the PR https://github.com/microsoft/bedrock/pull/1407 or Bedrock agents
Will prioritize this. cc @jmspring


Swagger not showing complete documentation for API v2 docs

Please use the following template when submitting issues:
Issue Template
Issue Type

[x ] Bug
[ ] Enhancement

Description
Hi,
I am using v.1.5.2 in Docker and accessing the API V2 Docs I am missing the documentation for the whole API. I only see one entry for api-token-auth and not all methods like documented on swagger-hub, see screenshot.
If the issue is a bug, please also include the following:
Operating System
Please include the version number (ex: Ubuntu 16.04)
Install

[ ] setup.bash
[x ] docker

DefectDojo Version
1.5.2
Steps to Reproduce

login
open API v2 Docs
check swagger

Sample Scan File (if applicable)
Screenshots (optional)

Console Logs (optional)

I believe you have to authorize it before you can view the rest of it.

Can you elaborate? So I login to to Defect-Dojo and then have to authorize to see the swagger documentation? How?
So trying the authorize button with the API key does not result in showing the whole API docu, see screenshot. The user has all necessary rights, ...

Not sure, when I click on authorize this is what I see. Also, I'm working on a process to push the swagger file here as well: https://app.swaggerhub.com/apis/DefectDojo/defect-dojo_api_v_2/1.0.0

Can't reproduce this issue.

Here a screencast, ....
defectdojo-api.zip

@aaronweaver  So this does also not work on the demo in heroku, see https://defectdojo.herokuapp.com

Please follow these steps:

Navigate to: https://defectdojo.herokuapp.com/api/key-v2
Copy the full Token
Navigate to: https://defectdojo.herokuapp.com/api/v2/doc/
Click Authorize and then paste in the full Token

So finally I figured it out, ... you have to insert the hole "API Authorization Header value" including the "Token" text, ... and not only the API-Key, ... this is somehow misleading, ....

@aaronweaver
So finally I figured it out, ... you have to insert the hole "API Authorization Header value" including the "Token" text, ... and not only the API-Key, ... this is somehow misleading, ....

wow


Who commits your death?

I like the whole idea of this project 👍 . Can even be used as a diary.
But I thinking about it, in committing one's life, who commits his death?

@ATouhou, not bad. not bad at all


Let docker network ls --filter honor regular expressions

In standalone swarm the following doesn't return any results:
docker network ls --filter 'name=ingre*'
while
docker network ls --filter 'name=ingress' does.

This is fixed on master, FYI


Create newsletter signup that is hooked into Mailchimp mailing list

http://eepurl.com/dvYlXT - URL to use once the website is migrated


Canceling addition of a Feedbin account takes you back to root level of settings

iOS
Version 5.0.1 (41)

Settings: Add Account: Feedbin
You now get a screen to sign into a Feedbin Account. Tap Cancel.

Expected: Go back to the Add Account screen (listing options like On My iPhone, Feedbin, Feedly, etc.
Actual: Takes you all the way back to the root level of settings.
For reference, go to the iOS Settings app, Passwords & Accounts → Add Account → tap any of the choices and then tap Cancel.

Fixed and coming in the next release.


Throttle recalculations (v2)

What are your thoughts on throttling recalculations triggered by the mutation observer? I have a element which triggers the recaluclation ~ 1000 times before it's done and it's of course killing the performance.

Definitely something needed.
Also I think about letting the user disable the mutation observer if needed for scenarios where perfs matters more.
Can I ask what is your use case so I can understand better the kind of scenario where this could be needed?
Thanks for this

Our use case is quite simple: We have a long scrollable list of items where items are added one by one through appendChild. Most are added at load time, but more are removed and added dynamically afterwards too.
Temporarily disabling the mutation observer while loading the initial batch of items would probably work great too.

Ok thanks very much for that. I'll try to setup a similar scenario so I can test it, seems like a quite common use case (infinite scroll...etc).
The calculation is reading height, scroll position and other stuff so I guess it can be quite performance heavy as well. Probably need some improvements. But I'm sure the debouncing should solve 99% of the issues!

Thanks for the quick update! It works great now :)


Possible fix: not matching first character in line

Meanwhile, still allow repeat-command to go to the next character.

Example:
if (...) {
    int i |= 0;
}

Cursor at |. Goto } will not find the closing curly bracket.


[SRE-1843] Fix error when no more healthy seeds

There a bug on redis-cluster client when no healthy seed when reset connection to redis-cluster.
The error is:
no implicit conversion from nil to integer (TypeError)
from /mothership/vendor/bundle/ruby/2.3.0/bundler/gems/redis-cluster-8875e0b948eb/lib/redis_cluster/cluster.rb:89:in `rescue in reset'

It caused by when no healthy seed,  var i on https://github.com/bukalapak/redis-cluster/blob/fix/lib/redis_cluster/cluster.rb#L83-L89 not declared / nil.

Codecov Report

Merging #13 into fix will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##              fix      #13      +/-   ##
==========================================
+ Coverage   98.93%   98.93%   +<.01%
==========================================
  Files          27       27
  Lines        1405     1413       +8
==========================================
+ Hits         1390     1398       +8
  Misses         15       15

Impacted Files
Coverage Δ

lib/redis_cluster/cluster.rb
98.01% <100%> (+0.06%)
:arrow_up:

spec/redis_cluster/cluster_spec.rb
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


QUICK SORT IN PYTHON

Please assign this issue, I will solve it using CPP.

I can solve this problem using Java. Kindly assign me this issue.

Issue for all sorting algorithms present at #124


Problems setting up cloudsql-proxy with Workload identity, although wi-test works

Question
I currently have trouble connecting to my cloudsql instances using workload identity, and I don't understand the error message provided. This is the error I get:
2022/01/20 07:15:11 current FDs rlimit set to 1048576, wanted limit is 8500. Nothing to do here.
2022/01/20 07:15:11 errors parsing config:
	Get "https://sqladmin.googleapis.com/sql/v1beta4/projects/maxxeed/instances/europe-west3~main-dev-testing2/connectSettings?alt=json&prettyPrint=false": metadata: GCE metadata "instance/service-accounts/default/token?scopes=https%!A(MISSING)%!F(MISSING)%!F(MISSING)www.googleapis.com%!F(MISSING)auth%!F(MISSING)sqlservice.admin" not defined

What does that mean exactly? I don't know how to debug this further.
Additional Context
The usual workload-identity tests work, as far as I can tell. I followed the steps in https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity#authenticating_to, including verifying that workload identity works for the set-up service account by running this pod:
apiVersion: v1
kind: Pod
metadata:
  name: workload-identity-test
  namespace: K8S_NAMESPACE
spec:
  containers:
  - image: google/cloud-sdk:slim
    name: workload-identity-test
    command: ["sleep","infinity"]
  serviceAccountName: KSA_NAME

with my KSA_NAME. I even added this container as a sidecar to cloudsql-proxy to test whether some other problem in my configuration of that deployment would cause issues, but I could run that curl command curl -H "Metadata-Flavor: Google" http://<IP_ADDRESS>/computeMetadata/v1/instance/service-accounts/, which returned two entries:
default/
<EMAIL_ADDRESS>
As far as I understand, I should only get one entry here, but I don't understand where the second may come from, and I suspect this may be the problem over here!?
This is the deployment definition that currently is running (and crashing); I extracted it from the cluster and removed a few fields around managedFields and status:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cloudsql-proxy
  namespace: default
  labels:
    app: cloudsql-proxy
    app.kubernetes.io/managed-by: Helm
  annotations:
    meta.helm.sh/release-name: cloudsql-proxy
    meta.helm.sh/release-namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cloudsql-proxy
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: cloudsql-proxy
      annotations:
        prometheus.io/scrape: 'false'
        sidecar.istio.io/inject: 'false'
    spec:
      containers:
        - name: cloudsql-proxy
          image: eu.gcr.io/cloudsql-docker/gce-proxy:1.28.0
          command:
            - /cloud_sql_proxy
            - '-ip_address_types=PRIVATE'
            - '-instances=foobar:europe-west3:main-dev-testing2=tcp:<IP_ADDRESS>:5432'
          ports:
            - containerPort: 5432
              protocol: TCP
          resources:
            limits:
              cpu: 100m
              memory: 300Mi
            requests:
              cpu: 10m
              memory: 300Mi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          imagePullPolicy: IfNotPresent
          securityContext:
            runAsNonRoot: true
      restartPolicy: Always
      terminationGracePeriodSeconds: 30
      dnsPolicy: ClusterFirst
      serviceAccountName: cloudsql-proxy
      serviceAccount: cloudsql-proxy
      securityContext: {}
      schedulerName: default-scheduler
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 1
      maxSurge: 1
  progressDeadlineSeconds: 600

Any pointer much appreciated. Sorry if this turns out to be a generic workload identity problem - I find the cloudsql-proxy error message quite confusing though :-/.

After rubberducking through every step, detailed and step-by-step, we found that I annotated the kubernetes service-account wrongly. This is how I should have annotated it:
kubectl annotate serviceaccount cloudsql-proxy default<EMAIL_ADDRESS>vs
kubectl annotate serviceaccount cloudsql-proxy default<EMAIL_ADDRESS>It was buried under a layer of terraform. Sorry for the interruption, I hope it will help somebody else who is in the same situation later on :)

Glad you figured it out. Getting workload identity setup is definitely tricky and the proxy's error message is pretty terrible. By the way, we are working on fixing the error messages as part of https://github.com/GoogleCloudPlatform/cloudsql-proxy/issues/872.


RecordId cannot support negative cluster id: -51

Something is corrupting our record ids and we start getting above mentioned error. At this point orientdb indexes get corrupted and any query based on index (for e.g. select from C where P =  and there is index on P) returned empty records. We observe following stack trace in logs. We have kept backup of corrupted db. We cannot send db to you but can apply patches or run diagnostics on it.
2015-04-20 00:12:41:717 FINE  [ONetworkProtocolHttpAbstract.execute] Requested: GET /listDatabases [ONetworkProtocolHttpDb]Caught exception
com.orientechnologies.orient.core.exception.ODatabaseException: RecordId cannot support negative cluster id. You've used: -51
	at com.orientechnologies.orient.core.id.ORecordId.checkClusterLimits(ORecordId.java:323)
	at com.orientechnologies.orient.core.id.ORecordId.<init>(ORecordId.java:51)
	at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV0.readOptimizedLink(ORecordSerializerBinaryV0.java:462)
	at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV0.readSingleValue(ORecordSerializerBinaryV0.java:360)
	at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV0.deserialize(ORecordSerializerBinaryV0.java:197)
	at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinary.fromStream(ORecordSerializerBinary.java:74)
	at com.orientechnologies.orient.core.record.impl.ODocument.deserializeFields(ODocument.java:1752)

hi,
I would like to gather a bit more information:
does this error started to happen all together or the were some errors happening progressively ?
Have you done any particular operation like crash,backup/restore, batch import, moment of heavy load, or this happen in the normal application flow ?
Are there any other error in the log that started to appear together with this ?
Do you use a journaled file system ?
I'm improving the log in case of thins errors in a way that it's easier identify the record is causing it, I'll provide also a patched version of orient for do some diagnostic.
In the meanwhile if you can provide some answer to the previous question will be really helpful.

Hi,
I improved the logging in a way that we can identify the exact record is creating the problem (here is the change: https://github.com/orientechnologies/orientdb/commit/70acb381ae9ce20559922e190319794df2831e64) it will be released with 2.0.9.
in the meanwhile I'm writing an easy command for let you extract the information we need from the db.

That would be awesome!

Hi @johnmelba
I've got a dist with a command to get the detail of the failing records, where can i send that ?
thank you

no reply since a while, closing


Refine the code style

Signed-off-by: JmPotato<EMAIL_ADDRESS>Fix some lints detected by the clippy.

Thanks for your contribution.
How about replace all method with &Path to replace PathBuf?

Thanks for your contribution. How about replace all method with &Path to replace PathBuf?

Done. PTAL!


Add Hetzner DNS service - https://dns.hetzner.com/

Hetzner launched DNS service, which might be useful to use and support it.

Closed - please reopen of somebody really need it.

Reopen because of PR #169

PR #169 merged into feature/PR169
Clean feature from @dominikhahn at branch  feature/hetzner-dns

@dominikhahn, unfortunately the tasks in ansible/roles/public_dns/tasks/create-hetzner.yml are not idempotent. If you rerun the playbooks it creates all DNS entries again.

Delete DNS Records for letsencrypt failed too:
TASK [letsencrypt : Delete DNS record at Hetzner] ***********************************************************************************************************Thursday 18 March 2021  11:34:05 +0100 (0:00:00.063)       0:02:52.176 ********                                                                              An exception occurred during task execution. To see the full traceback, use -vvv. The error was: http.client.InvalidURL: URL can't contain control characters. "/api/v1/records/{'results': [{'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False

TASK [public_dns : Include DNS provider] ********************************************************************************************************************
Thursday 18 March 2021  14:46:01 +0100 (0:00:01.095)       0:00:01.124 ********
fatal: [localhost]: FAILED! => {"reason": "Could not find or access '/root/hetzner-ocp4/ansible/destroy-hetzner.yml' on the Ansible Controller."}

Destroy a cluster fails, because of missing destroy-hetzner :-(

Delete DNS Records for letsencrypt failed too:
TASK [letsencrypt : Delete DNS record at Hetzner] ***********************************************************************************************************Thursday 18 March 2021  11:34:05 +0100 (0:00:00.063)       0:02:52.176 ********                                                                              An exception occurred during task execution. To see the full traceback, use -vvv. The error was: http.client.InvalidURL: URL can't contain control characters. "/api/v1/records/{'results': [{'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False

Fixed!

uff, selecting all zones is not a good idea!
      zone_id: "{{ pd_hetzner_zone_id.json.zones | json_query('[*].id') | join(', ') }}"

@dominikhahn, unfortunately the tasks in ansible/roles/public_dns/tasks/create-hetzner.yml are not idempotent. If you rerun the playbooks it creates all DNS entries again.

Fixed

Let's run the some final tests...

looks good, merged into devel branch.


fix: Qna pairs are being duplicated in the Qna knowledge base

Description
Root cause
we have source qna file and dialog qna file today. The dialog qna file will import the the source qna file. When we do a qna publish, the loader will add source file content to the qna content of the dialog, then publish all these two files to the Qna maker.
fix
do a filter to prevent publish source file to the service.

Task Item
closes #5104

Screenshots

Coverage increased (+0.005%) to 55.377% when pulling 415e520411a65e65f9914c5fee2607292d931d0b on lei9444:qnafilter into 286bef23a95fdcfba0e1fcb67791afaffd399dcb on microsoft:main.


az ml workspace update syntax

az ml workspace update this command runs with -w for workspace name and -f for file name. Doesn't seem to run with --name and --file options. -f option seems to point to friendly name instead of the file option. This was with the latest az ml extension as of 12/21/2021.
AZ CLI version 2.31.0
az-cli-ml 1.37.0

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

ID: 63446f78-d3ac-0cc3-a102-a1612c54d90e
Version Independent ID: a20a657c-aeaa-d122-0714-1aa2cfecd966
Content: az ml workspace
Content Source: latest/docs-ref-autogen/ml/workspace.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

Routing to service team to take a look. Please expect delay due to the holiday season.

There are currently two version of the CLI experience for Azure Machine Learning, of which v2 is in preview. These versions require different arguments and are documented here: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-manage-workspace-cli?tabs=createnewresources%2Cvnetpleconfigurationsv1cli%2Cworkspaceupdatev1%2Cworkspacesynckeysv1%2Cworkspacedeletev1#using-the-cli-to-manage-workspaces.


RFC Removal of legacy external authentication

Originally
The following config variables:

from access_control_config.py:

# List of tags containing (multiple) emails of users who should authorize
# to access the corresponding record regardless of collection restrictions.
if CFG_CERN_SITE:
    CFG_ACC_GRANT_AUTHOR_RIGHTS_TO_EMAILS_IN_TAGS = ['859__f', '270__m', '506__m']
else:
    CFG_ACC_GRANT_AUTHOR_RIGHTS_TO_EMAILS_IN_TAGS = ['8560_f']

# CFG_EXTERNAL_AUTHENTICATION -- this is a dictionary with the enabled login method.
# The key is the name of the login method and the value is an instance of
# of the login method (see /help/admin/webaccess-admin-guide#5). Set the value
# to None if you wish to use the local Invenio authentication method.
# CFG_EXTERNAL_AUTH_DEFAULT -- set this to the key in CFG_EXTERNAL_AUTHENTICATION
# that should be considered as default login method
# CFG_EXTERNAL_AUTH_USING_SSO -- set this to the login method name of an SSO
# login method, if any, otherwise set this to None.
# CFG_EXTERNAL_AUTH_LOGOUT_SSO -- if CFG_EXTERNAL_AUTH_USING_SSO was not None
# set this to the URL that should be contacted to perform an SSO logout

from external_authentication_sso.py

# Tunable list of settings to be hidden
CFG_EXTERNAL_AUTH_HIDDEN_SETTINGS = ('auth', 'respccid', 'personid')
# Tunable list of groups to be hidden
CFG_EXTERNAL_AUTH_HIDDEN_GROUPS = (
...)

CFG_EXTERNAL_AUTH_HIDDEN_GROUPS_RE = (
...)

# Prefix name for Shibboleth variables
CFG_EXTERNAL_AUTH_SSO_PREFIX_NAME = 'ADFS_'
# Name of the variable containing groups
CFG_EXTERNAL_AUTH_SSO_GROUP_VARIABLE = CFG_EXTERNAL_AUTH_SSO_PREFIX_NAME+'GROUP'
# Name of the variable containing login name
CFG_EXTERNAL_AUTH_SSO_LOGIN_VARIABLE = CFG_EXTERNAL_AUTH_SSO_PREFIX_NAME+'LOGIN'
# Name of the variable containing email
CFG_EXTERNAL_AUTH_SSO_EMAIL_VARIABLE = CFG_EXTERNAL_AUTH_SSO_PREFIX_NAME+'EMAIL'
# Name of the variable containing groups
CFG_EXTERNAL_AUTH_SSO_GROUP_VARIABLE = CFG_EXTERNAL_AUTH_SSO_PREFIX_NAME+'GROUP'
# Separator character for group variable
CFG_EXTERNAL_AUTH_SSO_GROUPS_SEPARATOR = ';'

from external_authentication_ldap.py

CFG_EXTERNAL_AUTH_LDAP_SERVERS = ['ldap://scoldap.epfl.ch']
CFG_EXTERNAL_AUTH_LDAP_CONTEXT = "o=EPFL,c=CH"
CFG_EXTERNAL_AUTH_LDAP_USER_UID  = ["uid", "uniqueIdentifier", "mail"]
CFG_EXTERNAL_AUTH_LDAP_MAIL_ENTRY = 'mail'
CFG_EXTERNAL_AUTH_LDAP_GROUP_MEMBERSHIP = 'memberOf'
CFG_EXTERNAL_AUTH_LDAP_GROUP_UID = 'uniqueIdentifier'
CFG_EXTERNAL_AUTH_LDAP_GROUP_NAME = 'displayName'

CFG_EXTERNAL_AUTH_LDAP_HIDDEN_GROUPS = ['EPFL-unit', 'users']

should be all moved into invenio.conf so that that the whole authentication system could be decoupled from CERN/INSPIRE/OpenAIRE/EPFL specific configurations.

@lnielsen this is something we might want to have a look at for allowing users to change their email addresses.

I'm thinking we can just replace occurrences of:
CFG_VAR = val

with :
from invenio.base.globals import cfg
CFG_VAR = cfg.get('CFG_VAR', val)

Shouldn't that do the job?
I've already done this for some of variables in #2873

By the way is external authentication replaced by Flask-SSO and oauthclient?

@lnielsen Yes, the original issue is addressable via Flask-SSO and OAuth, so unless some Invenio 1.x installation needs this split, let's close this issue at hand and eventually reopen new one for OAuth.
IIRC @egabancho started to test OAuth for CDS lately.

I would change  the title to RFC External authentication method removal. We have OAuth and SSO implemented in 2.x so we can remove invenio/legacy/external_authentication from all 2.x branches.

Some of the variables in access_control_config.py  is still needed by Invenio, so I'll fix that using the method mentioned and then perhaps we deprecate the entire module?

Seems we agree on SSO, and for @aw-bib and anyone else using LDAP with Invenio v1.x, we'd have to port LDAP external authentication method to the new "Flask style" using Flask-LDAP.  I guess this may be done later...

@kaplun @tiborsimko can we proceed with fast deprecation policy (removed in 2.1) as we already have replacement for OAuth and SSO?

:+1:


What's needed to support signing in on Linux

I've got an application I'm supporting written in .Net Core 2.0 and upgraded to 2.1. The author used this whole UserStore stuff and a SQL Server database for security and role assignments and they used your package to replace some parts of it. I need to move this from a Windows host to a Linux vm and I've found that the use of System.DirectoryServices.AccountManagement in the actual auth call to be a non-starter in Linux. I'm not going to pretend to understand how this is done in .Net Core, only that logging in via that library makes the other code that hits the database and pulls in the user work because once they login the User object is federated with valid claims and all that. I thought maybe if I scraped the ldapusermanager out and used that to try to just call checkpassword that might work and I can certainly login this way, but the rest of the magic doesn't happen. The bits that set the User Identity doesn't happen. I honestly don't know what does that. What pieces would need to be fleshed out here? I'd rather add another class or two and keep things working in the pattern that already exists than scrape all that automation out and make each call myself.
It's been a while so I don't know if you monitor this or not but appreciate it either way.

@mattisking This library does not use System.DirectoryServices.AccountManagement, so there shouldn't be any reason you can continue to use it on a Linux host. In fact, one of the reasons this even exists is because there was no System.DirectoryServices.AccountManagement when .NET Core 1.0 was released.

Oh I know. I looked at the code. I had a login page for Windows I added in
the React front end. In the controller (.Net Core) when I used
System.Directory.AccountManagement for logging in all the rest of my
controller calls just worked with the UserStore stuff with your library. I
didn’t have to do anything. When I yanked out that library because of Linux
I implemented the same login using the new Protocols library and then I
tried using your LDAP library directly but the UserStore stuff is broken
now. That AccountManagement library I used set something that made
everything else work seamlessly. That’s what I’m trying to figure out.
Thank you for replying either way. This functionality was lifted from a
Core MVC application using Razor. We took the controllers and all
underlying functionality which was already working and moved it into a
react-core templated application.
Matt
On Tue, Aug 11, 2020 at 8:35 AM Justin Buchanan<EMAIL_ADDRESS>wrote:

@mattisking https://github.com/mattisking This library does not use
System.DirectoryServices.AccountManagement, so there shouldn't be any
reason you can continue to use it on a Linux host. In fact, one of the
reasons this even exists is because there was no
System.DirectoryServices.AccountManagement when .NET Core 1.0 was released.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jusbuc2k/Justin.AspNetCore.LdapAuthentication/issues/13#issuecomment-671919608,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADEUCHVBSZTODTDT2KVIEDSAE3JDANCNFSM4P2L73GQ
.


Feature/contentful

add example env
Update graphql query to match fields from Pride Test
Update event listing card component to format date/time as per design.

Hi Marcel, I can't replicate the issue, the page loads fine for me. Are you using the Pride Test API Key? In the Pride Web Test account there is no image field defined which may be why the resolutions is returning null.
Thanks


Update discord_app.py

I have to implement multithreading in the application so that it can handle tasks concurrently.

Here , I have tried to introduce concurrency in the discord application so that it can execute multiple tasks concurrently. The application is really amaziing and the developer has really done a good job.


I would recommend using Llama and not Vicuna and making sure you use the right version. Then this resolved it for me.

@BennoKrojer hi~ I still got non-sense output when shifting to Llama2-7b-chat-hf. Do you get understandable output when shifting to Llama2? Thanks!


Dependency on hcitool?

Describe the bug
Errormessage "/bin/sh: 1: hcitool: not found" upon start of the adapter.
To Reproduce
Steps to reproduce the behavior:

Restart adapter
Have a look at the iobroker logs.

Expected behavior
No error is thrown
Screenshots & Logfiles

Versions:

Adapter version: 1.9.8
JS-Controller version: 3.3.18
Node version: 12.22.7
Operating system: docker -> buanet

Additional context
Add any other context about the problem here.

this is a part ogf the systeminformation that are collected and most likely a docker thing. Just disable the bluetooth data collection


Edited: Question/Issue: Parallel testing using Browserstack + CodeceptJS/Protractor

What are you trying to achieve?
Trying to run parallel tests using Browserstack's 'multicapabilities' option on codeceptJS - Protractor
What do you get instead?
When adding multicapabilities to my config file and attempting to  run a test, I get an error message on my consolei, where multiCapabilities  is called as undefined
Question/Issue
Do I need to alter things in the Protractor.js file to get this to work for me?
Or is it simply not yet possible to utilise Protractor/Browserstack's multiCapabilities function at thist ime?

Couldn't load helper Protractor from module '.helper/Protractor': Cannot read property 'multiCapabilities' of undefined {}

Details

CodeceptJS version: 0.5.0
NodeJS Version:
Operating System: Windows
Protractor : 5.1.1

class Protractor extends SeleniumWebdriver {

  constructor(config) {
    super(config);
    this.options = {
      browser: '',
      url: 'http://localhost',
      seleniumAddress: 'http://localhost:4444/wd/hub',
      rootElement: 'body',
      scriptsTimeout: 10000,
      waitForTimeout: 1000, // ms
      windowSize: null,
      driver: 'hosted',
      capabilities: {}
    };

    this.options = Object.assign(this.options, config);
    if (!this.options.allScriptsTimeout) this.options.allScriptsTimeout = this.options.scriptsTimeout;
    if (this.options.proxy) this.options.capabilities.proxy = this.options.proxy;
    if (this.options.browser) this.options.capabilities.browserName = this.options.browser;
    this.options.waitForTimeout /= 1000; // convert to seconds
  }

Configuration file:

exports.config = {

   tests: 'tests/Uitvoeren/*.js',
    timeout: 10000,
    output: './output',
    helpers: {
    Protractor: {
        'seleniumAddress': 'http://hub-cloud.browserstack.com/wd/hub',
        'webDriverProxy': 'http://uvi.hosting.corp:8080',
        'url': 'https://acc-www.centraalbeheer.nl',
        'capabilities': {
            'browserstack.user': 'myusername',
            'browserstack.key': 'mybrowserstackkey',
            'browserstack.local': true,
            'browserstack.debug': true,
        },
         'multiCapabilities': [{
            'browserName': 'Chrome'
            },{
            'browserName': 'Firefox'
            }]
          },

    Iframe: {
        require: './helpers/iframe_helper.js'
    }
},

edit: I managed to fixed the first issue, only to run into another.
My thanks in advance for any help/comments.

@lisettea maybe this will help you http://codecept.io/advanced/#multiple-execution ?


feat: set package build target to es2017

remove dist/ before build because it seems webpack simply merges the build output, not removing the old chunks/assets generated from previous builds

move to es2017 build target. We don't support browsers that don't support it anyway. Solves a recent regression where transpiling async/wait to regenerators was causing typeError issues. Haven't dug super deep to figure out what was the exact cause, but it just seems a compiler issue.

[ ] add to changelog?

@dwelle lets add  this under "Build" in changelog


Pageant is not running

Version: 1.0.119
Platform: win32 10.0.18363
Plugins: none
Hello!
I have problems after update 119. If I try to use a new SSH connection, I get a "Pageant is not running" message and the connection fails. Also, if you return to the main menu, the buttons there are inaccessible for pressing and blink.

same here.

Fixed in Alpha 120


Update docs to use mamba instead of conda

Bug Report

Description
The installation docs recommend using conda for installing DVC in a conda environment. Unfortunately the conda program is so slow that it is barely usable, and its solver chokes very easily. It takes a ridiculous amount of time to install, as demonstrated iterative/dvc#5625 and iterative/dvc#5787, to the point where users believe it is a bug.
The modern solution to this problem is mamba, which is a relatively new reimplementation of conda in C++.

Reproduce
Steps for reproducing and remediating the bug can be found in iterative/dvc#5625.
Expected
I expect that the documentation recommends a reasonably efficient means of installing DVC within a conda environment, for example with mamba.
One potential way to resolve this issue would be to change the conda command for Mac OS, Windows, and Linux from
conda install -c conda-forge dvc

to
conda install -c conda-forge mamba
mamba install -c conda-forge dvc

Moved this issue to the docs repo, adding a note regarding mamba installation seems like the most reasonable solution here

I asked on Gitter, and the conda-forge folks do seem to support updating the conda-forge docs to feature mamba more prominently.

@maresb would you be willing to suggest an edit? You can go to a page like https://dvc.org/doc/install/macos and click [Edit on GitHub] to get started. See also https://dvc.org/doc/user-guide/contributing/docs.
I'm not sure we want to change the main conda instructions though, maybe just add a link to a mamba usage page for now?

I can't get to it right away, but I'll see what I can do, maybe this weekend or so. If someone else can do it sooner, then please go ahead.
Since nobody has yet seemed to have managed to clock how long it actually takes to install DVC with conda, I left it running today in the background.
conda: 7 hours, 57 minutes, 50 seconds.
mamba: 33 seconds.
(Factor: 868.8×)
My question is then:
Given this benchmark, does it make any sense at all to recommend using conda? Or should we recommend exclusively mamba?
As for methodology, ... I tested conda with
docker run --rm -it continuumio/miniconda3

date ; conda install -y -c conda-forge dvc ; date

and similarly mamba with
docker run --rm -it continuumio/miniconda3

conda install -y mamba
date ; mamba install -y -c conda-forge dvc ; date

Runtime was computed by subtracting the dates. My host machine is Ubuntu 20.04 on an Intel Skylake Core i7-6700 / 3.4 GHz. I was using my computer today, but never for anything computationally intensive.

I'd be curious to see how long it takes on proprietary OSes, but I cannot benchmark those.

Thanks @maresb for the research! I've updated the files for now the way you suggested:
$ conda install -c conda-forge mamba
$ mamba install -c conda-forge dvc

I guess the only thing that is left here is to may be mention (one sentence) why do we install mamba in the first place, or a comment:
$ conda install -c conda-forge mamba # mamba speedups install 800x
$ mamba install -c conda-forge dvc

@shcheklein thanks for making this happen!
Looking at the webpage layout, there is not much room to provide details. From editing the webpage, here's what looks good to me:

I noticed that there is an additional conda install command in README.md.
By the way, the recent builds of DVC on conda-forge support Python 3.9. I strongly suspect that the message underneath was meant to imply "Currently, Python 3.9 is unsupported", so that could be removed (or at least bumped 3.8→3.9)

@maresb happy to help. This is amazing improvement!

I noticed that there is an additional conda install command in README.md.

Good catch. Done.

so that could be removed

also, good catch - removing.
Added also that comment # installs much faster than conda . It'll be automatically redeployed soon.
Feel free to close the ticket after that if you feel that this is enough :)
thanks again for this improvement!

I'm very glad to see this resolved. Ironically, I have yet to use DVC because when I tried to install it a year or so ago, I ran into all these installation problems. But I hear great things about it, and I look forward to trying it now that it works with my mamba environment! :wink:
One further minor point is that the conda-forge shield seems to be down: https://img.shields.io/conda/dn/conda-forge/dvc
I looked briefly, and I suspect the issue is on the side of shields.io, so maybe it will resolve itself in some time.
I'll close out this issue now. Thanks so much for the efficient response!!!


Copy paste warnings in cell output not possible

How are you mainly using the Jupyter extension?

[X] Notebooks (.ipynb)
[ ] Interactive Window and or Cell Scripts (ex. .py files with #%%)
[ ] Both

What happened?
CTRL + C does not copy cell output warnings (warnings.warn()). Furthermore it is not possible to select the text, right click, and copy it. It is not possible to right click normal cell output text and click copy either.

Related: #1190
What flavor of VS Code are you using?
Stable
Jupyter Extension Version
v2021.8.2041215044

Jupyter logs
See ![image](https://user-images.githubusercontent.com/3297866/133282778-017147cd-c3f2-4c15-a18c-0dadda41d085.png)
(Ironically I can't select this text)

What coding language are you working with?
Python
VS Code Version?
Version: 1.60.0 (user setup)
Commit: e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff
Date: 2021-09-01T10:41:52.311Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042
Python Extension Version
v2021.9.1230869389
Python Version
3.8.11.final.0
Anaconda Version
conda version : 4.10.3
conda-build version : 3.21.4
What OS are you running on?
Windows
Running Jupyter locally or remotely?
N/A or Not sure
Code of Conduct

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

Thanks for reporting this I confirm the same repro on Mac.

I have the same issue/request, is there a way to copy cell outputs? if not definitely need this.

Related to https://github.com/microsoft/vscode/issues/104095, which has been closed.


NoSuchMethodError (NoSuchMethodError: The getter 'debugDidSendFirstFrameEvent' was called on null. Receiver: null

when start my flutter, it always report error;  as overflowstack tells it will report such error when missing runApp, but I have and the stack is following;
Object.noSuchMethod (dart:core-patch/object_patch.dart:53)
Eval (Unknown Source:0)
new Rect.fromCircle (dart:ui/geometry.dart:0)
DefaultShaderWarmUp.warmUpOnCanvas (/opt/google/flutter/packages/flutter/lib/src/painting/shader_warm_up.dart:0)
ShaderWarmUp.execute (/opt/google/flutter/packages/flutter/lib/src/painting/shader_warm_up.dart:0)
PaintingBinding.initInstances (/opt/google/flutter/packages/flutter/lib/src/painting/binding.dart:0)
SemanticsBinding.initInstances (/opt/google/flutter/packages/flutter/lib/src/semantics/binding.dart:0)
RendererBinding.initInstances (/opt/google/flutter/packages/flutter/lib/src/rendering/binding.dart:0)
WidgetsBinding.initInstances (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
new BindingBase (/opt/google/flutter/packages/flutter/lib/src/foundation/binding.dart:0)
new _WidgetsFlutterBinding&BindingBase&GestureBinding (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
new _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
new WidgetsFlutterBinding (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
WidgetsFlutterBinding.ensureInitialized (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
runApp (/opt/google/flutter/packages/flutter/lib/src/widgets/binding.dart:0)
main (/Users/wanjm/git/plasoFlutter/ppad/lib/main.dart:31)
main (/Users/wanjm/git/plasoFlutter/ppad/lib/main.dart:0)
_Closure.call (dart:core-patch/function.dart:0)
_runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:241)
_rootRun (dart:async/zone.dart:1184)
_rootRun (dart:async/zone.dart:0)
_CustomZone.run (dart:async/zone.dart:1077)
_runZoned (dart:async/zone.dart:1619)
runZonedGuarded (dart:async/zone.dart:1608)
_runMainZoned.<anonymous closure> (dart:ui/hooks.dart:233)
_Closure.call (dart:core-patch/function.dart:0)
_startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301)
_Closure.call (dart:core-patch/function.dart:0)
_RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168)

the result of doctor -v is
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale zh-Hans-CN)
    • Flutter version 1.17.1 at /opt/google/flutter
    • Framework revision f7a6a7906b (12 days ago), 2020-05-12 18:39:00 -0700
    • Engine revision 6bc433c6b6
    • Dart version 2.8.2

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /opt/google/android/sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /opt/google/android/sdk
    • ANDROID_SDK_ROOT = /opt/google/android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit visit
      https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.8.3

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[!] IntelliJ IDEA Ultimate Edition (version 2018.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (1 available)
    • Lenovo TB 8705F • HA13B3X2 • android-arm64 • Android 9 (API 28)

! Doctor found issues in 2 categories.

Hi @wanjm
Can you please provide
your flutter run --verbose
and a minimal complete reproducible code sample.
Thank you

it is reproduceable in vscode. how can i add --verbose in vscode;

Hi @wanjm
If you are experiencing the issue only with VS Code,
then following the indication of VS Code Flutter Extension,
the correct way to address the problem
is to open an issue in the dedicated repository.
Otherwise, could you please run from terminal
cd <your app folder>
flutter run --verbose

Thank you

I got the same error in VSCode at launch for no apparent reason, cannot reproduce.
I have the runApp function.
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-FR)
    • Flutter version 1.17.1 at /Users/ludonope/Code/flutter
    • Framework revision f7a6a7906b (2 weeks ago), 2020-05-12 18:39:00 -0700
    • Engine revision 6bc433c6b6
    • Dart version 2.8.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/ludonope/Library/Android/sdk
    • Platform android-R, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4, Build version 11E146
    • CocoaPods version 1.9.1

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.45.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.2

[✓] Connected device (1 available)
    • Pixel 3 XL • 896Y045YT • android-arm64 • Android 10 (API 29)

• No issues found!

is there any difference for vscode to start flutter. does it use "flutter run";  how to config --verbose in vscode.json;
though it happens in vscode, I think there is something wrong with flutter as vscode is just a editor;

HI @wanjm
to make sure that the problem is with flutter
is useful to know if the problem reproduces using terminal,
could you please follow the steps above?
Thank you

i don't think it is a bug of vscode, maybe vscode environment makes the bug more repeatable;
any way I can't reprocude it by "flutter run"

Hi again @wanjm
the issue is not workable without a reproducible code sample
could you please provide the information listed above
Thank you

here is the verbose log, hope it will helps;
verbose.txt

Hi @wanjm
Looking at logs, there is no NoSuchMethodError error in your logs
Can you please upgrade to 1.17.2 and try with updated vs code flutter plugin 3.11.0?
Thank you

the verbose is got under flutter 1.17.2 and flutter plugin 3.11.0

Hi @wanjm
as your logs show the issue does not occur running your flutter app from terminal,
if the issue was with flutter itself it would have shown;
please follow the indication of VS Code Flutter Extension and open an issue in the dedicated repository.
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

@iapicca  I found the reason why only vscode will come across this, beacuse I checked the break point at all exception (both cached and uncached );
then the problem is when run in vscode, there will be more such exceptions, but not always;
so there must be something happened though it is cached;


Adjust Exposure

Thank you so much for this tool.
I have a feature request: I want to adjust the exposure of the image.
Please add this feature or share some resources so I can learn to do this.
Thank you.

If you want to adjust the brightness of an image, the image crate has a method called brighten on the DynamicImage struct.
I'm not sure if it's a good idea to add this feature to the tool. It's more like an image editor thing to me. May I know your use case for this?

I want to convert to cubemap images so that I can load all images at the same time (for a web app).
The image that I got is so dark.

Is the source image a .hdr one?

Yes.
So I need a tone mapped image, right?

Yeah, I guess you have to do the tone mapping yourself for now.
The image crate has an issue about hdr decoding. I'm not sure if it's related to this.

Got it
Thank you so much


Send image with message.

How to send an image with a message? I want something like client.send(path_to_image, channel_id);

This currently isn't possible, but will be in the next update. Thank you!


Unknown ALPN protocol sent to an external service configured w/ MUTUAL_TLS

Describe the bug
Connections to an external HTTP service configured with a MUTUAL_TLS destination rule are aborted by the external server with a fatal "no_application_protocol (120)" alert.
Expected behavior
Envoy and the external service should connect using http 1.1. Istio/envoy should not send an ALPN list consisting entirely of unsupported protocols (ie, ["istio"]). Unsupported protocols are not ignored by servers.

In the event that the server supports no protocols that the client advertises, then the server SHALL respond   with a fatal "no_application_protocol" alert.
https://tools.ietf.org/html/rfc7301#section-3.1

Version
Istio 0.8, https://github.com/istio/istio/pull/5776/commits/a5a38786954ff5b44fb4b780e8a796eff32645d6#diff-f507fb55b7edf4a03d3c7e9aebf64a1eR415

@pbohman, to confirm, the external http service you mentioned is inside the mesh ?
If yes, from code comment, The custom "istio" value indicates in-mesh traffic and it's going to be used for routing decisions..
/cc @costinm @andraxylia could you pls confirm if istio value still in used for routing ? If not, we could remove it.

@quanjielin, The external http service is outside of the mesh. A client inside the mesh is connecting to an external service outside of the mesh.

thanks @pbohman , it looks like a bug https://github.com/istio/istio/blob/276e1b273ab9bacdb4a9a646e566598d1ebb34eb/pilot/pkg/networking/core/v1alpha3/cluster.go#L455 should treat TLSSettings_MUTUAL/TLSSettings_ISTIO_MUTUAL differently when set AlpnProtocols, I'll fix that.


Alternative to dptree::map that replaces the input

As per the title, It'd be great to have a version of dptree::map (and dptree::map_async of course) that replaced the input instead of adding on to it.
To avoid an XY problem, here's what I'm trying to do:

Have my chain of responsibility
Add, at the end of the chain, something that gets the Result<()> of everything that's come before and handles it, potentially logging in to the user or something of the sort.

Thank you all in advance. I'd be willing to help in implementing this if given a little guidance.

Hi! What do you mean by "replacing the input instead of adding on to it"?

Basically right now map:

Runs the given function;
Stores that function's result into the DependencyMap.

I'd like a function that:

Runs the given function;
Clears the DependencyMap;
Inserts the function's result into the now-empty DependencyMap.

Yes, now I understand. However, why is this needed?

Add, at the end of the chain, something that gets the Result<()> of everything that's come before and handles it, potentially logging in to the user or something of the sort.

Since it is at the end of the chain, no dependencies will be passed forwards.

Closed due to inactivity.


Script not reloading

When set_script_source is true in the config, after the first file save, the scripts are not updated in the browser, instead the logs appear like this:

If I try to save the script again after this, I get this error:

For the console issue, I tried the repro, and it works perfectly always.
For the error stack, it is not possible to determine what might have caused this,  and code in Sublime and the package has changed.
For all breakpoints being added as disabled, this also is fixed now.


Use vault api and sdk modules instead of tagged repo

Signed-off-by: Periklis Tsirakidis<EMAIL_ADDRESS>What this PR does / why we need it:
This PR switches vault deps to use the according API and SDK modules. This enables consuming cert-manager and vault as go modules in upstream projects with proper version resolution.
Special notes for your reviewer:
cc @munnerz

Thanks for this 😄 seems like this has cleaned up a lot of transitive dependencies too!
/release-note-none
/ok-to-test

Can you run ./hack/update-deps.sh and see if any files change?


Extract to typedef from (invalid) type with comments in JS file causes assertion failure

// @filename: foo.js
type Foo = [|{
    /**
     *
     */
    oops: string;
}|];

// @filename: bar.js
type Bar = [|string | /* oops */ boolean|];

Request "extract to typedef" on each[|region|].
Response received: getEditsForRefactor (194). Request took 2 ms. Success: false . Message: Error processing request. Debug Failure. False expression: Node must have a real position for this operation
Error: Debug Failure. False expression: Node must have a real position for this operation
    at NodeObject.assertHasRealPosition ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:162180:22)
    at NodeObject.getStart ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:162186:18)
    at processChildNode ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:145804:47)
    at processChildNodes ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:145905:48)
    at [NODE_MODULES_DIR]/typescript/lib/tsserver.js:145793:21
    at visitNodes ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:30193:24)
    at Object.forEachChild ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:30677:24)
    at processNode ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:145790:20)
    at formatSpanWorker ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:145590:17)
    at [NODE_MODULES_DIR]/typescript/lib/tsserver.js:145553:140
    at Object.getFormattingScanner ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:144180:23)
    at Object.formatNodeGivenIndentation ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:145553:31)
    at getFormattedTextOfNode ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:147971:45)
    at format ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:147942:52)
    at computeNewText ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:147945:23)
    at [NODE_MODULES_DIR]/typescript/lib/tsserver.js:147909:39
    at Object.mapDefined ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:605:30)
    at [NODE_MODULES_DIR]/typescript/lib/tsserver.js:147907:42
    at Object.mapDefined ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:605:30)
    at Object.getTextChangesFromChanges ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:147893:27)
    at ChangeTracker.getChanges ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:147832:45)
    at Function.ChangeTracker.with ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:147252:32)
    at Object.getRefactorEditsToExtractType [as getEditsForAction] ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:159993:62)
    at Object.getEditsForRefactor ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:148557:41)
    at Object.getEditsForRefactor ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:164314:32)
    at IpcIOSession.Session.getEditsForRefactor ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:175446:59)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:174066:61)
    at [NODE_MODULES_DIR]/typescript/lib/tsserver.js:175829:88
    at IpcIOSession.Session.executeWithRequestId ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:175820:28)
    at IpcIOSession.Session.executeCommand ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:175829:33)
    at IpcIOSession.Session.onMessage ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:175855:35)
    at process.<anonymous> ([NODE_MODULES_DIR]/typescript/lib/tsserver.js:178490:31)
    at process.emit (node:events:390:28)
    at emit (node:internal/child_process:917:12)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

I was encountering a similar error in #48112 due to new synthetic nodes being added as a result of processing text changes. I fixed the case I ran into using this: https://github.com/microsoft/TypeScript/pull/48112/files?show-viewed-files=true&file-filters[]=#diff-386d93db50a938da0c4af7bb293ac679b5da235cebeeee9adbc040fbf8aa222cR1128-R1136
I'll have to check whether the issues are related.

That link seems to have issues on my end - can you hard-link to the line range of the file?

https://github.com/microsoft/TypeScript/blob/01b9a2d5b002298d7bb76e1f2c90dcf8a7908545/src/services/textChanges.ts#L1128-L1136

The problem is that the nullTransformationContext uses a default NodeFactory that does auto-parenthesization, and our auto-parenthesization for types is fairly aggressive, so we sometimes introduce a new parenthesized type when visiting on 1136. Since this visitor is only supposed to create a proxy for existing nodes for the purpose of setting positions, its not designed to handle net-new nodes.

Is it a parenthesization issue? It seems more like it's specific to putting a comment inside of a comment. The fix that @MQuy has at #48545 of just dropping the comments fixes the specific tests at a shallow level, but would fail any deeper.

I thought it may have been due to a ParenthesizedType node being silently added to the type, but that does not seem to be the case here.

Is there a way to turn off comment trivia emit for an entire subtree? That would probably be an ideal fix, but admittedly I'm not familiar with the transform pipeline anymore.

Yes, you can set EmitFlags.NoComments | EmitFlags.NoNestedComments to disable comments for the node and its subtree.

Thank you @MQuy!

Looks like there's still an issue when triggering the command from inside of a comment (https://github.com/microsoft/TypeScript/issues/48593).


Wrong Version Number

Click "About GraphQL" on version 0.5.0 and it shows 1.4.15 (1.4.15).

Bump thought i was going crazy

This is resolved in 0.6.0.


[SPARK-41378][SQL][FOLLOWUP] DS V2 ColStats follow up

What changes were proposed in this pull request?
follow-up PR
Why are the changes needed?
to address comments
https://github.com/apache/spark/pull/38904#discussion_r1044214341
https://github.com/apache/spark/pull/38904#discussion_r1044220536
Does this PR introduce any user-facing change?
Change the return type of columnStats() from Optional<Map> to Map.
How was this patch tested?
existing test

The test failure doesn't seem to be related to my changes.

thanks, merging to master!

Thanks


Problem when inheriting ComplexModelBinder

I have solution when I need to inherit ComplexModelBinder like in this post: http://www.dotnet-programming.com/post/2017/03/17/Custom-Model-Binding-in-Aspnet-Core-2-Model-Binding-Interfaces.aspx
It is work fine until I add [FromBody] in the Controller's method.
As I can see in debug, it is seems that subcalls form model binders lost BindingSource, and I can note set it because its has only getter. Here is code:
var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
for (var i = 0; i < context.Metadata.Properties.Count; i++)
{
    var property = context.Metadata.Properties[i];
    //HERE: property.BindingSource IS NULL and can not be setted.
    propertyBinders.Add(property, context.CreateBinder(property));
}

Can you share your code and your controller method/model ? It's hard for me to tell what's going on without all of the details.

Hi @topguss I am the author of the article you mentioned. The snippet of code you posted is adequate when you inherit from the ComplexTypeModelBinder, if you inherit from another model binder a diffrent code might be needed. To get an idea of how the provider should look like you may give a look to the source code of the provider of the model binder you want to inherit from.
Anyway, I don't understand why you need to change the property metadata? They are basically read-only you can't change them (they are cached, so if modify them you might experience hard-to-debug bugs).
Please tell me which model binder are you trying to inherit from. Moreover, consider that when you use [FromBody] you should trigger "formatters", and formatters doesnt call recursively the model binding process itself like in the ComplexTypeModelBinder. The only way to modify a formatter, basically is rewriting the whole model tree construction process  and/or changing some parameters it reads (as it is the case for the Json formatter)

I suspect, that you are trying to inherit from the ComplexModelBinder to deserialize Json data. This is incorrect, since ComplexModelBinder is not involved in Json deserialization. Also inheriting from the right model binder would not solve since it is just a wrapper around Json.net deserializer. Thus , the right way is to write a Json.Net contract resolver that handles interfaces appropiately, and install it in asp.net core, .
Moreover, in this case you should prevent the model binder that inherits from ComplexModelBinder to be called in case of Json data: it is enough to install its provider just before the ComplexModelBinder instead that at the beginning of the providers list. This way it will not prevent the call of the Json formatter.

Well, I am inheriting from the ComplexModelBinder. Everything is the same as in the code above, except I need to deserialized JSON (and XML in the future) from a body of request.
I do not need to change property metadata, but when I watch it in DEBUG, I see that BindingSource is NULL, and in my orginal request, it is FromBody.
I found same solution on (which is similar to the post form the beginning)https://github.com/Serjster/IOCModelBinderExample/tree/ASPNETRTMVersion/src/IOCModelBinderExample/Infrastructure. I changed only model class name and add more porpeties. In the controller method, I added  [FromBody].
When model passed to the controller method, every property has NULL vallue, e.g. https://github.com/Serjster/IOCModelBinderExample/blob/ASPNETRTMVersion/src/IOCModelBinderExample/Controllers/HomeController.cs. Without [FromBody], everytnig work fine.
In the model binder, I need to create model object, so I override CreateModel, like in the above example because I need to extract some data from JWT token and populate model with them. I can not do it in the controller, because that data are mandatory, and ModelState will be in INVALID state, if I do not populate them. So, solution is to do that in the model binder.
As I guess the ComplexModelBinder has a problem when it works with FromBody. Or maybe there is another ModelBinder which I can use? I can not find more docs about model binder...

The involved model binder is the BodyModelBinder. However, it just select the right formatter (which in your case is the json formatter), and calls it. In thurn the json formatter is just a wrapper around json.net.
Thus, acting on model binders in case of json data is nor recommended. You should write a new json formatter...
You don't need this! The way json formatter calls Json.net is customizable, so you should act this way.
You may customize Json.net behaviour by passing customizion the MvcJsonOptions object:
services.Configure<MvcJsonOptions>(o => o.SerializerSettings.ContractResolver  = new YourContractResolver())
You may change also other settings. However, the right place to find documentation is the Json.Net documentation.

I do not need to change anything in formatter. Only thing I want to do is to create Model class on proper way.  My model class has constructor with params, where I need to inject some context information.
So, I need to override method:
   protected override object CreateModel(ModelBindingContext bindingContext)

it is perfect method in may case, but I can find solution using ContractResolver.

@topguss ,
The path you have in mind is NOT POSSIBLE. When a model binder calls a formatter the formatter itself takes care of creating the model, so once and for all in case of Json data IT IS NOT POSSIBLE TO OVERRIDE model binder CreateModell.
In a custom Json.net contract resolver you may specify custom ways to deserialize some types. Namely, ContractResolver recognize a specific class or the fact that the current type is an interface and may call a custom deserializer for that type/set of types.
Below links of a custom contract resolver that handles subclasses and its associate custom deserializer:
custom contract resolver
Custom Deserializer
You may abstract from that code above, or wait a couple of weeks, since within a couple of weeks I will write a further post on my blog that covers this subject since a lot of people asked me about using Dependency Injection in ModelBinders/Formatters

@topguss ,
As promised, I published a solution on my blog.

@frankabbruzzese I've read through all your examples and blog post, but I cannot get my custom ContractResolver to be called during deserialization. Specifically, I want to serialize and deserialize enum members using [Description] attributes.
Everything is working perfectly during serialization; my ContractResolver.ResolveContractConverter() creates my custom JsonConverter which then serializes the property using WriteJson().
I installed MyJsonContractResolver using:
services.AddMvc()
    .AddJsonOptions(opt =>
    {
        opt.SerializerSettings.ContractResolver = new MyJsonContractResolver();
    });

Here is the ContractResolver (I created the various overrides just so I could set breakpoints):
public class MyJsonContractResolver : CamelCasePropertyNamesContractResolver
{
    protected override string ResolvePropertyName(string propertyName)
    {
        return base.ResolvePropertyName(propertyName);
    }

    protected override JsonObjectContract CreateObjectContract(Type objectType)
    {
        return base.CreateObjectContract(objectType);
    }

    protected override JsonContract CreateContract(Type objectType)
    {
        return base.CreateContract(objectType);
    }

    public override JsonContract ResolveContract(Type type)
    {
        return base.ResolveContract(type);
    }

    protected override JsonConverter ResolveContractConverter(Type objectType)
    {
        return objectType.IsEnum ? new EnumDescriptionJsonConverter() : base.ResolveContractConverter(objectType);
    }

    protected override IValueProvider CreateMemberValueProvider(MemberInfo member)
    {
        return base.CreateMemberValueProvider(member);
    }
}

However none of the MyJsonContractResolver breakpoints (CreateObjectContract, CreateContract, ResolveContract) are hit during model binding. My controller action is simply hit without my custom deserialization for that property.
Is there some reason my custom ContractResolver works for serialization but not deserialization? I see that the MVC options also have InputFormatters and OutputFormatters, do I need to hook in to InputFormatters also?

Maybe the problem is the interfaces model binder provider you took from my other post that intercepts all interfaces processing, thus preventing the formatter model binde from being called. You should move it to a more appropriate place in the list of all model binder providers (in my post I add it on top of the list), that is immediately before the ComplexTypeModelBinderProvider. Just loop through this list looking for it while counting its position, and then perform an insert in that position.

@frankabbruzzese no, I did not install any model binder, I am using only the default model binders and wanted to customize only how the JSON is deserialized. Based on your comments above, I thought that was the approach you were recommending.
I will look over the source code for BodyModelBinder, and try to figure out why it is not choosing my ContractResolver.

Oops, I misspoke, in my case it uses ComplexTypeModelBinder because I'm binding from Query String properties, not Body.

Then you may use the model binder described here  that inherits from ComplexTypeModelBinder . However, if you want to use both approaches in the same project please do not place it on top of all binder providers, but just before the provider for the ComplexTypeModelBinder .

Okay, I'll try that I approach, but just so I understand, what is different about my scenario that requires a custom model binder? In your comment above, you say that inheriting ComplexTypeModelBinder is not the correct approach if I just want to change how the JSON is deserialized.

Nevermind, I think I understand now, in the case of Query parameters it is binding one single property at a time, as opposed to Body where it deserializes everything at once. It makes complete sense that the entire JSON deserialization is not even used in the case of Query parameters. Thanks for the great posts.

Custinizing Json contract resolver is the right approach when using json data in the request body, while inheriting from ComplexTypeModelBinder is the right approach whem using form or query string data.
Pls notice you may send json data also in the header. If you are using jQuery json data may ne transformed automatically into query string or form data, depending on the setting passed to the ajax call..

Closing as this seems to be answered

@rynowak  can we reopen this issue, there are other reason for wanting to  do something like this.
I'm looking to do something similar to the OP.  Does anyone know how to create a new DefaultModelMetadata?
@frankabbruzzese I too was following along with you tutorial, which is great by the way.
I'm trying to make a version which works off of white-lists, but in order to do so I need to create a new DefaultModelMetadata for the corresponding concrete type to add the additional propertyBinders.

You can get ModelMetadata instances from the IModelMetadataProvider.
Please open a new issue if you more questions or feedback.

For anyone who needs to do this I have a solution on another opened Issue for this:
https://github.com/aspnet/Mvc/issues/6884


[raven-l7] DNS manager implementation

As proposal https://github.com/openyurtio/openyurt/blob/master/docs/proposals/20220930-unifying-cloud-edge-comms.md mentioned: we need to implement the DNS manager in raven-controller-manager for hostname DNS parser.
It mainly includes the tasks below:

Create and maintain the map between nodename and IP address, which needs to handle cloud nodes and edge nodes separately, because requests to cloud nodes are inter-domain communication, while requests to edge nodes are cross-domain communication.
Record and generate the L7 proxy server Loadbalancer/EIP for L7 proxy agent to connect.

We can leverage most of the YurtTunnel DNS logic to implement it in raven.

/assign

/assign


feat: Add Margin, MarginFill, BorderRadius, WindowBar, WindowBarSize settings

Set Margin 10
Set MarginFill "#FFFFFF"
Set BorderRadius 10
Set WindowBar "Colorful"
Set WindowBarSize 40

cc/ @rm-dr, this will add syntax highlighting for the added settings.


format json for readability; update associated test

the result fixture (.json) was originally on 1 line which caused confusion when a small update occurred. making the file more readable and update the test to remove whitespace characters

Thanks for doing this. Should make it more transparent to change things going forward.


Remove old Reward config system

Delete everything in the reward_funcs dir, and scrub SSASchedulerParams and SSAScheduler to remove custom reward function class stuff.
Replace base env reward with a constant.

Added default arg {} to reward_params in SSASchedulerParams and prevented use of reward function in SSASchedulerParams and SSAScheduler. Base environment reward is now 1 always. Temporary fixes. Need to go back through and delete the non-functional code.


Adding Login/Signup 🔥  functionality

Description
To add login functionality.
Preferably we can go for firebase authentication with google.

can u assign this issue to me for gssoc'21?

Hello sir, I would like to work with this issue .Is it open?

I would love to work on this issue, under GSSoC'21. Can you assign this to me?

Hey @kothariji  as I am selected as a Mentee at GirlScript Summer of Code  and this project really excites me and I've previously done same task before in one of my project, you can see it here Signup Page using Firebase. So I would love to contribute in this issue, can you please assign this to me?

I want to work on this issue.

can u assign this issue to me for gssoc'21?

Hi @bhavyashukla16, First of all, thank you so much for taking out the time to work on this issue.
Definitely🙌, Please go forward to work on this issue. I am assigning this Issue to you 👍
Few points to note:

Login/Signup with firebase is preferred.
Don't upload your firebase config keys to the PR(or any other keys)
Rest open for endless possibilities 💯🔥

And last but not least,
Keep Contributing 🙏🔥

Hey, @micksharma @RituCs @sayna3311 @parulsurana, thank you for showing interest 🚀
We appreciate🙏 your dedication and efforts towards our project, but according to our contributing guidelines, Issues are assigned on the First Come First Serve basis.
Anyways feel free to check out other unassigned issues, or create an Issue if you spot one🎯.
Thank you😊, and Sorry for the inconvenience caused 🙌

Hi  @bhavyashukla16, any updates?

Hi @kothariji can I have this issue assigned to me? I would love to work on it, seems like being a beginner I can learn very well while working on it. Yes, it can take me time as I haven't done it before, but there's always a first time.

Hi, @kothariji  I would like to work on this issue. I have experience in firebase auth.

please assign me this issue

Sorry guys, currently the issue is on hold.

I would like to work on this, will you assign me?

Hello sir, I would like to work in this issue. Is it open?


Type password needed

For example, if you want to ask user's password before change account settings. I think it's common thing.
Thank you, for your project!

I've just done a pull request https://github.com/cgross/angular-prompt/pull/25 with my fork to make a simple password input


Compliance with CommonMark Version 0.29

Can the library be updated for compliance with CommonMark Version 0.29

Is there a list of TBD issues that would help flexmark-java to become compatible with  0.29 or 0.30 CommonMark spec?


Update tapir-core, tapir-http4s-server, ... to 1.0.5

Updates

com.softwaremill.sttp.tapir:tapir-core
com.softwaremill.sttp.tapir:tapir-http4s-server
com.softwaremill.sttp.tapir:tapir-json-circe
com.softwaremill.sttp.tapir:tapir-openapi-docs
com.softwaremill.sttp.tapir:tapir-refined
com.softwaremill.sttp.tapir:tapir-swagger-ui

from 1.0.4 to 1.0.5.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.softwaremill.sttp.tapir" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "com.softwaremill.sttp.tapir" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Codecov Report

Merging #322 (62bdc3c) into develop (b6148e9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #322   +/-   ##
========================================
  Coverage    50.58%   50.58%
========================================
  Files            5        5
  Lines           85       85
========================================
  Hits            43       43
  Misses          42       42

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


Error when going to run the document

Hi, everything was working fine I think, I could save the file and followed the instructions and handouts, however when I go to run the document, I get an error that says
"Error: Can't modify read-only reactive value 'my_team'
Thanks!

Hi @AliciaSettles!
Did you set the input$ operation? If so, can you show the code for this?
Without seeing your code it is hard to diagnose the issue.

Hi!
I went ahead and sent you the .rmd file. I believe I did use that, but then again I could be mistaken! Thanks!!

Hi @AliciaSettles
The selectInput() function and the renderPlot({}) function have errors. Take a look and the revisions to the .Rmd file you sent.

Hi,
I'm still having trouble figuring out where the error is in selectInput() is going wrong, I did put renderPlot({}) around the input$ which helped. Also, not all my teams are showing up in the dynamics and the graph is without detail. I didn't receive anything with the revisions, I'm following alongside the lab instructions, yet I still cannot seem to get it correct.
Thanks!

Hi @AliciaSettles . I send an email to your .asu email. I resent it. You should have it now.

Thank you so much, that definitely helped me understand more!

Hi @AliciaSettles! Great. Glad to help!


Fix ellipsis in multiple tables

Noticed that in last release, some overflowinv text in the service tables no longer results in an ellipsis, this fixes that.
Also fixed not being able to horizontally scroll the sessions horizontally anymore in service overview, on smaller deviecs

Awesome, thanks Casper.


Mysterycrate crash with particles and world change with Pets

Describe the bug
If a player tries to teleport to another world and has a pet, the server will internal and restart
To Reproduce
Steps to reproduce the behavior:

Add a pet to yourself
Go to another world
Crash

Expected behavior
That the pets endure the change of world and follow the player
Screenshots
If applicable, add screenshots to help explain your problem.
SimplePets plugin information

Version: 1.0.1-beta
Server api: I don't know, it's the latest version of pocketmine and I have php 7.4

Additional context
23:52:03] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\Server::pocketmine\{closure}() must be an instance of pocketmine\Player, instance of brokiem\simplepets\pets\CatPet given" (EXCEPTION) in "pmsrc/src/pocketmine/Server" at line 1723
[23:52:03] [Server thread/CRITICAL]: #0 (): pocketmine\Server->pocketmine\{closure}(object brokiem\simplepets\pets\CatPet)
[23:52:03] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/Server(1723): array_filter(array[1], object Closure)
[23:52:03] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/level/Level(538): pocketmine\Server->batchPackets(array[1], array[1], boolean )
[23:52:03] [Server thread/CRITICAL]: #3 plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/EventListener(239): pocketmine\level\Level->addParticle(object pocketmine\level\particle\FloatingTextParticle, array[1])
[23:52:03] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): JackMD\MysteryCrate\EventListener->onLevelChange(object pocketmine\event\entity\EntityLevelChangeEvent)
[23:52:03] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object JackMD\MysteryCrate\EventListener, object pocketmine\event\entity\EntityLevelChangeEvent)
[23:52:03] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityLevelChangeEvent)
[23:52:03] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/entity/Entity(1904): pocketmine\event\Event->call()
[23:52:03] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/entity/Entity(1769): pocketmine\entity\Entity->switchLevel(object pocketmine\level\Level)
[23:52:03] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/entity/Entity(1794): pocketmine\entity\Entity->setPosition(object pocketmine\level\Position)
[23:52:03] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/entity/Entity(1885): pocketmine\entity\Entity->setPositionAndRotation(object pocketmine\level\Position, double<PHONE_NUMBER>474, double -1.5042436028662)
[23:52:03] [Server thread/CRITICAL]: #11 plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/pets/base/BasePet(335): pocketmine\entity\Entity->teleport(object pocketmine\level\Position)
[23:52:03] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/entity/Entity(1393): brokiem\simplepets\pets\base\BasePet->entityBaseTick(integer 1)
[23:52:03] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/level/Level(854): pocketmine\entity\Entity->onUpdate(integer 18940)
[23:52:03] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 18940)
[23:52:03] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 18940)
[23:52:03] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 18940, double<PHONE_NUMBER>.1728)
[23:52:03] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
[23:52:03] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[23:52:03] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[23:52:03] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(311): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[23:52:03] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(341): pocketmine\server()
[23:52:03] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Apparently it is an error with MysteryCrate, if you remove the plugin it works correctly
I do not know if it can be fixed in any way, close the issue if you think necessary
@brokiem

It gives an error with the Mysterycrate particle option
showParticle: false

If you have this option like this, it works correctly

I rectify, I have been tested and it crashes within seconds of moving in another world

Error occur on this line https://github.com/ifera-mc/MysteryCrate/blob/master/src/JackMD/MysteryCrate/EventListener.php#L239
because the author didn't check the entity instanceof Player and the plugin is archived, please don't use that plugin


ActiveJob Expectations

Since ActiveJob::TestHelper is mixed into the integration test case shouldn't the ActiveJob expectations also be mixed into integration tests?
Currently in an integration test I can use the assert_ versions but not the must_ and wont_ versions? I can work around with putting this within my describe:
include Minitest::Rails::Expectations::ActiveJob

If it my thought process is correct here I can work up a PR. Thanks!

Yeah, this makes sense.


Default values and cycling backwards through parameters

Two quick questions for you:

I'd often like to see a default value appear for a variable with the option of typing to replace it with something else. I came up with the following as a way to e.g. optionally select a minimum_length of 16, but do you know of a more elegant way to do this?
$ minimum_length: echo "16 " | tr ' ' '\n'

Sometimes I use CLI commands with a lot of parameters and after entering a few, I might see that I made a mistake in an earlier one and want to go back to change it. Is there a way to do this in the interactive CLI tool? (A logical way to do this would be Shift+Tab since that's the convention used in a lot of software).

P.S. You should consider starting your documentation with Hey! Listen! 😂

I have found a slightly more elegant way to get default values (which was a feature request I was going to make when I found this issue!). Observe:
# Convert YAML to JSON
<source> | yq -o=json -P | <dest>

# Format JSON
<source> | jq | <dest>

$ source: echo -e "pbpaste\n"
$ dest: echo -e "pbcopy\n"

Sorry for not replying to this earlier. I missed the original notification 😅


remove a FIXME that is not actually a bug

@bors r+

:pushpin: Commit f66c64bed25448af4b732b86255bd0c624dd4bac has been approved by RalfJung

:hourglass: Testing commit f66c64bed25448af4b732b86255bd0c624dd4bac with merge 1589ba3bbc454ebbd2a59c5e3136f54329d76e84...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing 1589ba3bbc454ebbd2a59c5e3136f54329d76e84 to master...


Empty space below status line in maximised/fullscreen window

Hi, is there any way to make the empty space below the status line go away or at least debug where it's coming from? It's only present when the windows is maximised or fullscreen. Gnome-Terminal 3.28.2, tmux 2.7, latest Budgie.

Huh! Never noticed that before ... classic case of "always blame the new thing". Font size changed, happy now. Thank you! :-)

No worries!
Enjoy 🤝

Just now press ctrl + in my hyper terminal.  Thank you!


Not all LUA files are being reloaded correctly when using "Reload all Mods" button.

I have been trying to test a mod I am working on and it seems whenever I make changes to anything other than init.lua, the changes do not register and I have to restart the game. Makes for testing changes VERY time consuming.

Is fixed with proper sandbox, which hopefully get merged soon...
#454


TS011F Plug RMS-Current wrong value

Is your feature request related to a problem? Please describe.
This looks OK, a bit off but cheap plugs.
electrical_measurement
193 W
electrical_measurement rms_current
1,141 A

This is not OK.
Electrical_measurement
62 W
Electrical_measurement rms_current
433 A

Describe the solution you'd like
Divide RMS-Current by 1000 (I Guess)
**Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen.
Signature is OKE
Additional context
Can't find any Attributes for RMS-Current Divide
But Maybe this is not the way to go.

This is still reporting invalid values with latest HAS (2022.2.5) Current & Voltage

Current:

Voltage:

Same here but for TZ3000_gjnozsaz.


How can I check I have the correct bulk-fast5 file?

I did not do that sequencing run first-hand. Is there anyway I can check I have the right bulk-fast5 files to use with bulkvis?
For example, one of my file:
filename = AGQ569_pass_barcode12_3dd4cb83_0.fast5
size = 62.3 Mb
Does that sound plausible to you?
Given the size I'm pretty sure it's not single-read (it was also after Guppy changed from single-read fast5 files, if I remember correctly), but I am a bit confused if "bulk" means something more specific here.
For example, I read the example bulk5 you provide is 21 Gb. Does that mean bulk-fast5 = one fast5 for the whole run? In which case I might not have the right data format.

From the filename I think that you have a multi-read FAST5 file. Unfortunately, these are not compatible with bulkvis. If you attempt to run bulkvis from the v2.0 branch and run bulkvis serve <FAST5-FOLDER> any files that are bulk FAST5 files will show up in the drop down.
There are some instructions for how to collect a bulk FAST5 file on the ONT community, see step 10.

Wow quick! Appreciate it.
Okay. So single-read ≠ multi-read ≠ bulk, I see.
And from what I can read, you can swap between single-read and multi-read using ONT's ont_fast5_api, but bulk is its own thing.
Thank you


As an employee that is working for an organisation that requires reporting on population information I want to create a report of all the countries in the world organised by largest population to smallest.

SELECT country.name, country.population
FROM country
ORDER BY country.population DESC;
public Country getUseCase5()
{
try
{
// Create an SQL statement
Statement stmt = con.createStatement();
// Create string for SQL statement
String strSelect =
“SELECT country.name, country.population”

“FROM country”
“ORDER BY country.population DESC”;
// Execute SQL statement
ResultSet rset = stmt.executeQuery(strSelect);
// Return new country if valid.
// Check one is returned
if (rset.next())
{
Country country3 = new Country();
country3.name = rset.getString("name");
country3.population = rset.getString("population");
return country3;
}
else
return null;
}
catch (Exception e)
{
System.out.println(e.getMessage());
System.out.println("Failed to get city");
return null;
}
}


Server doesn't close on shutdown

authserver no longer closes on error or ^C.
It outputs "Debug   : Reason for shutdown:  [reason]" and then nothing happens.
SEGS version
915f9096b
System environment
Debian testing x86_64

This and #608 are somewhat related


talking to B.T. Net after a successful delivery! (game is in win state)

        p "_" # TODO: talking to B.T. Net after a successful delivery! (game is in win state)

https://github.com/pixequil/oso-game-1/blob/c9953ec3e6480bd1dfa989c34c13f39644383997/game/room001-mainstreet.rpy#L196

    p happy "I delievered the package! Crayon Box was impressed with the butterflies!"
    btnet "Excellent work, Posty! I knew you could do it!"
    p happy "Do you need me to deliever any other packagaes today?"
    btnet "Nah. I don't want to overwork you, especially after this important order for OSO!"
    btnet "Go take a nap! You've earned it!"
    p happy "Thanks B.T.! Talk to you later!"


Laser Cutter line colors

I've got access to a ULS laser cutter/engraver at the local tech school.   The way they have it set-up it expects red lines for vector cuts, blue lines for vector engraving, and any other color (or wide lines) is done with raster engraving.
It seems that Kiri:Moto SVG output has blue lines hard coded, but it looks fairly simple to change this in a local repository, but I don't understand how I would go about testing it from OnShape.   Any guidance?

Is there a reason blue line color is hard coded?   Should this be made into a setting?

Agree it should be configurable.  Until such time, can you just use text replace on the generated SVG?

I tried this and ran into an unrelated problem, Chrome for some reason renders even the narrowest lines wider then specified in the SVG when printing them, and that behavior interfere's with using SVG via Chrome to drive ULS's print driver.   It doesn't seem to be addressable with any change in the SVG itself...
Thank


fix: add valibot build

thing

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.61%. Comparing base (acafc2b) to head (10e9d2d).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #80   +/-   ##
=======================================
  Coverage   68.61%   68.61%
=======================================
  Files          10       10
  Lines        1370     1370
  Branches      266      266
=======================================
  Hits          940      940
  Misses        424      424
  Partials        6        6

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


docs: added docs for changesets

Overview
What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests / types / typos

Description
Documented the way we add changeset files for PRs

Thanks @gioboa ! 🙏


For nft_buy_offers and nft_sell_offers with "limit":0 in the request returns empty offers list instead of "invalidParams" error.

Steps to Reproduce
{   "method": "nft_sell_offers",   "params": [{     "nft_id": "000000004C17E5B8E33245D98126F4A6DF4EA57FF71C027B0000099B00000000",     "ledger_index": "validated",     "limit": 0   }] }
{   "method": "nft_buy_offers",   "params": [{     "nft_id": "00080000B99F877D1AA8CD9C4C0110DA670BCB86138D54CF16E5DA9C00000001",     "ledger_index": "validated",     "limit": 0   }] }
Expected Result
{     "result": {         "error": "invalidParams",         "error_code": 31,         "error_message": "limitNotPositive",         "status": "error",         "type": "response",         "request": {             "method": "nft_buy_offers",             "params": [                 {                     "nft_id": "00080000B99F877D1AA8CD9C4C0110DA670BCB86138D54CF16E5DA9C00000001",                     "ledger_index": "validated",                     "limit": 0                 }             ]         }     }, }
Actual Result
{     "result": {         "limit": 0,         "marker": "122DA77793E227FC22BC42CF4180094A032DB97C1D8CD721D9C47CF40D21BF10",         "nft_id": "00080000B99F877D1AA8CD9C4C0110DA670BCB86138D54CF16E5DA9C00000001",         "offers": [],         "status": "success"     } }
Environment

Supporting Files

@shawnxie999 @ledhed2222 do you agree that this is an issue? If so, is it worth prioritizing?

what environment is this that you're testing this on? I don't see this behavior. What is happening (and what should happen) when you provide a limit of 0 is that it defaults to the default limit of 50. I can't recreate getting an empty array of offers.


SwipeableDrawer : Property 'onOpen' does not exist

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Steps:

Here is my code to define a swipeable drawer :
         <SwipeableDrawer          open={open}           onClose={() => setOpen(false)}          onOpen={() => setOpen(true)}          ModalProps={{            keepMounted: true,          }}        >          <SideMenu />        </SwipeableDrawer>

Current behavior 😯
When running my app, I get the following error :
TS2322: Type '{ children: Element; open: boolean; onClose: () => void; onOpen: () => void; ModalProps: { keepMounted: true; }; }' is not assignable to type 'IntrinsicAttributes & DrawerProps'.   Property 'onOpen' does not exist on type 'IntrinsicAttributes & DrawerProps'. Did you mean 'open'?
Expected behavior 🤔
No error raised
Context 🔦
I want to build a swipeable drawer (side menu) in my app
Your environment 🌎

npx @mui/envinfo
System:
OS: Linux 5.4 Linux Mint 20.3 (Una)
Binaries:
Node: 18.1.0 - /usr/bin/node
Yarn: Not Found
npm: 8.15.0 - /usr/bin/npm
Browsers:
Chrome: Not Found
Firefox: 105.0.3
npmPackages:
@emotion/react: ^11.10.4 => 11.10.4
@emotion/styled: ^11.10.4 => 11.10.4
@mui/base:  5.0.0-alpha.101
@mui/core-downloads-tracker:  5.10.9
@mui/material: ^5.10.9 => 5.10.9
@mui/private-theming:  5.10.9
@mui/styled-engine:  5.10.8
@mui/system:  5.10.9
@mui/types:  7.2.0
@mui/utils:  5.10.9
@types/react: ^18.0.21 => 18.0.21
react: ^18.2.0 => 18.2.0
react-dom: ^18.2.0 => 18.2.0
typescript: ^4.8.4 => 4.8.4

It seems that onOpen?: ModalProps['onOpen']; statement is missing in Drawer.d.ts.
I tried to add it, and it solved my problem : no error anymore and my app starts just fine...
Please, MUI team, if that solution suits you, could you make this correction asap in your sources ?

Hey, can I work on this issue?

Please share a codesandbox with a reproduction. The SwipeableDrawer has the onOpen prop


Add Ryan to codeowners, update Jamie's handle

Could we add emil to this as well? Same codeowner permissions as myself.


SBT Assembly Should Generate Jars in the distribution/component Directory

Summary

Currently, the ./distribution/bin scripts are pointing to the component directory with the assembled jars:
COMP_PATH=$(dirname "$0")/../component
exec java -jar -Dtruffle.class.path.append="$COMP_PATH/runtime.jar" -Dpolyglot.engine.IterativePartialEscape=true $JAVA_OPTS $COMP_PATH/runner.jar "$@"
exit

If we change the SBT tasks to assembly the jars in the ./distribution/component/ directory, we can reuse these scripts to run the local tests with the current development version:
./distribution/bin/enso --run ./test/Test/

Value

We can use the ./distribution/bin scripts with the development version of Enso.
Specification

[ ] Change the output directory of the SBT assembly tasks to ./distribution/component/.
[ ] Fix the CI pipelines.

Acceptance Criteria & Test Cases

We can use the ./distribution/bin scripts with the current development version.

There is a buildEngineDistribution sbt command that creates the required directory structure.

There is a buildEngineDistribution sbt command that creates the required directory structure.


SetInputReader same as Enum but dynamic, to create dynamic menu

SetInputReader same as Enum but dynamic, to create dynamic menu


Add support for Emmet snippets

https://code.visualstudio.com/docs/languages/html#_emmet-snippets

Closing this issue for being a duplicate of #59.


monaco-editor/esm/vs/basic-languages/wgsl/wgsl.js:  e.charCodeAt is not a function

Reproducible in vscode.dev or in VS Code Desktop?

[ ] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

[ ] Not reproducible in the monaco editor playground

Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
Monaco-editor  v0.37.1
Next v12.2.1-canary.1
Upgrade monaco version from v0.33.0 to v0.37.1
While running next build getting error
monaco-editor/esm/vs/basic-languages/wgsl/wgsl.js: e.charCodeAt is not a function
Actual (Problematic) Behavior
Was working fine with monaco-editor v0.33.0. Breaking for v0.37.1
Expected Behavior
next build should run fine
Additional Context
No response

Hi @bhavyashah98, I think you need to import the following file instead src/basic-languages/wgsl/wgsl.contribution.ts:
import 'monaco-editor/esm/vs/basic-languages/wgsl/wgsl.contribution.js';

It's the file where it would register the language.


Can't implement it with UI Segment Control

Hi Guys it's not a issue it's just I can't understand how to implement it.

I have this code:
@IBOutlet weak var CCountry: UILabel!
override func viewDidLoad() {
       super.viewDidLoad()
       CCountry.text = "Country".localized()
       let langs = Localize.availableLanguages()
       print(langs[2])

@IBAction func IndexChanged(sender: UISegmentedControl)
    {
        var language: String = ""
        switch self.LangChoser.selectedSegmentIndex
        {
                case 0: language = "de"
                NSNotificationCenter.defaultCenter().addObserver(self, selector: "changeText", name: LCLLanguageChangeNotification, object: nil)

                case 1: language = "fr"
                NSNotificationCenter.defaultCenter().addObserver(self, selector: "changeText", name: LCLLanguageChangeNotification, object: nil)

                default:
                break;
        }

        func changeText (notification: NSNotification)
        {
            Localize.setCurrentLanguage(language)
        }
    }

Please if you can guide what I'm doing wrong here, thanks in advance.

There are quite a few things wrong here @YHSX88, created this gist for you:
https://gist.github.com/marmelroy/4bff81d36645491b9d29

Hope it helps :smile: