text:
Filing gradle builder

See https://github.com/slsa-framework/example-package/actions/runs/5896939833/job/15995707872
Cloning into 'example-package'...
e: file:///home/runner/work/example-package/example-package/example-package/e2e/gradle/workflow_dispatch/build.gradle.kts:10:6: Unresolved reference: sourceCompatibility
e: file:///home/runner/work/example-package/example-package/example-package/e2e/gradle/workflow_dispatch/build.gradle.kts:12:1: Expression 'java' cannot be invoked as a function. The function 'invoke()' is not found
e: file:///home/runner/work/example-package/example-package/example-package/e2e/gradle/workflow_dispatch/build.gradle.kts:12:1: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public val PluginDependenciesSpec.java: PluginDependencySpec defined in org.gradle.kotlin.dsl
e: file:///home/runner/work/example-package/example-package/example-package/e2e/gradle/workflow_dispatch/build.gradle.kts:13:5: Unresolved reference: withSourcesJar
e: file:///home/runner/work/example-package/example-package/example-package/e2e/gradle/workflow_dispatch/build.gradle.kts:14:5: Unresolved reference: withJavadocJar

FAILURE: Build failed with an exception.

* Where:
Build file '/home/runner/work/example-package/example-package/example-package/e2e/gradle/workflow_dispatch/build.gradle.kts' line: [10](https://github.com/slsa-framework/example-package/actions/runs/5896983976/job/15995824330#step:3:11)

* What went wrong:
Script compilation errors:

  Line 10: java.sourceCompatibility = JavaVersion.VERSION_1_8
                ^ Unresolved reference: sourceCompatibility

  Line [12](https://github.com/slsa-framework/example-package/actions/runs/5896983976/job/15995824330#step:3:13): java {
           ^ Expression 'java' cannot be invoked as a function. The function 'invoke()' is not found

  Line 12: java {
           ^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
               public val PluginDependenciesSpec.java: PluginDependencySpec defined in org.gradle.kotlin.dsl

  Line [13](https://github.com/slsa-framework/example-package/actions/runs/5896983976/job/15995824330#step:3:14):     withSourcesJar()
               ^ Unresolved reference: withSourcesJar

  Line [14](https://github.com/slsa-framework/example-package/actions/runs/5896983976/job/15995824330#step:3:15):     withJavadocJar()
               ^ Unresolved reference: withJavadocJar

5 errors

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in [46](https://github.com/slsa-framework/example-package/actions/runs/5896983976/job/15995824330#step:3:47)s

cc @AdamKorcz

repo: slsa-framework/example-package


text:
Add staticcheck example.

Includes list of checks and check overrides.

@sluongng
There are two issues:
the first one is with cross-usage of local_repo:
% bazel build //...
...
ERROR: infinite symlink expansion detected
[start of symlink chain]
/private/var/tmp/_bazel_ekhabarov/b559b1d1d4914e67f7f4de842c585742/execroot/__main__/external/com_github_sluongng_nogo_analyzer
/private/var/tmp/_bazel_ekhabarov/b559b1d1d4914e67f7f4de842c585742/external/com_github_sluongng_nogo_analyzer
/Users/ekhabarov/develop/nogo-analyzer
/Users/ekhabarov/develop/nogo-analyzer/examples/staticcheck/bazel-staticcheck/external/com_github_sluongng_nogo_analyzer
[end of symlink chain]
ERROR: Infinite symlink expansion, for examples/staticcheck/bazel-staticcheck/external/com_github_sluongng_nogo_analyzer, skipping: Infinite symlink expansion

the second one with aliases, if I add an alias
alias(
  name = "example_failed",
  actual = "@example//cmd/failed",
)

then top-level bazel build //... looks like doesn't invoke nogo/staticcheck defined in the examples/staticcheck/WORKSPACE file.
Should I add something else maybe?

The first one is with cross-usage of local_repo:

Right. This was a bad suggestion from my end 🤔
I think we only want the local_repository inside the examples repo and NOT the outer repo.
Additionally, I think we won't have to setup the alias in the outer repo.
Instead, we could create a second action in buildbuddy.yml https://www.buildbuddy.io/docs/workflows-config#action with bazel_workspace_dir set with examples/staticcheck

@sluongng PTAL

Sorry for the delay. I think this is good enough. Thanks for adding the BuildBuddy Workflows for the examples section. It gona help me out a lot in the future 🙏

@sluongng thanks!

source: gharchive/pull-request

authors: ekhabarov sluongng

repo: sluongng/nogo-analyzer

license_type: permissive

license_source: github-api


text:
Unhandled JS Exception: getPropertyAsObject: property'__fbRequiredBatchedBridge'

加载index.android.bundle的时候报错

source: gharchive/issue

repo: smallnew/react-native-multibundler

license: MIT


text:
react-native_multibundler_ui-win32-x64.zip解压错误

react-native_multibundler_ui-win32-x64.zip解压时在windows上提示压缩文件夹错误

因为lfs有1GB的限制，现在已经不使用lfs了，请到https://github.com/smallnew/RN-MultiBundler-UI获取最新的拆包工具


text:
Refactor/guble #26 move access manager to own package

This branch should not yet be merged.I think it would be better to rewrite the  test using NewTestAccessManager and use a proper mock.

Coverage decreased (-0.7%) to 74.116% when pulling f15ee2d2b4b4e58012277286b4c385103251061e on refactor/guble-#26-move-access-manager-to-own-package into 10421e5c373d30bff5e4b7c31783d6007ba33832 on master.

Ok, fine for me, if we remove all test code from the production code, at a later step.
Would merge it, but now it conflicts.

I've performed the merge

Coverage decreased (-0.7%) to 74.105% when pulling 5da4ecb4236991580c7aa4184baccb53e5806082 on refactor/guble-#26-move-access-manager-to-own-package into 77f445149e051d41fa2f455c13e39a79e9568073 on master.

authors: coveralls marian-craciunescu smancke

repo: smancke/guble

license: mit

license_source: bigquery


text:
Support package.json template in pilet new command

New Feature Proposal
For more information, see the CONTRIBUTING guide.
Description
Using app-shell/package.json/pilets/files to customize the pilet scaffolding is already very flexible, but I cannot do more customization when initializing the pilet package.json, such as: browserslist or cz-customizable config and ghooks config.
Is there something I missed, it is now supported?
Background
Customize the default configuration of specifications and formats for the pilet project.
Discussion
If it supports the package.json template, you can also migrate some lengthy dependencies from the package.json of the shell application to simplify the size of the package.json of the shell application.
Extract the package.json template from app-shell/package.json/pilets/files before initializing pilet's package.json.

Yes I think this would be a good addition.
So your proposal would be to include a package.json (fragment) as a scaffolding template in files, which would then be placed

after the initial package.json was written (more or less empty, contains name, version, ...)
before we apply the final patch using the infos we have (e.g., adding a piral section, necessary devDependencies etc.)

But like the final patch we do not overwrite, but use it via a JSON merge.
Is that what you have in mind?

Right!

Right now we support the packageOverrides field in the package.json/pilets section.
Support for package.json template files (fragments) will be added, too.

Available in develop and in the preview.
Files that target the package.json of the pilet are merged into the package's definition.

authors: FlorianRappl carvinlo

repo: smapiot/piral


text:
🌙 added dark mode

Issue #164
This PR adds the dark mode to the entire app

it has conflicts

authors: algokun anushbhatia


text:
Add privacy policy

Create a page at http://expunge.io/privacy and add a link to it in the footer of the site.
Here's text:
Privacy Policy
Introduction
Expunge.io values your online privacy and is committed to safe guarding the data you share with us and your online privacy. Our On-Line Privacy Policy applies to data collected at the expunge.io domain.
Information we collect
Expunge.io only collects information you share with the application regarding contact information related to eligibility to apply for juvenile expungement in Illinois. We collect this data using a form located at http://www.expunge.io/eligible1, http://www.expunge.io/eligible2, and http://www.expunge.io/eligible3.
We do not collect personal information without your permission. Any information that you volunteer or that we send to you in response is transferred using industry standard encryption technologies. We use the service provided at http://www.wufoo.com.
Expunge.io collects your name and email address so that a representative from the Juvenile Expungement Help Desk may contact you regarding your report. Expunge.io also collects your phone number and how you heard about expunge.io.
We do not use or set cookies on our website to store any information on your personal computer hard drive.
Data we share
Expunge.io will share the necessary data you entered and store only what you provided required to submit your information to representatives from the Juvenile Expungement Help Desk. This data may be shared with another legal assistance agency that can help you with expungement. All other information is deleted from your cache memory when you close the session and leave our site. We collect no other personal information.
Expunge.io does not sell or share your data with any 3rd parties.
Other Websites
This site contains links to other sites. We are not responsible for the privacy practices or the content of all the sites listed.
Contact
We value your feedback. If you would like your data removed from the system, or have questions regarding the application, contact Sharlyn Grace, VISTA Attorney, LAF, Children and Families Practice Groups, at SGrace@LAFChicago.org.

From Vivian Hessel:
Thanks to all for your feedback. I think we are ready to post these documents on www.expunge.io but please shout out if you have any comments or concerns.
The revised Privacy Policy is here:
https://docs.google.com/document/d/179z37FM1J0KZhzotId-osWRkDUkfcKOa4UGBw5JzN2c/edit
The revised Terms of Use is here:
https://docs.google.com/document/d/1q3UKGq7LrHz7EPF5AnvKG4Ox34KYzDb_EUn1DQzmtRs/edit

added!
http://www.expunge.io/about
http://www.expunge.io/disclaimer

authors: cathydeng danxoneil


text:
Monitor & notify for ElasticSearch downtime

ElasticSearch is needed for Patterns searching and for saving new people. If the ElasticSearch service stops running, Patterns will not stop saving new sign ups.

Some candidates:
http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html
http://upstart.ubuntu.com/cookbook/#respawn

Closing this issue because we updated to ransack search.

repo: smartchicago/kimball


text:
RFC: De-Structure Dataset definitions

System logic around handling different formats of the same data are difficult to maintain when the different formats have very different technical details related to successfully processing them.
Example: A shapefile is a "hosted" type (%Dataset{%Technical{sourceType: "hosted"}}) but its corresponding GeoJson format (supported for automatic conversion by the Odo service) expects the sourceType to be "ingest" and various components of the system take different actions based on that value (or ignore the dataset entirely based on the value).
Dataset definitions should not prescribe specific technical substructures and should only define the basic business logic shared by all forms of that datasets' specific data. Technical structures for each of that data's various supported formats should be independently stored from the Dataset container structure and linked to the "owning" dataset via an identifier.
Example:
%Dataset{
  id: "123-456-7890",
  business: %Business{
    owner: "234-567-8901",
    cadence: "weekly",
    contact: "Bob",
    email: "bob@data.com",
    license: "FOSS",
    ...
  }
}
%Technical{
  id: "345-678-9012",
  dataset_id: "123-456-7890",          <====== Note the ID of the owning dataset
  sourceType: "ingest",
  sourceFormat: "application/json",
  url: "somewhere.com",
  ...
}
%Technical{
  id: "456-789-0123",
  dataset_id: "123-456-7890",          <====== Note the ID of the owning dataset
  sourceType: "ingest",
  sourceFormat: "text/csv",
  url: "s3://internal-bucket.smartcitiesdatabucket.com",
  ...
}

(Illustrative example only as conversion between json and csv is trivial for the system)

I like it.
I'd like andi to stitch together these multiple definitions in its view state. So when we hit /datasets on andi, you see all technical definitions for the dataset.
Also, we should think about PODMS and what effect this may have. I suspect it will actually make PODMS better, but we should think about that.

authors: jdenen jeffgrunewald

repo: smartcitiesdata/smartcitiesdata


text:
LogisticRegression infinite loop

When training on a dataset that has too many classes, e.g. Scikit's diabetes, smartcore::linear::logistic_regression::LogisticRegression runs into an infinite loop.
Reproducible example attached.
main.rs.txt

Thanks for your report.
Looks like there is a problem with this call:
let result = LogisticRegression::minimize(x0, objective);

Looks like this is not a bug, the particular computation just takes a lot of time in a single-CPU configuration to compute this loop
How long does it takes with a Python library?

Less than a second:
time python main.py
[200.]

real	0m0.390s
user	0m0.592s
sys	0m0.878s

Code attached (sorry, long file because formatting).
main.py.txt

The loop stops only after the limit of 1000 iterations is reached, so I suppose the algorithm is not doing its job correctly.
Could you confirm that this results are correct please:
lr.coefficients().shape() -> (214, 10)
lr.intercept().shape() -> (214, 1)
lr.coefficients().get(0, 0) -> 10.926448436791203
lr.intercept().get(0, 0) -> 20.061156556933966

This works with the new branch v0.5-wip, it is still a little slow but much better.
Probably we should move this into something Optimize Linear Regression performance

@levkk you can see your example working at https://github.com/smartcorelib/smartcore-jupyter/blob/main/notebooks/99-Test.ipynb

authors: Mec-iS levkk

repo: smartcorelib/smartcore


text:
hotfix/typo

이전 릴리즈 오타 모아뒀다가 한 번에 반영하겠습니다.

@lazyduo 해당 PR 닫아도 될까요?

@yeemh 네 닫을게요

authors: lazyduo yeemh

repo: smartmind-team/thanosql-docs


text:
What is -webkit-backface-visibility: hidden for?

I am using Owl Craousel to display a couple of logos. When I add them to the site they look fine like here:

As soon as I add the owl-carousel class though and the images get transformed to the carousel the logo looks like this:

And I can't seem to figure out why.
Edit: Seems I found the issue: -webkit-backface-visibility: hidden If I remove this line in the CSS Inspector the image looks fine again. Is there any reason why this property is applied or can this be safely removed/overwritten?

Stale issue. If this issue continues please read our bug reports guide.

authors: Globegitter KennethAshley


text:
Searchs with no results shouldn't be a error

Currently whenever you search for something that it's not in the repository, aptly will finish with exit code 1.
$ aptly repo search myrepo 'Name (carlitos)'
ERROR: no results
$ echo $?
1

Not having packages matching a query is not an error, so aptly should finish with a nice and graceful exit code 0.

Well, non-zero exit status is quite common for search-like commands:
EXIT STATUS
     The grep utility exits with one of the following values:

     0     One or more lines were selected.
     1     No lines were selected.

Yes, you're right! I'm more worried about the output to stdout than about the exit code, though.

It was fixed in #249

authors: rul smira

repo: smira/aptly


text:
jcenter is being shut down - this impacts gradle plugin portal where smithy-gradle-plugin is hosted

https://blog.gradle.org/jcenter-shutdown
I'm not sure I understand it correctly, but I think the fix is to move smithy-gradle-plugin to MavenCentral.
Otherwise, we will keep running into intermitten cases of
 > Unable to load Maven meta-data from https://plugins.gradle.org/m2/software/amazon/smithy/smithy-aws-cloudformation-traits/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/software/amazon/smithy/smithy-aws-cloudformation-traits/maven-metadata.xml'.
               > Read timed out

because we have to use gradlePluginPortal for smithy-gradle-plugin.
Is there a different fix we can apply to prevent these issues or can smithy-gradle-plugin be moved to MavenCentral?

We're looking into this. We don't use jcenter directly, and for some reason jcenter, seems to still be used by gradlePluginPortal to mirror Maven Central. gradlePluginPortal is the default repo Gradle uses to resolve plugins too. In the meantime, I think passing --offline to Gradle when building will let you use local dependencies if you already have locally cached versions of them.

This doesn't seem to be a Smithy issue, but rather a gradle issue in general. It seems to occur when you are using any gradle plugins, and have dependencies with version ranges. What plugins those are and which dependencies don't seem to matter. Pinning to specific versions seems to be a temporary workaround.
The following sample gradle setup exercises the issue:
build.gradle:
buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        "classpath"("com.fasterxml.jackson.core:jackson-databind:[2.0.0,2.1.0[")
    }
}

plugins {
    id("com.github.spotbugs") version "4.7.1"
}

repositories {
    mavenLocal()
    mavenCentral()
}

settings.gradle:
pluginManagement {
    repositories {
        gradlePluginPortal()
    }
}

rootProject.name = 'gradleissue'

We're still investigating the issue to see if there's some better configuration to use. In the meantime https://status.gradle.com is showing issues too, including when this issue was opened last week.

It appears that the fix here is to add the artifact to MavenCentral so there are multiple locations to pull from in case of another gradle plugin portal issue.

Release process has been updated to include release of a Maven artifact. Once I confirm that artifact has been published in the next release I will close this issue.

Smithy gradle plugin artifacts are now available on maven as well. Closing.

authors: DanielBauman88 JordonPhillips hpmellema mtdowling

repo: smithy-lang/smithy-gradle-plugin


text:
reporting - add summary report per watershed group

Summarize the status per watershed (but perhaps make the reporting area flexible):

number of crossings/type etc
length, pct stream accessible / potentially accessible
length, pct habitat accessible / potentially accessible
etc

Started with https://github.com/smnorris/bcfishpass/commit/62e37980e7dd379d269a844a038da8f5e4824d4e

Started with https://github.com/smnorris/bcfishpass/commit/62e37980e7dd379d269a844a038da8f5e4824d4e

These are some stats we have previously reported on per watershed:
- Area
- Elevation range
- Total stream length, summaried by
    + waterbody type
    + stream order
    + gradient
- Total fish habitat length, summarized by:
    + habitat type (observed, inferred@15, inferred@15-22, non-habitat)
    + stream order
    + stream gradient
    + waterbody type
- summary stats of order, gradient (min, max, avg, mean, median, etc.)
- Number of modelled crossings
    + open bottom vs closed bottom
- Length of modelled habitat upstream of all modelled crossings
    + habitat type
    + stream order
    + stream gradient
    + waterbody type
- Area of waterbodies coded as fish habitat upstream of all modelled crossings
    + habitat type
    + stream order
    + waterbody type
- Number of PSCIS assessed crossings
    + structure type (open bottom/closed bottom)
    + barrier status (BARRIER, PASSABLE, etc)
    + stream order
    + stream width
    (failure rate)
- Number of PSCIS habitat confirmations, designs, remediations
- observations
    + by species in watershed
    + by species upstream of watershed
- DRA roads
    + surface
    + class

These are some stats we have previously reported on per watershed:
- Area
- Elevation range
- Total stream length, summaried by
    + waterbody type
    + stream order
    + gradient
- Total fish habitat length, summarized by:
    + habitat type (observed, inferred@15, inferred@15-22, non-habitat)
    + stream order
    + stream gradient
    + waterbody type
- summary stats of order, gradient (min, max, avg, mean, median, etc.)
- Number of modelled crossings
    + open bottom vs closed bottom
- Length of modelled habitat upstream of all modelled crossings
    + habitat type
    + stream order
    + stream gradient
    + waterbody type
- Area of waterbodies coded as fish habitat upstream of all modelled crossings
    + habitat type
    + stream order
    + waterbody type
- Number of PSCIS assessed crossings
    + structure type (open bottom/closed bottom)
    + barrier status (BARRIER, PASSABLE, etc)
    + stream order
    + stream width
    (failure rate)
- Number of PSCIS habitat confirmations, designs, remediations
- observations
    + by species in watershed
    + by species upstream of watershed
- DRA roads
    + surface
    + class

There is currently an error in the summary with rearing habitat in LNIC reported as over 100%

Fixed the error in prelim report but leaving this open as placeholder for adding more stats to the summary

Fixed the error in prelim report but leaving this open as placeholder for adding more stats to the summary

Very general reporting is now in /reporting. More detailed reporting can wait until after data review/feedback.

Milestone/release associated with this issue is just for the Provincial access model. Current very basic summary of length accessible per watershed group is fine for now, more detailed reporting is currently per project (see rail project, WCRP queries). Closing for now pending direction from users/clients.

repo: smnorris/bcfishpass


text:
Use std RwLock instead of parking_lot.

Fixes #37.

Nice, many thanks! Kindly add some bried info to the commit log (and squash the additional commits into it while you're at it) on the rationale for the change in the details section?

authors: BratSinot zeenix

repo: smol-rs/async-broadcast


text:
Feature Request: Action Button

Hello there, I would like to use the Action Button feature. We send our users Action Buttons that can take the user to a particular page in our old web app (Cordova). Would be great to have this feature supported in the react-native.
Thanks!

Closing it as it can be solved by using the deep links. See https://medium.com/react-native-training/deep-linking-your-react-native-app-d87c39a1ad5e for details.

repo: smooch/react-native-smooch


text:
page is not defined. CRA + typescript

🐛 Bug Report
I cannot setup code to use your preset with typescript and CRA
To Reproduce
jest.config.js
const merge = require('merge')
const ts_preset = require('ts-jest/jest-preset')
const puppeteer_preset = require('jest-puppeteer/jest-preset')

module.exports = merge.recursive(ts_preset, puppeteer_preset)

package.json
{
  "name": "english",
  "version": "0.1.0",
  "private": true,
  "homepage": "https://english-9231c.firebaseapp.com",
  "dependencies": {
    "@material-ui/core": "3.6.2",
    "@material-ui/icons": "3.0.1",
    "@types/axios": "0.14.0",
    "@types/classnames": "2.2.8",
    "@types/express": "4.17.0",
    "@types/fs-extra": "5.1.0",
    "@types/jest": "23.3.13",
    "@types/lodash": "4.14.134",
    "@types/node": "10.14.8",
    "@types/puppeteer": "1.12.4",
    "@types/react": "16.8.19",
    "@types/react-dom": "16.8.4",
    "@types/react-helmet": "5.0.8",
    "@types/react-router-dom": "4.3.3",
    "@types/react-s-alert": "1.3.2",
    "@types/react-table": "6.8.3",
    "@types/subtitle": "2.0.0",
    "axios": "0.18.1",
    "chalk": "2.4.2",
    "classnames": "2.2.6",
    "compromise": "11.13.1",
    "cubic-spline": "1.0.4",
    "enzyme": "3.10.0",
    "enzyme-adapter-react-16": "1.14.0",
    "express": "4.17.1",
    "firebase": "5.11.1",
    "fs-extra": "7.0.1",
    "lodash": "4.17.11",
    "mkdirp": "0.5.1",
    "mui-datatables": "2.3.0",
    "node-sass": "4.12.0",
    "rc-slider": "8.6.12",
    "react": "16.8.6",
    "react-audio-player": "0.11.1",
    "react-clipboard.js": "2.0.12",
    "react-copy-to-clipboard": "5.0.1",
    "react-dom": "16.8.1",
    "react-helmet": "5.2.1",
    "react-markdown": "4.0.8",
    "react-onclickoutside": "6.8.0",
    "react-qr-reader": "2.2.1",
    "react-router": "4.3.1",
    "react-router-dom": "4.3.1",
    "react-s-alert": "1.4.1",
    "react-scripts": "2.1.8",
    "react-tooltip": "3.10.0",
    "subtitle": "2.0.3",
    "typescript": "3.5.1",
    "url": "0.11.0",
    "vinyl": "2.2.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "deploy": "firebase deploy",
    "buildAndGetSEO": "npm run build && ts-node -O \"{\"module\": \"commonjs\"}\" buildSEO.ts",
    "getSEO": "ts-node -O \"{\\\"module\\\": \\\"commonjs\\\"}\" buildSEO.ts"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@types/jest-environment-puppeteer": "^4.0.0",
    "@types/webpack-env": "1.13.9",
    "critical": "2.0.0-18",
    "jest": "24.8.0",
    "jest-puppeteer": "4.2.0",
    "puppeteer": "1.17.0"
  }
}

App.test.tsx
describe.only('Google', () => {
  beforeAll(async () => {
    await page.goto('https://google.com');
  });

  it.only('should be titled "Google"', async () => {
    await expect(page.title()).resolves.toMatch('Google');
  });
});

when I run npm t I get error
  ● Google › should be titled "Google"

    ReferenceError: page is not defined

      28 |
      29 |   it.only('should be titled "Google"', async () => {
    > 30 |     await expect(page.title()).resolves.toMatch('Google');
         |                  ^
      31 |   });
      32 | });

Expected behavior
Run without error / page is defined
Link to repl or repo (highly encouraged)
Sorry, it is private work, cannot share :(
Run npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
Paste the results here:
## System:
 - OS: macOS 10.14.1
 - CPU: (4) x64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
 - Memory: 89.83 MB / 8.00 GB
 - Shell: 5.3 - /bin/zsh
## Binaries:
 - Node: 8.15.1 - /usr/local/opt/node@8/bin/node
 - Yarn: 1.13.0 - /usr/local/bin/yarn
 - npm: 6.4.1 - /usr/local/opt/node@8/bin/npm
## npmPackages:
 - jest-puppeteer: 4.2.0 => 4.2.0

Just meet the same issue. I read this note from the document.

NOTE: Be sure to remove any existing testEnvironment option from your Jest configuration. The jest-puppeteer preset needs to manage that option itself.

After removing testEnvironment in my config file, this error doesn't present anymore.
Hope this well help.

Didn't help me at all. Problem persists

Putting
/**
 * @jest-environment puppeteer
 */

above all imports in my test files fixed the issue

this last comment needs to be included in the documentation!

@raptoria PRs are welcome 😁👍

My comment works but this is even better
  "web:test": "react-app-rewired test --env=puppeteer",

I included these comments in a PR: https://github.com/smooth-code/jest-puppeteer/pull/416

I included these comments in a PR: #416

I'm not sure that what's been described in the comments so far really addresses the root issue. or at least, they can't be the complete picture, because this repo demonstrates the original complaint, even while adopting all of the proposed solutions:
https://github.com/nweajoseph/jest-puppetteer-bug-report
no "testEnvironment" is manually set in jest.config.js, the /** * @jest-environment puppeteer */ comment solution errors:
  ● Test suite failed to run

    wsEndpoint not found

      at PuppeteerEnvironment.setup (node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:45:13)

and otherwise the test and config are verbatim from the existing "how to setup" docs:
npx create-react-app . --template= typescript
npm install --save-dev jest-puppeteer puppeteer jest
npm install --save-dev @types/puppeteer @types/jest-environment-puppeteer @types/expect-puppeteer
# configure jest.config.json and delete any files unnecessary to reproduce the issue
npm test

If you put the --env=puppeteer in your "scripts" {
"test": "......what it was before --env=puppeteer"
}
It should work

But why is --env=puppeteer needed? Should jest-puppeteer be setting the test environment? What is overriding jest-puppeteer?

In my case it was cool to run jest test with puppeteer with an env because I use Detox to test Android/iOS with other Jest runner and use a web abstraction for Detox with puppeteer.

E.g. you could provide custom jest config to only run .e2e.js files + puppeteer and the rest are just 'normal' tests running with the normal Jest runner

It looks like this has nothing to do with typescript but with react-scripts overriding the testEnvironment to 'jsdom' if --env isn't provided.
https://github.com/facebook/create-react-app/blob/fddce8a9e21bf68f37054586deb0c8636a45f50b/packages/react-scripts/scripts/test.js#L109-L136

authors: RichardLindhout UziTech eddyoc nweajoseph ocavue raptoria theGABS

repo: smooth-code/jest-puppeteer


text:
expect-puppeteer: change toMatch text matcher to check if argument is regex or not to match

First and foremost, I just want to express gratitude for maintaining this project! It's a crucial resource for doing anything with jest and puppeteer.
One pain point though is from usage of text matching option on some of the matchers (e.g., toMatch or toMatchElement). It's confusing (especially for newcomers) that the string you pass to it is actually used as a regex. I realized that it's documented this way, but it would be a lot nicer if the library could do a typeof to check if the argument is a string or object (regex's actual type from what I can tell). Then, it just does a simple includes or an actual match on the textContent respectively. I've run into weird cases where I'm trying to match on money values (e.g., '$1000') and i've found myself beating my head on more than one occasion trying to figure out why text won't match (the $ is not escaped, obviously). Also, sometimes all you really need is a simple string match without needing to remember to escape everything in the regex for what you're matching.
I know that this would bring about a breaking change, so it might not be something you'd be thrilled to add right now. However, I think it could definitely help for readability and usability of this library.

Additionally (although potentially a different issue), when matching on textContent, a lot of the time, there will be extra whitespace/newlines surrounding the text you're matching based on how big the DOM tree is within the element you're matching. It could be nice to strip all of the redundant whitespace out when doing the comparison within this library as well such that consumers of it don't need to account for that whitespace in their comparison strings.
For example, a textContent of
'    white

  space   '

could be stripped to just
'white space'

to allow matching by passing just 'white space' without needing wildcards in the comparison string.

I think it is a good move. Since it is not possible to pass object to waitForFunction, the best way to implement it is to use RegExp source and add another argument to say if it is a RegExp or not.
Yeah it is a breaking change but I am OK for it. PR welcome.

authors: neoziro rkoval


text:
snakemake command line cannot run after installing storage plugin

Snakemake version
8.0.1
Describe the bug
I used bioconda to install snakemake 8.0.1
and then installed snakemake-storage-plugin-ftp
Now if I type "snakemake" I get the following error:
$ snakemake
Traceback (most recent call last):
File "/hpc/group/peterallen/mki3/sw/miniforge3/envs/smk/lib/python3.12/site-packages/snakemake/cli.py", line 2045, in main
parser, args = parse_args(argv)
^^^^^^^^^^^^^^^^
File "/hpc/group/peterallen/mki3/sw/miniforge3/envs/smk/lib/python3.12/site-packages/snakemake/cli.py", line 1637, in parse_args
parser = get_argument_parser()
^^^^^^^^^^^^^^^^^^^^^
File "/hpc/group/peterallen/mki3/sw/miniforge3/envs/smk/lib/python3.12/site-packages/snakemake/cli.py", line 1620, in get_argument_parser
StoragePluginRegistry().register_cli_args(parser)
File "/hpc/group/peterallen/mki3/sw/miniforge3/envs/smk/lib/python3.12/site-packages/snakemake_interface_common/plugin_registry/init.py", line 60, in register_cli_args
plugin.register_cli_args(argparser)
File "/hpc/group/peterallen/mki3/sw/miniforge3/envs/smk/lib/python3.12/site-packages/snakemake_interface_common/plugin_registry/plugin.py", line 152, in register_cli_args
settings.add_argument(*args, **kwargs)
File "/hpc/group/peterallen/mki3/sw/miniforge3/envs/smk/lib/python3.12/site-packages/snakemake/common/argparse.py", line 32, in add_argument
super().add_argument(*args, **kwargs)
File "/hpc/group/peterallen/mki3/sw/miniforge3/envs/smk/lib/python3.12/site-packages/configargparse.py", line 1399, in add_argument
action = self.original_add_argument_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/hpc/group/peterallen/mki3/sw/miniforge3/envs/smk/lib/python3.12/argparse.py", line 1472, in add_argument
action = action_class(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
TypeError: _StoreTrueAction.init() got an unexpected keyword argument 'metavar'
I think there is some issue with adding plugins. Command line arguments need to be registered and there is a "store_true" command line argument that breaks the registration because "metavar" shouldn't be used. I'm not sure. Please help as I would love to upgrade to the next version of snakemake
https://stackoverflow.com/questions/11999416/python-argparse-metavar-and-action-store-true-together
Logs
None available.. this occurs just by typing "snakemake" at the command line
Minimal example
See above
Additional context
red hat enterprise linux 8
python 3.12

I have run into this same issue. After installing the ftp plugin, snakemake will not run. See https://github.com/snakemake/snakemake-storage-plugin-ftp/issues/3.

authors: lparsons mkiyer

repo: snakemake/snakemake


text:
Error from min_version should be prioritized

Is your feature request related to a problem? Please describe.
Ideally, the snakemake.utils.min_version function checks for a minimum version and raises a WorkflowError when that is not satisfied. However, in practice it often fails to provide value. For example, the use of min_version("6.0") to ensure support for module declarations never yields a WorkflowError when using versions below v6.0, but instead ends with SyntaxError. This undermines using it.
I have not dug into the code, but the behavior would suggest that a first pass of parsing occurred (at least in pre-6.0 versions) prior to any code evaluation.
Describe the solution you'd like
Ensure that a min_version call appearing anywhere in a Snakefile is evaluated with priority so that version issues propagate to the user rather than syntax errors. Perhaps if the regular parsing fails, it could be caught before propagating and a rudimentary check for min_version calls could be made and reported.
Describe alternatives you've considered
I declare in documentation minimum Snakemake versions.
Possibly it should be documented that min_version, even at the top of a Snakefile, does not guarantee a WorkflowError.
Additional context
I realize the criticism here is about behavior of older versions and I don't expect any retroactive patching. However, I couldn't find previous threads that raised this particular point so that it could be addressed in versions moving forward.

Minimal example
Snakefile
from snakemake.utils import min_version
min_version("6.0")

rule all:
    input: "b.txt"

module a_factory:
    snakefile: "a_factory.smk"

use rule * from a_factory

rule b_from_a:
    input: "a.txt"
    output: "b.txt"
    shell: "echo 'found {input}' > {output}"

a_factory.smk
rule make_a:
    output: "a.txt"
    shell: "echo 'Made in A Factory' > {output}"

Result in Snakemake v5.29
$ snakemake -np
SyntaxError in line 7 of /Users/mfansler/scratch/smk-version-fail/Snakefile:
invalid syntax

But it seems this behavior doesn't happen in the latest releases

But it seems this behavior doesn't happen in the latest releases

Do you have an example? That is, a Snakefile that uses a syntactic feature requiring a minimum, and running a Snakemake below that minimum leads to the minimum violation being detected instead of a syntax error.

But it seems this behavior doesn't happen in the latest releases

Do you have an example? That is, a Snakefile that uses a syntactic feature requiring a minimum, and running a Snakemake below that minimum leads to the minimum violation being detected instead of a syntax error.

I did a quick test in snakemake version 8.4.3 with the same minimal example you provided and I only changed min_version("6.0") to min_version("9.0")
and I got the following result
$ snakemake -np
WorkflowError:
Expecting Snakemake version 9.0 or higher (you are currently using 8.4.3).

@MarwanMabrouk that test does not satisfy the specifications. Perhaps I should clarify that when I said "that uses a syntactic feature requiring a minimum" I intended it as requiring the specific minimum. A relevant test should be using some new syntax that was introduced in the minimum version (i.e., v9.0 in this case).

authors: MarwanMabrouk mfansler


text:
FileNotFoundError for files not specified in rule definition

Snakemake 5.23.0
When running a snakemake workflow on an HPC, I'm getting the following error:
Building DAG of jobs...
Traceback (most recent call last):
  File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/__init__.py", line 709, in snakemake
    keepincomplete=keep_incomplete,
  File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/workflow.py", line 670, in execute
    dag.init()
  File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/dag.py", line 177, in init
    job = self.update(self.file2jobs(file), file=file, progress=progress)
  File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/dag.py", line 715, in update
    progress=progress,
  File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/dag.py", line 792, in update_
    file.inventory()
  File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/io.py", line 210, in inventory
    self._local_inventory(cache)
  File "<base_path>/software/miniconda/envs/snakemake/lib/python3.7/site-packages/snakemake/io.py", line 224, in _local_inventory
    with os.scandir(path) as scan:
FileNotFoundError: [Errno 2] No such file or directory: '<analysis_patch>/tmp_batch113/codons'

The directory tmp_batch113/codons is created and deleted during the execution of another job from the same rule, i.e. this specific error occurs for the job dealing with batch166 which never uses this directory. I suspect this could be related to a slow file system (this error does not occur consistently) but I'm surprised Snakemake crashes because of files/directory that are never specified in the rule. For reference, here is the rule behind the jobs that generate this error:
rule phyloCSF_batch:
    input:
        batch_file = 'output/analyses/{assembly_code}/maf_batches/batches/{batch}.lst',
        maf_dir = rules.split_maf_contig.output,
        parameters = rules.create_parameter_set.output
    output:
        'output/analyses/{assembly_code}/phyloCSF/batches/{batch}.tsv'
    benchmark:
        'benchmarks/analyses/{assembly_code}/phyloCSF/batches/{batch}.tsv'
    log:
        'logs/analyses/{assembly_code}/phyloCSF/batches/{batch}.txt'
    conda:
        '../envs/analyses.yaml'
    threads: get_threads('phyloCSF_batch')
    resources:
        mem_mb = lambda wildcards, attempt: get_mem('phyloCSF_batch', attempt),
        runtime_s = lambda wildcards, attempt: get_runtime('phyloCSF_batch', attempt)
    params:
        batch_size = config['phyloCSF']['batch_size']
    script:
        '../scripts/phyloCSF_batch.py'

Any idea what could be causing this issue? Any input is appreciated!
Thanks

Same here!
Problem not consistent, and seems to be related to slow filesystem, but we couldn't find exactly what occurs and why its complaining about a file created by another rule....
Did you find a workaround?

Sorry, I haven't found a workaround yet. It's pretty difficult as a user I think since it seems to be something internal

authors: RomainFeron thibautlavole


text:
Multicaller: use Solidity code to make multicalls (without deployment)

See more context https://twitter.com/DestinerX/status/1446849311959093257
Using such technique we wouldn't need multicall deployment on each chain.

For now it doesnt have to be within Snapshot.js or Multicaller, it can be a script. We just want to get a script that work and benchmark it against normal multicall. There is also a Multicall3 you may want to test see if there is better performance. In term of performance we need to test not only how fast it resolve but what is the limit in term of number of calls that we can send within a single multicall request with deployless vs normal one.

Depending on the performance it can be a replacement for all our multicall requests on all the network. That would simplify our system a bit.

repo: snapshot-labs/snapshot-strategies


text:
feat: use new stamp url format for space cover and avatar

Summary

Toward https://github.com/snapshot-labs/workflow/issues/220
This PR moves all stamp url to the new network:address format, introduced in https://github.com/stamp-labs/stamp/pull/311
This new format enable space avatar and cover for offchain testnet.
This PR is will migrate all stamp type from space-sx and space-cover-sx to just space and space-cover, and will prefix all id with the space network
How to test

Go to the snapshot and snapshot x explore page
All space avatar and cover should show as before, (all stamp url are now prefixed with network ID)

To-Do

[x] Depends on https://github.com/stamp-labs/stamp/pull/311

Some tests are failing somehow

Some tests are failing somehow

Mhhhh.... no idea why.
@Sekhmet tests are failing because of usage of offchainNetworks inside utils. just console.log the variable is enough to fail the tests. Any idea ?

@wa0x6e Would be great to fix test here, I merged this PR first to not confuse users as for now space avatar showing blockies images.

authors: ChaituVR bonustrack wa0x6e

repo: snapshot-labs/sx-monorepo


text:
hacker news support: publish, backfeed

mentioned on irc today by @sknebel, @gkbrk, and @chrisaldrich, along with #505.

API docs. i didn't see votes, but otherwise looks pretty complete.

instructions on how to add a new silo to bridgy.

@sknebel raised a fascinating idea in chat today: HN has a public firehose, so we could do this service-wide, for the entire site, without needing individual users to auth Bridgy into their accounts. Might be a candidate for https://snarfed.org/backfeed-without-code ?

Also reminds me of #420 and https://telegraph.p3k.io/superfeedr

https://github.com/hnrss/hnrss/ could be useful for this (both for a backfeed-without-code and to base bridgy code on - they also have an older python implementation)

@sknebel raised a fascinating idea in chat today: HN has a public firehose, so we could do this service-wide, for the entire site, without needing individual users to auth Bridgy into their accounts.

I did this in https://github.com/snarfed/hackermention ! Quick and dirty, very hacky, didn't fully finish or document or write it up. I have the API consuming code and conversion there though, should help if/when anyone wants to try adding this to Bridgy and granary.

One catch: Hacker News doesn't do OAuth, so we'd need to use IndieAuth. Which is fine, we already use it for the FB/Instagram browser extension.

authors: sknebel snarfed

repo: snarfed/bridgy


text:
Assumption of PK name

Here https://github.com/sngrl/sphinxsearch/blob/master/src/sngrl/SphinxSearch/SphinxSearch.php#L208
And two places below you are assuming the PK is id and now allowing that to be overridden

Merged

authors: JeremyHutchings sngrl

repo: sngrl/sphinxsearch


text:
Code peek has incorrect color

The code suggest in the code peek of WebStrom has incorrect color as same as the previous version 2.0's default editor color.
Envirnoment:
Latest Theme 3.0
Win10 1809
WebStrom 2019.2.3

What do you think about this?

It is ok.
Thanks.


text:
SNOW-849605: fix datatype misalignment

Please answer these questions before submitting your pull requests. Thanks!

What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #SNOW-849605

fix nullable
fix time type, timestamp type

Fill out the following pre-review checklist:

[ ] I am adding a new automated test(s) to verify correctness of my new code
[ ] I am adding new logging messages
[ ] I am adding a new telemetry message
[ ] I am adding new credentials
[ ] I am adding a new dependency

Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.

Is this all the misalignment we currently know of?

authors: sfc-gh-aling sfc-gh-stan

repo: snowflakedb/snowpark-python


text:
[SNOW-1036413] Fix stored proc register failure when packages are given as modules.

Please answer these questions before submitting your pull requests. Thanks!

What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
SNOW-1036413

Fill out the following pre-review checklist:

[x] I am adding a new automated test(s) to verify correctness of my new code
[ ] I am adding new logging messages
[ ] I am adding a new telemetry message
[ ] I am adding new credentials
[ ] I am adding a new dependency

Please describe how your code solves the related issue.
SNOW-949781 introduced changes to stored proc register, which results in failure when giving packages as modules to the stored proc register function. Fix here.

the test failure is because in our backend our sp connector only supports pandas < 2.1.0.
is it possible to use other package for test?
I've logged a JIRA to unblock the usage of newer pandas for connector as well as our sp connector:
https://snowflakecomputing.atlassian.net/browse/SNOW-1038863

the test failure is because in our backend our sp connector only supports pandas < 2.1.0. is it possible to use other package for test?
I've logged a JIRA to unblock the usage of newer pandas for connector as well as our sp connector, we will get someone to work on it in the next sprint or if I have time this week I will work on it: https://snowflakecomputing.atlassian.net/browse/SNOW-1038863

Is there a package I could use for testing? If not, would it be ok to add a package (e.g., scipy) to the testing environment?

authors: sfc-gh-aling sfc-gh-lspiegelberg


text:
[BUG] Snowpack doesn't properly transform HMR scripts and paths with config.buildOptions.baseUrl

Bug Report Quick Checklist

[x] I am on the latest version of Snowpack & all plugins.
[x] I use package manager yarn
[x] I run Snowpack on OS macOS (Fill in: Windows, Mac, Linux, etc).
[x] I run Snowpack on Node.js v12+

Describe the bug
Thanks for developing such an awesome tool! I am developing on an existing app whose build system requires it be served from a non-root public URL like /app/myApp. The full setup is that the dev server may actually mount multiple apps at different paths, like /app/myApp1, /app/myApp2, etc.
It's worth mentioning that, as I understand it, Snowpack dev server still serves content at the root path /, even if you specify a baseUrl. For example, it's expected that the "public path" /app/myApp/src/index.js will get routed to the Snowpack server at /src/index.js. This is perfectly acceptable, and easily handled using a rewrite rule in your "root" dev server that proxies to the local Snowpack server.
The intended final setup is then, with the root devserver.local/app/myApp proxying to a local snowpack server at snowpack.local:
https://devserver.local/app/myApp/ -> https://snowpack.local/
https://devserver.local/app/myApp/_snowpack/ -> https://snowpack.local/_snowpack/

When using the config.options.baseUrl option, emitted paths are supposed to be transformed relative to that base URL. However, there are a few paths that are missed at the time of this writing:

The HMR assets themselves, like hmr-client.js. These are injected at the metaUrlPath, but don't take into account the baseUrl.

I also tried making the buildOptions.metaUrlPath a subdirectory of baseUrl, like /app/myApp/_snowpack. This results in the "correct" index.html being emitted, but Snowpack will see the route /_snowpack after a URL rewrite, but it isn't listening there.

The HMR module IDs are mismatched with their real paths. In the client code for createHotContext(fullUrl), the fullURL includes the baseUrl, but the websocket packets sent from the file system watcher are still untransformed (root) paths. This means that e.g. the file at /app/myApp/src/index.js will not properly notice it's being replaced, as the backend packet messages to refresh /src/index.js.
Resolved module imports, like /_snowpack/pkg/{id} are not properly joined against the baseURL.

In aggregate, this means that I'm applying the following patch to my local Snowpack version to address the above issues: https://gist.github.com/crazytoucan/a33ecd8954367be48a90d691d017617a [Snowpack version: 3.2.2]. After applying that patch, things work perfectly!
To Reproduce
I have not yet made an example repo that demonstrates the error fully, as that would involve additional external dependencies like router middleware. I'm happy to do so, though, if the above isn't clear!
Expected behavior
Serving an application behind a baseUrl in dev mode should correctly hot reload.

I'm hoping the above patch can be transformed into a PR pretty easily, and I'm happy to work with whomever is more knowledgeable on the Snowpack internals to make sure these changes land in the right way. Let me know what else I can do to be useful.

Actually, I think I managed to get this to work using config.mount and config.buildOptions.metaUrlPath instead of config.baseUrl. Likewise, I am no longer transforming the path at the root dev server, rather passing the whole path down to the snowpack server.
I must have been confused about which options should be used when/under what conditions, but this unblocks us!
// good
// upstream https://devserver.local/app/myApp -> https://snowpack.local/app/myApp
module.exports = {
  buildOptions: {
    metaUrlPath: "/app/myApp/_snowpack",
  },
  mount: {
    ".": "/app/myApp"
  },
};

// bad config that I tried, and came up _almost but not quite_
// upstream https://devserver.local/app/myApp -> https://snowpack.local/
module.exports = {
  buildOptions: {
    baseUrl: "/app/myApp",
  },
}

Marking this as resolved, but happy to discuss more if others are in the same position I am!

repo: snowpackjs/snowpack


text:
Vagrant quickstart is incorrect

vagrant@snowplow-ruby-tracker:/vagrant$ bundle install
The program 'bundle' is currently not installed. To run 'bundle' please ask your administrator to install the package 'bundler'

Assigned to Fred but I have a live branch going - so answer in a comment here is perfect...

@alexanderdean If the up.guidance is changed to
To get started:
vagrant ssh
cd /vagrant
gem install bundler
bundle install
rspec

then it works as expected.
(The new line is "gem install bundler".)

Hero! Thanks Fred

authors: alexanderdean fblundun

repo: snowplow/snowplow-ruby-tracker


text:
Add Simple Tint preferences

CommandListAdapter items and Blocks in flowchartwindow have configurable tints in fungus editor preferences.

Description
Adding simple tinting for elements of Fungus UI as per close #868
What is the new behavior?
In the Fungus Editor Preferences the user can now configure a tint colour for the CommandList in the Block Inspector and a tint for the Block icons in the Flowchart Window.
Other information
These type of tints are easy to integrate and should remain easy to maintain. I'll wait for feedback before mering this PR in case there are more elements that are requested.

So if I understanding this right, this will change the tint for commands (say change the If command from yellow to a color of my choice)? If so, I cannot think of anything else. Not sure where the Fungus box is though where you are setting the tints in the screenshot.:)

@danac78 It's less targeted than that, it's allowing a global tint to all the colours in the Block inspector and in the Flowchart window. For the use case described in the issue, I thought this might be a good stop gap at least. Being able to turn down the intensity of the colours, the tint is just a multiply to the colour given by GetButtonColour.

@stevehalliwell  Ok, I see where you are going with it. In that case, then yes, it is good. :)

repo: snozbot/fungus


text:
feat: add advisor preview

Add advisor score to vscode extension
Score will show for packages with vulnerabilities, as shown in the following image:

To see this feature in action, use a package.json file with a package that known to have a score lower then 70, then hover with your mouse over the Advisor Score text with the mouse to see the advisor score details.
Example dependencies:
    "axios": "^0.20.0",
    "express": "^4.17.1",
    "firebase": "^5.8.2",
    "lodash": "^4.17.11",
    "numeral": "^2.0.6", # lower then 70
    "vue": "^2.5.21",
    "vue-router": "^3.0.6",
    "chino": "0.0.0", # lower then 70
    "vuejs": "3.0.1" # lower then 70

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

As discussed offline, I'll be taking this PR over and merging it afterwards.

Thank you for your work on it @sangress 👏

Thank you for your work on it @sangress 👏

Thanks @michelkaporin for mentioning.
It's good to see it live; it was my longest PR ever, but I did enjoy working on it.
Good luck with future features :)

authors: CLAassistant michelkaporin sangress

repo: snyk/vscode-extension


text:
Workaround d1to2fix crashes by removing allocation

No idea what is broken about dsymbol usage of stdx-allocator and not
interested in debugging it. Just making it static value should prevent
any cleanup problems with GC.

I've tested it with the failed project and it works now.


text:
Keyboard is closed when trying to delete mention

Describe the bug
When trying to delete the mention, it doesn't work and I also lose focus to the input, causing the keyboard to be closed.
To Reproduce
Steps to reproduce the behavior:

Go to 'Demo page'
Type @ to see the mentions list and pick one
Try to delete the mention
It doesn't work and I lose focus to the input

Expected behavior
The mention should be deleted and I still keep focus on the input
Video
https://github.com/sodenn/lexical-beautiful-mentions/assets/64638082/e519a3e7-c619-425e-bce3-a534cdb09609
Smartphone (please complete the following information):

Device: Xiaomi Redmi K40 Gaming
OS: Android 13
Browser: Chrome

Additional context
The bug only happens on Android phone's Chrome (Xiaomi specifically)

we are also facing the same issue

Facing the same issue on Xiaomi devices

After looking into it, there is no easy way to fix this issue. Other rich text editors have to deal with very similar problems. For example: https://github.com/ProseMirror/prosemirror/issues/565. Unfortunately, it is a known issue with the Android'a virtual keyboard in contenteditable elements.
One possible workaround is to switch from DecoratorNode to TextNode, so the mention nodes would no longer have contenteditable=false. But that would change the current behavior and other known GBoard issues would still persist. For example: https://github.com/facebook/lexical/issues/4636.

To anyone who is still seeing this, I was able to fix this while working on https://10play.github.io/10tap-editor/docs/examples/mentions
The fix I had was to wrap the contenteditable=false with contenteditable=true in addition to adding these two special characters to the end of the node \uFEFF \u200B and now it works great!
This fix is for tiptap/prosemirror but since the underlying problem is a browser bug this might help you guys as-well
 renderHTML({options, node}) {
  return [
    'span',
    {contenteditable: true},
    [
      'span',
      mergeAttributes(
        {class: classes.join(' '), contenteditable: false},
        options.HTMLAttributes,
      ),
      `${options.suggestion.char}${
        node.attrs.label ?? node.attrs.id
      }`,
    ],
    ['span', {}, '\uFEFF'],
    ['span', {}, '\u200B'],
  ];

repo: sodenn/lexical-beautiful-mentions


text:
Align with external tools (apply)

Hi,
I'm having trouble with external aligners.
Since I have a well-done cluster result, I'd like to generate files using global-alignment.
So, I did:
mmseqs createseqfiledb ../pbps.DB pbps.CLU pbps.CLU.SEQ
mmseqs apply pbps.CLU.SEQ pbps.CLU.MSA -- clustalo -i - --threads=1

But, some clusters have only one sequence, and clustalo cannot align them.
So, I got this:
Program call:
apply pbps.CLU.SEQ pbps.CLU.MSA --threads 20 -- clustalo -i - --threads=1

MMseqs Version: 8-fac81
Threads         20
Compressed      0
Verbosity       3

Start applying.
FATAL: File '-' contains 1 sequence, nothing to align
Entry 11799 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13739 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
FATAL: Entry File '-' contains 1 sequence, nothing to align11738
 exited with error code 1!
Entry 13759 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13799 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13819 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13839 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13859 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13879 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13899 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13919 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align
Entry 13939 exited with error code 1!
FATAL: File '-' contains 1 sequence, nothing to align

But it works if rather than use apply + clustalo I use the result2msa.
There is any strategy to deal with this issue?

You can just remove this cases with this command
   mmseqs createseqfiledb ../pbps.DB pbps.CLU pbps.CLU.SEQ --min-sequences 2

If you want the single files in your final result than you need to write wrapper script for clustalo that handle this case

Hi @martin-steinegger
thanks, a wrapper may solve. But, may I extract a separated DB for single sequences and merge it in a final DB?
I would like to use msa2profile after I got all alignments, it works with result2msa. So, if I may extract the results with only one sequence to merge with msa DB or profile DB I think may be better than write a wrapper script.

It is not possible to use apply the way you use it in your example.
You could use concatdb to combine the databases.

hi @martin-steinegger
After I run, apply didn't finish.
Program call:
apply pbps.CLU.SEQ pbps.CLU.MSA --threads 20 -- wclustalo -

MMseqs Version: 8-fac81
Threads         20
Compressed      0
Verbosity       3

Start applying.
..

Seams that is everything finished, all files generated by mmseqs apply. When I read them I seams everything okay, this may alignments, as expected.
-rw-r--r-- 1 acpguedes acpguedes 6,0M abr 23 18:23 pbps.CLU.MSA_tmp_14
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:23 pbps.CLU.MSA.index_tmp_14.0
-rw-r--r-- 1 acpguedes acpguedes 5,9M abr 23 18:23 pbps.CLU.MSA_tmp_13
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:23 pbps.CLU.MSA.index_tmp_13.0
-rw-r--r-- 1 acpguedes acpguedes 6,1M abr 23 18:23 pbps.CLU.MSA_tmp_6
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:23 pbps.CLU.MSA.index_tmp_6.0
-rw-r--r-- 1 acpguedes acpguedes 6,0M abr 23 18:23 pbps.CLU.MSA_tmp_12
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:23 pbps.CLU.MSA.index_tmp_12.0
-rw-r--r-- 1 acpguedes acpguedes 6,2M abr 23 18:23 pbps.CLU.MSA_tmp_7
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:23 pbps.CLU.MSA.index_tmp_7.0
-rw-r--r-- 1 acpguedes acpguedes 6,0M abr 23 18:23 pbps.CLU.MSA_tmp_8
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:23 pbps.CLU.MSA.index_tmp_8.0
-rw-r--r-- 1 acpguedes acpguedes 6,6M abr 23 18:23 pbps.CLU.MSA_tmp_3
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:23 pbps.CLU.MSA.index_tmp_3.0
-rw-r--r-- 1 acpguedes acpguedes 6,3M abr 23 18:23 pbps.CLU.MSA_tmp_5
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:23 pbps.CLU.MSA.index_tmp_5.0
-rw-r--r-- 1 acpguedes acpguedes 6,1M abr 23 18:24 pbps.CLU.MSA_tmp_10
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:24 pbps.CLU.MSA.index_tmp_10.0
-rw-r--r-- 1 acpguedes acpguedes 6,6M abr 23 18:24 pbps.CLU.MSA_tmp_2
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:24 pbps.CLU.MSA.index_tmp_2.0
-rw-r--r-- 1 acpguedes acpguedes 6,6M abr 23 18:24 pbps.CLU.MSA_tmp_4
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:24 pbps.CLU.MSA.index_tmp_4.0
-rw-r--r-- 1 acpguedes acpguedes 7,0M abr 23 18:24 pbps.CLU.MSA_tmp_1
-rw-r--r-- 1 acpguedes acpguedes  20K abr 23 18:24 pbps.CLU.MSA.index_tmp_1.0

May I kill the mmseqs process and rename them?

I am closing this issue since #207 is about the same problem.


text:
Review DocBlock tag in uses of warn()

Some say that an assertion is thrown.  is the the case when warn() is called?  make sure the docblock matches up with the logic of methods utilizing warn()

I am working on this

@notmessenger: We have usage of warn( 'message' ) from the utils which is Ember.Logger.warn( message ) and Ember.warn (message, test, options)

@notmessenger: We could use @throws {ember/Logger.warn} and @throws {ember.warn} for these different cases.

@notmessenger:
Here are the Ember implementations for each of the different cases:
Ember.warn()
https://github.com/emberjs/ember.js/blob/v2.2.0/packages/ember-debug/lib/warn.js#L26
Ember.Logger.warn()
https://github.com/emberjs/ember.js/blob/v2.2.0/packages/ember-metal/lib/logger.js#L76

I am not sure if @throws is the correct usage but I did not see anything that looked like it might work better.  http://usejsdoc.org

@notmessenger: There are no longer any uses of the warn() method including a definition in the docBlock header. This issue can be closed.

repo: softlayer/sl-ember-components


text:
Added ability to omit license

Added the ability to omit/skip specifying a license. Useful when publishing to a private (premium) repo.

I wanted to create a setting which has a default value. Since my knowledge in SBT is limited  I'm not sure I implemented it correctly.
Please have a look.

this seems like a good idea, esp if my list of licenses gets out of date.

authors: review-ninja softprops ulejon

repo: softprops/bintray-sbt


text:
Image disappears on Android when re-rendering content

Hi, I'm using react-native-svg to display images inside of custom shapes, with code like the following:
<Svg
  width={svgWidth}
  height={svgHeight}
  viewBox={`0 0 ${viewBoxWidth} ${viewBoxHeight}`}
  fill='none'
  xmlns='http://www.w3.org/2000/svg'
  xmlnsXlink='http://www.w3.org/1999/xlink'
  {...props}
>
  <Defs>
    <Path
      id='bubbly'
      d='M154.031 57.526l-.065.327.277.185c11.309 7.571 16.908 17.778 16.908 27.93 0 10.153-5.599 20.359-16.908 27.93l-.277.186.065.327c2.642 13.35-.616 24.525-7.794 31.703-7.178 7.178-18.353 10.436-31.704 7.794l-.327-.065-.185.277c-7.571 11.31-17.778 16.909-27.93 16.909-10.153 0-20.36-5.599-27.93-16.909l-.186-.277-.327.065c-13.35 2.642-24.526-.616-31.704-7.794-7.177-7.178-10.435-18.353-7.793-31.703l.064-.327-.277-.186C6.63 106.327 1.03 96.121 1.03 85.968c0-10.152 5.599-20.359 16.908-27.93l.277-.185-.064-.327c-2.642-13.35.616-24.526 7.794-31.704 7.178-7.178 18.352-10.436 31.703-7.794l.327.065.186-.277C65.735 6.506 75.942.908 86.094.908c10.151 0 20.356 5.599 27.927 16.908l.185.277.327-.065c13.351-2.642 24.526.616 31.704 7.794 7.178 7.178 10.436 18.353 7.794 31.704z'
      stroke='#000'
      fill='#000'
    />
    <ClipPath id='bubblyClipPath'>
      <Use href='#bubbly' />
    </ClipPath>
  </Defs>
  <>
    <G clipPath='url(#bubblyClipPath)'>
      <Image
        x={translateImageX}
        y={translateImageY}
        width={scaledImageWidth}
        height={scaledImageHeight}
        xlinkHref={image}
      />
    </G>
    <Use href='#bubbly' />
  </>
</Svg>

Unfortunately, when running on Android, the images inside of some of the shapes disappear whenever I navigate away and back into the page rendering these shapes, as seen in the images below. I believe it is a memory issue, as I can't re-create it when displaying less overall content on the page.
I was wondering if anyone else had similar problems when running react-native-svg on Android, and if they had any advice to fix the problem?
I'm going to try re-creating the environment locally and profile memory to see if there are any spikes.
Strangely, it works completely fine on iOS, on a much older device.

Environment info
Run react-native info in your terminal and copy the results here. Also, include the precise version number of this library that you are using in the project
React native info output:
System:
    OS: macOS 12.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 38.26 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.17.6 - ~/.nvm/versions/node/v14.17.6/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v14.17.6/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.17.6/bin/npm
    Watchman: 2023.05.22.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: Not Found
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8815526
    Xcode: 14.1/14B47b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.5 => 0.70.5
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version: 13.4.0

Hello @jsindos,
If you still have that problem please share a simple example of how we can reproduce that issue.
Thank you.

authors: bohdanprog jsindos

repo: software-mansion/react-native-svg


text:
added Broken Robot Burger Bar - BRGR token

Please note: This repository is being rebuilt to accept the new volume of token additions and modifications. PR merges will be delayed.

I agree to not ping anybody on Discord/Twitter/email about this pull request. Instead I will inquire by posting a new comment in the pull request if needed.

PRs are reviewed in bulk and and can take up to two weeks to be merged.
This repository is managed using an auto merge action. Please ensure your PR has no deleted lines, and it will be merged.
Please provide the following information for your token.
Please include change to the src/tokens/solana.tokenlist.json file in the PR.
DON'T modify any other token on the list.
At minimum each entry should have

Token Address:
Token Name:
Token Symbol:
Logo: (logo should be uploaded under assets/mainnet//*.<png/svg>)
Link to the official homepage of token:
Coingecko ID if available (https://www.coingecko.com/api/documentations/v3#/coins/get_coins__id_):

Auto merge requirements
Your pull request will be automatically merged if the following conditions are met:

Your pull request only adds new tokens to the list. Any modification to existing
tokens will require manual review to prevent unwanted modifications.

Your pull request does not touch unrelated code. In particular, reformatting changes to unrelated
code will cause the auto merge to reject your PR.

Any asset files added correspond to the token address you are adding. Asset files
must be PNG, JPG or SVG files.

Your change is valid JSON and conforms to the schema. If your change failed validation,
read the error message carefully and update your PR accordingly.

No other tokens shares the same name, symbol or address.

For example, this change would be rejected due to unrelated changes:

The bot runs every 60 minutes and bulk-merges all open pull requests to prevent conflicts.
This means that you need to wait up to 60 minutes for your pull request to be merged or reprocessed.

I can help refer this https://github.com/zakimzf/profile/pull/1
PS: if you don't need my help.. please ignore this!

repo: solana-labs/token-list


text:
Fix existing token address

Due to changing of the ROVE token supply we decided to mint new token, and change address in the tokens list.

added in https://github.com/solana-labs/token-list/commit/da378da2a57ef893b1164c5c0332bce9cf874ab2

authors: keone sborod


text:
NH-92751 add hostmetrics receiver

https://swicloud.atlassian.net/browse/NH-92751

old pr, closing


text:
[v1] Simple mainloop common changes

v1:

simple mainloop common change to init/shutdown
remove unused variable

If there's not objection to this I'll merge it today (it's really simple after all).

There is no objection, I have so declared.

Rebased and merged.

authors: ibriano ulissesf

repo: solettaproject/soletta


text:
Inject auth client, send Authorization header if present

Implements https://github.com/solid/solid-auth-oidc/issues/2

Closing this PR, will reopen a similar one but without /lib committed.

repo: solid/solid-web-client


text:
Update logback-classic to 1.2.8

Updates ch.qos.logback:logback-classic from 1.2.3 to 1.2.8.
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!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "ch.qos.logback", artifactId = "logback-classic" } ]

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

Superseded by #280.

repo: solidninja/albion


text:
Add sidebar for admin user to redeem gift card

I think this got lost in the move, originally from https://github.com/bonobos/spree_store_credit_payment_method/blob/2-2-dev/app/overrides/admin_user_sidebar_store_credits.rb
cc @adammathys

:+1:

:+1:

authors: adammathys magnusvk philbirt


text:
Error: unrecognized arguments: playbook.yml

Related to https://github.com/hashicorp/packer-plugin-ansible/issues/134
Overview of the Issue
While trying to build image with packer, at Ansible provisioner step, the following log is created, and packer exits with RC=1:
==> arm-image.ubuntu-2204: Executing Ansible: ansible-playbook -e packer_build_name="ubuntu-2204" -e packer_builder_type=arm-image -vvvvv --connection=chroot --become-user=root --extra-vars ansible_host=/tmp/armimg-2292410357 --extra-vars default_username=admin --extra-vars default_password=***** -e ansible_ssh_private_key_file=/tmp/ansible-key1021651395 -i /tmp/packer-provisioner-ansible802100546 /home/shanduur/Repos/deployment/images/rpi-ubuntu-22.04/ansible/playbooks/user.yml
.
.
.
    arm-image.ubuntu-2204: ansible-playbook: error: unrecognized arguments: /home/shanduur/Repos/deployment/images/rpi-ubuntu-22.04/ansible/playbooks/user.yml

Reproduction Steps
Create the following folder structure:
.
├── Makefile
├── rpi-ubuntu-22.04
│   ├── ansible
│   │   └── playbooks
│   │       └── user.yml
│   └── img.pkr.hcl
└── variables.pkrvars.hcl

Paste the content of the files below to the appropriate files.
Run make rpi-ubuntu-22.04
Plugin and Packer version
From packer version

Packer v1.8.5
github.com/hashicorp/ansible v1.0.3
github.com/solo-io/packer-plugin-arm-image @ main (manual install)
ansible-playbook [core 2.14.1]

Simplified Packer Buildfile
packer {
  required_plugins {
    ansible = {
      version = ">= 1.0.2"
      source  = "github.com/hashicorp/ansible"
    }
  }
}

variable "default_username" {
  type    = string
  default = "admin"
}

variable "default_password" {
  type    = string
  default = "Ch@ngeme1"
}

source "arm-image" "ubuntu-2204" {
  iso_url = "https://cdimage.ubuntu.com/releases/22.04.1/release/ubuntu-22.04.1-preinstalled-server-arm64+raspi.img.xz"
  iso_checksum = "5d0661eef1a0b89358159f3849c8f291be2305e5fe85b7a16811719e6e8ad5d1"
  target_image_size = "${var.target_image_size}"
}

build {
  sources = ["source.arm-image.ubuntu-2204"]

  provisioner "file" {
    source = "templates/"
    destination = "/apps"
  }

  provisioner "ansible" {
    playbook_file = "ansible/playbooks/user.yml"

    ansible_env_vars = [
      "PYTHONUNBUFFERED=1",
    ]

    extra_arguments = [
      "--connection=chroot",
      "--become-user=root",
      "--extra-vars ansible_host=${build.MountPath}",
      "--extra-vars default_username=${var.default_username}",
      "--extra-vars default_password=${var.default_password}"
    ]
  }
}

Playbook file, located at ansible/playbooks/user.yml:
- hosts: all
  tasks:
    - name: Ensure that 'default_username' is defined
      fail: msg="Bailing out. This play requires 'default_username'"
      when: default_username is undefined

    - name: Ensure that 'default_password' is defined
      fail: msg="Bailing out. This play requires 'default_password'"
      when: default_password is undefined

    - name: Delete default "ubuntu" user
      ansible.builtin.user:
        name: ubuntu
        state: absent
        remove: true
        force: true

    - name: Create new user
      ansible.builtin.user:
        name: '{{ default_username }}'
        password: '{{ default_password }}'

Simplified Makefile:
PKR_VARIABLES=../variables.pkrvars.hcl
PKR_CONFIG=img.pkr.hcl

.PHONY: rpi-ubuntu-22.04
rpi-ubuntu-22.04:
	TARGET=rpi-ubuntu-22.04 make img

.PHONY: img
img:
	cd ${TARGET} && \
	PACKER_LOG=1 sudo -E packer init ${PKR_CONFIG} && \
	PACKER_LOG=1 sudo -E packer build \
		-var-file ${PKR_VARIABLES} \
		${PKR_CONFIG}

Operating system and Environment details
$ uname -a
Linux rocky.dev 4.18.0-372.19.1.el8_6.x86_64 #1 SMP Tue Aug 2 16:19:42 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.5 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.5 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"

$ ansible --version
ansible [core 2.14.1]
  config file = None
  configured module search path = ['/home/shanduur/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/shanduur/.local/lib/python3.9/site-packages/ansible
  ansible collection location = /home/shanduur/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.6 (default, Nov  9 2021, 13:31:27) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] (/bin/python3)
  jinja version = 3.1.2
  libyaml = True

Log Fragments and crash.log files
packer.log

@shanduur is this resolved? from your upstream bug it looks like it is.

authors: rtasson shanduur

repo: solo-io/packer-plugin-arm-image


text:
🛑 svet.kz is down

In 88197b4, svet.kz (https://svet.kz/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: svet.kz is back up in 03f77fb.


text:
🛑 server.h-24871.kz is down

In dd3d679, server.h-24871.kz (185.121.81.43) was down:

HTTP code: 0
Response time: 0 ms

Resolved: server.h-24871.kz is back up in 0220016.


text:
URL upload package in integration

Upload a package to integration is failing. I guess the reason is bad url. What is the new url to upload a package?
This is the log
curl -i -X POST -F package=@sonata-fw-vtc-service-sp.son http://sp.int3.sonata-nfv.eu:32001/packages
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0  6999    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  7017  100    18  100  6999     17   6675  0:00:01  0:00:01 --:--:--  6678
HTTP/1.1 100 Continue
HTTP/1.1 404 Not Found
Content-Type: text/html;charset=utf-8
X-Cascade: pass
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Length: 18
Not Found

The new url should be this:  http://sp.int3.sonata-nfv.eu:32001/api/v2/packages

repo: sonata-nfv/son-gkeeper


text:
Layout Issues

Appears to not be working correctly after upgrading to Sketch 50.2

@andershouston you are going to have to give me a little more information than that... a screenshot or description of the problem.

Here's what's happening to me.
On Tue, May 15, 2018 at 5:50 PM, Jason Burns notifications@github.com
wrote:

@Andershouston https://github.com/Andershouston you are going to have
to give me a little more information than that... a screenshot or
description of the problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sonburn/symbol-instance-sheet/issues/7#issuecomment-389359797,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABXk-9DVHEgijjK2i5Dc93vHXgnouJZYks5ty3fhgaJpZM4UAdgY
.

@Andershouston Not sure if your whole response was submitted, but again I have nothing to go on to help diagnose any issue you are experiencing.

Perhaps not, did you not see the images I sent you?
On Wed, May 16, 2018 at 8:32 AM, Jason Burns notifications@github.com
wrote:

@Andershouston https://github.com/Andershouston Not sure if your whole
response was submitted, but again I have nothing to go on to help diagnose
any issue you are experiencing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sonburn/symbol-instance-sheet/issues/7#issuecomment-389562869,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABXk-yjq7pNo0MPbbAcorWXDlYOE7bjiks5tzEaegaJpZM4UAdgY
.

Yes, it's how I'm able to maintain clear distinctions in a larger document.
On Wed, May 16, 2018 at 11:33 AM, Jason Burns notifications@github.com
wrote:

@Andershouston https://github.com/Andershouston Ok, now we are getting
somewhere 🙂. Out of curiosity, does your Icon Library library have
multiple pages of symbols?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sonburn/symbol-instance-sheet/issues/7#issuecomment-389621146,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABXk-1LjZ6nOK0JLSIqwb2idC7EXUjXeks5tzHEPgaJpZM4UAdgY
.

@Andershouston This is actually a known issue, or current limitation of the plugin (see https://github.com/sonburn/symbol-instance-sheet/issues/2). I do plan to address this in a future update. Since an issue/enhancement already exists for this issue, I am going to go ahead and close this one. Thanks for the feedback, and using the plugin.

authors: Andershouston sonburn

repo: sonburn/symbol-instance-sheet


text:
Linux 部署报错：PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows

作为新手想用这个项目练手一下如何部署项目到linux服务器，但是我碰到了一点问题想来请教一下，就是我部署的时候运行./one-api --port 3000 --log-dir ./logs 显示    [root@VM-4-9-centos wwwroot]# ./one-api --port 3000 --log-dir ./logs
-bash: ./one-api: cannot execute binary file   然后我通过  [root@VM-4-9-centos wwwroot]# file ./one-api 发现它显示
./one-api: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows     也就是说生成的二进制文件是只能Windows执行，请问这是什么原因？感谢感谢！
Originally posted by @Chenm4 in https://github.com/songquanpeng/one-api/issues/11#issuecomment-1525187657

@Chenm4 提问发单独的 issue 哈

完整的报错信息发一下，用的是哪一个版本也发一下。

我试了一下，运行没有问题，我怀疑你下错文件了，下图中第一个是 Linux x86 架构的可执行文件：

我试了一下，运行没有问题，我怀疑你下错文件了，下图中第一个是 Linux x86 架构的可执行文件：

噢噢我一开始在Windows中通过源码编译执行了这个命令然后再把项目发送到服务器，应该是在Windows上通过go mod download的时候识别为windows然后我没删除one-api就发到linux上了。
我现在通过release已经部署成功了，感谢感谢

repo: songquanpeng/one-api


text:
MacOS打开微信开发者工具热重载, 热更新无效

描述这个Bug
微信开发者工具热重载打开时, dist热更新无效
代码url
可提供转化失败的 wxml,js,wxss 这类的产物，
可以直接复制粘贴在此处，或者提供 url
如何重现
打开微信开发者工具的热重载
期望行为(可选)
编译后的dist代码在微信开发者工具中实时更新
屏幕截图(可选)

运行环境

OS: MacOs 12.0.1 (21A559)
Nodejs: 14.17.6
Framework: taro
taro info

Additional context
Add any other context about the problem here.

之前测试 windows 平台上，微信IDE这个问题已经修复了 https://github.com/sonofmagic/weapp-tailwindcss-webpack-plugin/issues/37
接下来看MacOS上这个问题，什么时候修

这个问题的源头来自于 Webpack 对 modules 有缓存导致的，这点像 taro 提供了一些配置项，来注入代码兼容微信IDE的热重载，详见：
https://github.com/NervJS/taro/issues/10722#issuecomment-992247021
https://taro-docs.jd.com/docs/config-detail#minihot

遇到同样的问题

遇到同样的问题

authors: 1effortlessness imaxing sonofmagic xijaja

repo: sonofmagic/weapp-tailwindcss


text:
Missed one!

Follow up to #379.

well spotted

authors: garethsb lo-simon

repo: sony/nmos-cpp


text:
Better formatting for LSP sigs on hover

Problem
Once a signature gets sufficiently complex, it's very hard to read:

I know ideally we wouldn't have signatures like this at all, but that's not really possible with Rails. The API can't be changed significantly at this point :)
You can see this on sorbet.run if you hover over the has_many at the bottom of the file.
Proposed solution
I'd like if the signatures were formatted so that – either for every parameter no matter what or once a signature gets to a certain length - the parameters were each separated onto their own lines, like so:
sig do
  params(
    name: Symbol,
    scope: T.nilable(T.proc.void),
    after_add: T.nilable(T.any(Symbol, String, T.proc.void)),
    after_remove: T.nilable(T.any(Symbol, String, T.proc.void)),
    anonymous_class: T.nilable(T.any(Symbol, String)),
    as: T.nilable(T.any(Symbol, String)),
    autosave: T.nilable(T::Boolean),
    before_add: T.nilable(T.any(Symbol, String, T.proc.void)),
    before_remove: T.nilable(T.any(Symbol, String, T.proc.void)),
    class_name: T.nilable(T.any(Symbol, String)),
    counter_cache: T.nilable(T.any(Symbol, String)),
    dependent: T.nilable(T.any(Symbol, String)),
    extend: T.nilable(T.any(Module, T::Array[Module])),
    foreign_key: T.nilable(T.any(Symbol, String)),
    foreign_type: T.nilable(T.any(Symbol, String)),
    index_errors: T.nilable(T::Boolean),
    inverse_of: T.nilable(T.any(Symbol, String)),
    join_table: T.nilable(T.any(Symbol, String)),
    primary_key: T.nilable(T.any(Symbol, String)),
    source: T.nilable(T.any(Symbol, String)),
    source_type: T.nilable(T.any(Symbol, String)),
    table_name: T.nilable(T.any(Symbol, String)),
    through: T.nilable(T.any(Symbol, String)),
    validate: T.nilable(T::Boolean),
    blk: T.nilable(T.proc.void)
  ).void
end

@connorshea, this should be easy to fix, do you want to take a stab at it?

Seems like https://github.com/sorbet/sorbet/blob/898570aae6cbffcba4778ee254639c0b1ab1acc1/main/lsp/lsp_helpers.cc#L225 is the method that needs updating

authors: DarkDimius connorshea

repo: sorbet/sorbet


text:
"Illegal instruction" crash on Apple Silicon

Input
The sorbet-static binary crashes on new M1 arm-based macs with the error Illegal instruction.
srb typecheck -e 'puts "Hello, world!"'

Attempting to run Sorbet under Rosetta 2 also fails.
arch -x86_64 srb typecheck -e 'puts "Hello, world!"'

Observed output
Both with and without Rosetta 2:
/usr/local/lib/ruby/gems/2.6.0/gems/sorbet-0.5.6189/bin/srb: line 46: 37685 Illegal instruction: 4  "${sorbet}" "${args[@]}"

Expected behavior
Sorbet correctly typechecks the given statement by printing No errors! Great job.
My Research
I dug into this issue a bit and came across the very similar #1487. (Apologies if this is a dupe.) @DarkDimius' suggestion of removing the -march=sandybridge line produced a binary that appears to be working on my machine for --config=dbg. --config=release-mac caused compile issues with some libraries.
Since I'm assuming you don't want to give up fancy Intel optimizations, it seems like the best solution would be to create a universal binary through merging an ARM build and an x86 build via lipo or another tool. (This is alluded to in #3369.)
Cross-compiling C++ binaries is a little outside my area of expertise, but I'm happy to help in any way I can!

Hey, I'm trying to figure out how to work with this situation,
looks like I've gotta download a preview build of open jdk and patch bazel to build myslef, I was wondering if anyone has come up with an easier solution?

Hey, I'm trying to figure out how to work with this situation,
looks like I've gotta download a preview build of open jdk and patch bazel to build myslef, I was wondering if anyone has come up with an easier solution?

Unfortunately not. 🙁
Here's my set up:

A custom fork of Sorbet. (You can make your own, or use mine!) There are two lines in .bazelrc that I changed:

Remove the -march=sandybridge argument.
Don't include jemalloc on the mac-release. I ran into a lot of clang errors with jemalloc due to changes in the default error warnings on Big Sur. There's probably a way to pass the right settings to Bazel when it builds jemalloc but I couldn't figure it out.

Build Sorbet with ./bazel build //main:sorbet --config= release-mac
The M1 compatible executable is at bazel-bin/main/sorbet!
I'm using Sorbet with a Rails app, so I just copied the executable to my <project>/bin directory. I run Sorbet with bin/srb.
Update your editor LSP paths accordingly.

This is obviously pretty hacky, but it works for me and my admittedly small project. If other people can improve on this process (particularly the jemalloc part), I'd love to hear about it!

Unfortunately not. 🙁
Here's my set up:

A custom fork of Sorbet. (You can make your own, or use mine!) There are two lines in .bazelrc that I changed:

Remove the -march=sandybridge argument.
Don't include jemalloc on the mac-release. I ran into a lot of clang errors with jemalloc due to changes in the default error warnings on Big Sur. There's probably a way to pass the right settings to Bazel when it builds jemalloc but I couldn't figure it out.

Build Sorbet with ./bazel build //main:sorbet --config= release-mac
The M1 compatible executable is at bazel-bin/main/sorbet!
I'm using Sorbet with a Rails app, so I just copied the executable to my <project>/bin directory. I run Sorbet with bin/srb.
Update your editor LSP paths accordingly.

This is obviously pretty hacky, but it works for me and my admittedly small project. If other people can improve on this process (particularly the jemalloc part), I'd love to hear about it!

@nathunsmitty I realize I can compile it myself, but would you be willing to publish your custom build to rubygems for others to use?

@connorshea done: https://rubygems.org/gems/sorbet-static-m1. Sorry it took so long, it's been a busy week. Let me know if you run into any issues!

@nathunsmitty thanks! No worries on the wait, my M1 Mac is still in transit so I won't have it until next week anyway :P

Closed in #4051

authors: connorshea dnsco jez nathunsmitty


text:
give an explanation for empty hover results on untyped files

Motivation

More information for users is a good thing.
Getting the file information on empty results is a little bit of a hack.  I think the cleaner thing might be extending LSPQuery with some information about why the results are empty, but it would be a weird enum like:
enum class EmptyResultReason {
  TypedFalse,
  TypedIgnore, // these could maybe be collapsed into one
  Irrelevant,
};

and the default value would be Irrelevant.
Test plan

See included automated tests.

@froydnj what do you think about adding a new QueryResponse like BadSigilResponse (or some other name)?
At the end of LSPTypechecker::query we could check to see if the list of responses was empty, and if so we could do the same logic you're doing here to check the strictness level of the file. That way we could reuse the BadSigilResponse across hover.cc, definitions.cc, references.cc, etc.

@froydnj what do you think about adding a new QueryResponse like BadSigilResponse (or some other name)?
At the end of LSPTypechecker::query we could check to see if the list of responses was empty, and if so we could do the same logic you're doing here to check the strictness level of the file. That way we could reuse the BadSigilResponse across hover.cc, definitions.cc, references.cc, etc.

I like this solution; I think it's more elegant than a field on LSPQueryResult, but I'm not sure how to rewrite:
https://github.com/sorbet/sorbet/blob/a10576f5d16729d4610bb84768f91255ae59c70c/main/lsp/LSPQuery.cc#L55-L79
(which is called prior to LSPTypechecker::query, so the proposed code would never get hit.)  I guess we could just remove:
https://github.com/sorbet/sorbet/blob/a10576f5d16729d4610bb84768f91255ae59c70c/main/lsp/LSPQuery.cc#L75-L79
but I'm not sure what kind of impact that would have (would cost some performance on some typed: false files for some queries?).

Oh, I guess we just make that code return UntypedResponse or whatever as one of the responses, rather than returning an empty response list.  Easy!

I thought about this some more overnight and realized I don't like something about BadSigilResponse: all of our previous responses are specifically responses dealing with Ruby constructs being queried by the client.  BadSigilResponse is different: it's more about the environment that the query was performed in rather than any response to the query and therefore sort of weird to handle in the existing framework.  (I'm also not totally sure how often it would get used; I could see #5598 using it and maybe completion.cc...but then those places could also do something similar to what we're doing here or the tree below.)
I think the problem is LSPQueryResult is really some tri-state (or more!) sort of thing; in a horrible mashup of Rust and C++, it's:
enum LSPQueryResult {
  // Responses to the query, possibly empty.
  Success(Vec<core::lsp::QueryResponse>),
  // We had a single file to query and requested "erroring" on untyped files.
  UntypedFile,
  Error(ResponseError),
};

This structure has the downside of forcing everybody to be aware of UntypedFile, even when they knew that response couldn't come back (because you passed errorIfFileIsUntyped=false to LSPQuery::byLoc or you used one of the other named functions in LSPQuery).  Perhaps that just points to the idea that LSPQuery::byLoc should be returning a fundamentally different type than LSPQuery::{bySymbolInFiles,bySymbol}.
I prototyped out something along the lines of the tri-state enum above: https://github.com/sorbet/sorbet/tree/froydnj-empty-hover-results-enum-refactor
I don't know whether it's better, per se; I think it's slightly clearer, but still not great in the confines of C++ (I don't want to go full std::variant, because I think that would require rewriting way too much code).
Anyway, I'm going to go ahead and merge this, and we can follow up with a pass over the code if people feel strongly about the types involved.

authors: froydnj jez


text:
wip: POC Suggest arguments after typing method def

Motivation

Once we have adding methods taking the fast path, we can do cool things like
this.

[ ] @jez Build a second option like "(sorbet) Suggest keyword params" to let the user choose whether they want one or the other. Don't set the sort text on the result, so that VS Code can learn the user's preference over time.

Test plan

[ ] @jez Test this

Going to close this for the time being. the changes are good; we'll have to consider the UI (keyword or positional?) and write some tests but that can be something for a future project.


text:
Feature request: Greg Hurrell's Zsh Prompt

@wincent describes his great prompt setup here (link with highlighted comment). It would be nice if we got it wrapped up and integrated into Prezto.
I'm creating this issue just as a feature request as well as a note to self in case I find time to look how to wrap it up and create a pull request. If anyone is interested in it now though, feel free to implement it first.

This seems like it would be a better fit for the contrib repo. Sorin is fairly opposed to new prompts in this repo (there have already been a number of instances where we’ve had to go and fix bugs in prompts that none of the maintainers use) but keeping them in contrib makes it clearer that they’re community maintained.

That's fine, I didn't realize of that.

Not a problem. I’d be happy to include it in contrib though! Thanks for bringing it up.

@belak done! :)

authors: belak oblitum

repo: sorin-ionescu/prezto


text:
Add ability to disable connections via SSH

In some cases database connections via SSH introduce a security risk due to private key being "shared" by all pgweb clients, meaning pgweb daemon does not manage access to any local ssh keys that might be used across different connections. This should be a CLI option, like --disable-ssh.

Implemented

repo: sosedoff/pgweb


text:
fix Longest Palindromic Substring typo

有两个思路三，后面的应该是思路四？

Thanks!

repo: soulmachine/leetcode


text:
Rotate Hand icon

I have an element in the bottom of the page, if I use the hand icon, it will be hide:

How I can rotate the icon?

Hi @giomarino , thanks for reaching out.
You can try to rotate via css or switch the image with another, there is no current built in support for the feature. Sorry

Okok...No problem, thank you for this awesome library!


text:
Fix a minor typo in Readme

Remove extra a

thanks

:+1:

repo: soundcloud/lhm


text:
Feature Request -> Store Token in Local Storage

It would be great to have the choice between session storage and local storage.
An example config I use from TypeScript:
import { UserManagerSettings, WebStorageStateStore } from 'oidc-client';

config = {
                    authority: configuration.authority,
                    automaticSilentRenew: true,
                    client_id: configuration.spaClientId,
                    loadUserInfo: true,
                    post_logout_redirect_uri: configuration.postLogoutRedirectUri,
                    redirect_uri: configuration.spaRedirectUri,
                    response_type: 'token id_token',
                    scope: `openid profile email ${configuration.scope}`,
                    silent_redirect_uri: configuration.silentRedirectUri,
                    userStore: new WebStorageStateStore({ store: localStorage }),
                };

The key line being:
userStore: new WebStorageStateStore({ store: localStorage }),

This would allow the token to survive multiple tabs without requiring the user to log in if they open a new tab.

Actually, at the beginning I was considering whether or not to implement
this configuration. The OAuth 2.0 best practices say that tokens should not be saved in Cookies / Local storage, but I think this is probably acceptable, some guys may like it.
Currently I'm busy with examples for Google, Auth0.com, deal with end_session_endpoint issue ... I will come back to implement this function later, perhaps this weekend or next week.

Hi,
I just released new version, 0.6.1 preview 2. You can add the code bellow to index.html to change the user storage:
<script>
window.HLSoftBlazorWebAssemblyAuthenticationOpenIdConnect.configUserStore(window.localStorage);
</script>

Works as advertised, thanks so much!


text:
Only have one upload in progress at a time

Fix potentially multiple uploads of the same data happening simultaneously if the upload takes longer than the upload interval

Pull Request Test Coverage Report for Build 7813

0 of 5 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.02%) to 32.422%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/features/eventLogging/ServiceWorker.ts
0
5
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/features/eventLogging/ServiceWorker.ts
1
0%

Totals

Change from base Build 7789:
-0.02%

Covered Lines:
2320

Relevant Lines:
6594

💛  - Coveralls

authors: angelsl coveralls

repo: source-academy/cadet-frontend


text:
Build user with 'group' property for name of user's group

Build user with 'group' property for name of user's group
Summary: Required to resolve https://github.com/source-academy/cadet-frontend/issues/753.
Related PRs
Please review this PR in conjunction with this PR on cadet-frontend: https://github.com/source-academy/cadet-frontend/pull/946. Both PRs should be approved together. This PR is complete.
Changelog

Update the /user endpoint to retrieve and transmit the name of the user's group, to enable the front-end to conditionally render the unsubmit button using information about groups

group has type :string, but may be :nil (null) when a user belongs to no group

Last updated 24 Sept 2019, 01:30AM

Pull Request Test Coverage Report for Build 2727

4 of 5 (80.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.06%) to 91.703%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/cadet_web/views/user_view.ex
1
2
50.0%

Totals

Change from base Build 2721:
-0.06%

Covered Lines:
1039

Relevant Lines:
1133

💛  - Coveralls

authors: Aulud coveralls

repo: source-academy/cadet


text:
Add logging support

Add logging support that includes:

INFO: for definition files that are parsed
INFO: for new filter lists that are created
ERROR: for errors in execution
ERROR: for exceptions that are caught

Logs will be maintained on the path: ~/GlyphsFilters/logs/flm.log

added in v0.3.0

repo: source-foundry/FilterListManager


text:
Fixed issue that space for displaying caption was reserved even the caption was disabled.

The grid captionGrid seems to be collapsed when setting ShowTitleBar property to False but the region for showing captionGrid is still shown.
I changed the Height value of RowDefinition to Auto and changing Height value of Grid(captionGrid) to 30 and the issue was gone.
Even after applying this patch, it was okay to use FluentWPF's caption bar with setting ShowTitleBar property to True.

Thanks!!
I've merged :smiley:

authors: sourcechord tumugin

repo: sourcechord/FluentWPF