text:
Webpack 4 + Babel 7 support

I have a running React + Webpack + Babel application running fine with the current config:
"@babel/cli": "^7.0.0-beta.49"
"@babel/core": "^7.0.0-beta.51",
"webpack": "^4.12.0",
According to https://github.com/storybooks/storybook/issues/3044 I've tried to use @storybook/cli@alpha (now mirroring to ^4.0.0-alpha.10) and I'm getting this error:
ERROR in ./.storybook/config.js Module build failed (from ./node_modules/@storybook/core/node_modules/babel-loader/lib/index.js): Error: Couldn't find preset "@babel/env" relative to directory "<appDir>/.storybook"     at <appDir>/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
My steps were:
npm i -g @storybook/cli@^4.0.0-alpha.10
getstorybook
yarn storybook
Is there any dependency inside @storybook/cook that refers babel v6.0? Can you maybe guide me to fix this? I'd love to submit a PR.

Hi @pedroteixeira! I solved the issue reverting storybook local babel to version 6. To do that, I just created a .babelrc file inside .storybook folder:
{
  "presets": ["env", "stage-0", "react"]
}

We still don't have a solution for webpack 4 + babel 7. But this solution works for now. Hope it helps.

Thanks for the tip @hugomn - I'll give it a try this week!

Do you use  babel-core@^7.0.0-bridge.0?

I wanted to use babel 7 plugins and presets.
To get storybook to use babel 7 you can use a yarn alias.
yarn add -D babel-core@npm:@babel/core

Adds to package.json
    ...
    "babel-core": "npm:@babel/core",
    ...

@DylanVann actually, 'babel-bridge' does exactly that, it proxies babel-core imports to @babel-core

@matthewharwood if your question is when we'll use it by default, then not sooner than it becomes stable, see https://github.com/storybooks/storybook/pull/3746#issuecomment-406782129

@aendrew @sneko In my gatsby-storybook-jest-starter repo I have outlined a very basic configuration for making Storybook use Babel 7 that you can find here:
https://github.com/Mathspy/gatsby-storybook-jest-starter/blob/master/.storybook/webpack.config.js
A more stripped down version would look something like:
module.exports = (baseConfig, env, defaultConfig) => {
  // make sure you have babel-loader@8 installed and @babel/core@7
  defaultConfig.module.rules[0].use[0].loader = require.resolve('babel-loader')

  // This reflect what presets you want webpack's babel loader to go through while transpiling your code
  // use @babel/preset-react for JSX and env (instead of staged presets)
  defaultConfig.module.rules[0].use[0].options.presets = [
    require.resolve('@babel/preset-react'),
    require.resolve('@babel/preset-env'),
  ]
  // This reflect what plugins you want webpack's babel loader to go through while transpiling your code
  // use @babel/plugin-proposal-class-properties for class arrow functions
  defaultConfig.module.rules[0].use[0].options.plugins = [
    require.resolve('@babel/plugin-proposal-class-properties'),
  ]

  return defaultConfig
}

Hope this helps and feel free to ask me if anything isn't clear enough or if something doesn't work :heart:

This works for me as well:
module.exports = {
  module: {
    rules: [
      test: /\.js$/,
      use: 'babel-loader' // make sure you have babel-loader@8 installed and @babel/core@7
    ]
  }
}

@Mathspy I tried your solution but I have this error when I start Storybook :
/Users/administrateur/asi/AndrossApp/storybook/webpack.config.js:3
  defaultConfig.module.rules[0].use[0].loader = require.resolve("babel-loader");
                                   ^

TypeError: Cannot read property '0' of undefined
    at module.exports (/Users/administrateur/asi/AndrossApp/storybook/webpack.config.js:3:36)
    at exports.default (/Users/administrateur/asi/AndrossApp/node_modules/@storybook/react-native/dist/server/config.js:80:12)
    at exports.default (/Users/administrateur/asi/AndrossApp/node_modules/@storybook/react-native/dist/server/middleware.js:21:37)
    at new Server (/Users/administrateur/asi/AndrossApp/node_modules/@storybook/react-native/dist/server/index.js:46:50)
    at Object.<anonymous> (/Users/administrateur/asi/AndrossApp/node_modules/@storybook/react-native/dist/bin/storybook-start.js:34:14)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)

Any idea where it could come from ?

@chawax I did some digging around and if I am not mistaken you should use this line instead:
defaultConfig.module.rules[0].loader = require.resolve('babel-loader')

do note however that the rest of the lines were ReactDOM specific and I think you actually don't need any of them IF you're using CRNA so you might be good with just:
module.exports = (baseConfig, env, defaultConfig) => {
  // the configuration doesn't have the "use" array for React-Native for some reason
  defaultConfig.module.rules[0].loader = require.resolve('babel-loader')

  return defaultConfig
}

Thanks a lot @Mathspy for your help, it solved this error. But it looks like your solution doesn't work with React Native since I have the same error I had before :( Migration to Babel 7 is really a pain !
> AndrossApp@0.0.1 storybook /Users/administrateur/asi/AndrossApp
> storybook start -p 7007

=> Loading custom addons config.
=> Loading custom webpack config (full-control mode).
Scanning folders for symlinks in /Users/administrateur/asi/AndrossApp/node_modules (19ms)

React Native Storybook started on => http://localhost:7007/

webpack built 68d7e9d27300f998ce2c in 5237ms
✖ ｢wdm｣: Hash: 68d7e9d27300f998ce2c
Version: webpack 4.16.5
Time: 5237ms
Built at: 2018-08-13 09:00:21
                   Asset       Size   Chunks             Chunk Names
static/manager.bundle.js   6.18 MiB  manager  [emitted]  manager
              index.html  637 bytes           [emitted]
Entrypoint manager = static/manager.bundle.js
[./node_modules/@storybook/channel-websocket/dist/index.js] 2.76 KiB {manager} [built]
[./node_modules/@storybook/core-events/index.js] 412 bytes {manager} [built]
[./node_modules/@storybook/react-native/dist/manager/index.js] 511 bytes {manager} [built]
[./node_modules/@storybook/react-native/dist/manager/provider.js] 4.24 KiB {manager} [built]
[./node_modules/@storybook/ui/dist/index.js] 2.38 KiB {manager} [built]
[./node_modules/@storybook/ui/dist/modules/ui/index.js] 1010 bytes {manager} [built]
[./node_modules/babel-runtime/helpers/classCallCheck.js] 208 bytes {manager} [built]
[./node_modules/babel-runtime/helpers/extends.js] 544 bytes {manager} [built]
[./node_modules/babel-runtime/helpers/inherits.js] 1.08 KiB {manager} [built]
[./node_modules/babel-runtime/helpers/possibleConstructorReturn.js] 542 bytes {manager} [built]
[./node_modules/global/window.js] 232 bytes {manager} [built]
[./node_modules/react/index.js] 190 bytes {manager} [built]
[0] multi ./storybook/addons.js ./node_modules/@storybook/react-native/dist/manager/index.js 40 bytes {manager} [built]
[./node_modules/uuid/index.js] 120 bytes {manager} [built]
[./storybook/addons.js] 1.36 KiB {manager} [built] [failed] [1 error]
    + 576 hidden modules

ERROR in ./storybook/addons.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/administrateur/asi/AndrossApp/node_modules/babel-preset-react/lib/index.js
    at createDescriptor (/Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/config-descriptors.js:138:11)
    at items.map (/Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/config-descriptors.js:69:50)
    at Array.map (<anonymous>)
    at createDescriptors (/Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/config-descriptors.js:69:29)
    at createPresetDescriptors (/Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/config-descriptors.js:61:10)
    at passPerPreset (/Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/config-descriptors.js:53:96)
    at cachedFunction (/Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/caching.js:32:19)
    at presets.presets (/Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/config-descriptors.js:25:30)
    at mergeChainOpts (/Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/config-chain.js:303:26)
    at /Users/administrateur/asi/AndrossApp/node_modules/@babel/core/lib/config/config-chain.js:266:7
 @ multi ./storybook/addons.js ./node_modules/@storybook/react-native/dist/manager/index.js manager[0]
Child html-webpack-plugin for "index.html":
         Asset      Size  Chunks  Chunk Names
    index.html  1.38 MiB       0
    Entrypoint undefined = index.html
    [./node_modules/html-webpack-plugin/lib/loader.js!./node_modules/@storybook/core/src/server/index.html.ejs] 926 bytes {0} [built]
    [./node_modules/lodash/lodash.js] 527 KiB {0} [built]
    [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 489 bytes {0} [built]
    [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
ℹ ｢wdm｣: Failed to compile.

I got them to run here.
https://github.com/ritz078/react-typescript-component-starter-kit

up

Webpack 4 + Babel 7 Is fully supported in current alpha. Here's the issue for support of React Native 0.56
https://github.com/storybooks/storybook/issues/4011

Hey guys,
sorry to barge in, but I'm having the same issue and was wondering how I can use the alpha in order to test if it would fix my build

You need to change all the @storybook/* packages versions to latest alpha (today it's 4.0.0-alpha.23), and probably apply something from https://github.com/storybooks/storybook/blob/master/MIGRATION.md#from-version-34x-to-40x

Does storybook look for a babel.config.js file?  or is it still just .babelrc?

@carrickjason I am currently using a babel.config.js and it works

@hipstersmoothie Nice, thanks.  Works for me too.  The docs still say it looks for .babelrc so i was curious.

authors: DylanVann Hypnosphi Mathspy RomainGoncalves carrickjason chawax hipstersmoothie hugomn pedroteixeira ritz078 tomasztomys


text:
Add option to switch to a specific panel

 Issue by mnmtanish
Monday Sep 26, 2016 at 09:21 GMT
Originally opened as https://github.com/storybooks/storybook-addon-options/issues/4

It can be useful to show some panels by default when viewing certain stories.
Related issue: https://github.com/kadirahq/storybook-addon-knobs/issues/29#issuecomment-247503389
cc: @UsulPro

Good point, will add this to the list for #1209

@ndelangen maybe it's worth to mention that we have this API in lib/UI and in order to make it public (accessible via setOptions) we just need to allow to pass it here: https://github.com/storybooks/storybook/blob/master/lib/ui/src/modules/api/actions/api.js#L82

Regarding this, is it currently possible to set a default panel for ALL stories? For example, I'm using the storybook-readme addon and I'd want to have it as the default opened panel.

@ls-guillaume-lambert The order of addons in the "addons panel" is the same as you import them in 'addons.js'. And the first panel will be opened as you run Storybook.

Perfect, thanks for the heads up!

Good tip @UsulPro !

upd: this option was renamed from selectedAddonPanel  to selectedPanel.
For example:
setOptions({ selectedPanel: 'storybook/actions/panel' });

source: gharchive/issue

authors: UsulPro hcz ls-guillaume-lambert ndelangen shilman

repo: storybooks/storybook

license: MIT

license_type: permissive

license_source: github-api


text:
Addon actions: fix slow logging

All non plain objects will be serialized to a depth of 2.
Events are not treated differently anymore traversing is also cut off at the depth of 2.
All plain objects are still serialized until a depth of 10 (could probably be increased)
Properties starting with double underscore  __ and the storybook's STORYBOOK_ vars are not serialized and ignored.
fixes #2590

Can we make it configurable? I think there might be situation where people may need deeper nesting

Yes, it possible to make it configurable.
Should I implement this by listening on the channel for options set by the Options addon?

I think exporting a configuration function from actions plugin would be more explicit

Sorry, no code update yet, I was only bringing this branch up to date.

Can you please add an example with deeply nested object and different depth configuration?

It seems the performance gain still relies on setting a fixed maxDepth of 2 whenever an object without a name is encountered, I noticed I didn't remove that part yet: https://github.com/storybooks/storybook/pull/3133/files#diff-017c725a54046de74bba2b97b986116aR5
The decision I made there seems a bit arbitrary, but when I remove that part logging something like window will hang again. I'm not sure yet what would be a better way to prevent this.
Perhaps it's also the amount of properties/entries per object and not only the depth which causes the lag.

I assume it's ready

source: gharchive/pull-request

authors: Hypnosphi rhalff


text:
lacking attachments

ex) @user (plain text msg type with highlighted mention)
valid attachment:
{"mentions":[{"at":[1],"len":4,"user_id":"~~~"}]}
not exists in chat.AttachmentList
+ Do you accept code questions? Where can I ask you?

In my case, I added rawAttachment property in module Chat.
talk/chat/chat.ts
protected processAttachment(rawAttachment: string) {
        if (!rawAttachment || rawAttachment === '') {
            return;
        }

        let json: any = {};

        try {
            json = JSON.parse(rawAttachment);
        } catch(e) {

        }

        this.rawAttachment = json;
        this.readAttachment(json, this.attachmentList);
    }

Also, there isn't 'mention' extending class in ChatAttachment.

I implemented it like this:
@ message-template.ts
getMessageType() {
        if (this.attachment) {
            if (this.attachment instanceof MentionAttachment) {
                return MessageType.Text;
            } else if
...

@ chat-attachment.ts
export class MentionAttachment extends ChatAttachment {

    constructor(
        private mentions: object[] = []
    ) {
        super();
    }

    readAttachment(rawJson: any): void {
        this.mentions = rawJson['k'];
    }

    toJsonAttachment() {
        let obj: any = {
            'mentions': this.mentions,
        };

        return obj;
    }

}

=>
let attachment = new MentionAttachment([{
"at": [1],
"len": 4,
"user_id": chat.Sender.UserId.toString()
}]);
let attachmentTemplate = new AttachmentTemplate(attachment);
attachmentTemplate.Text = '@user 안녕'
chat.replyTemplate(attachmentTemplate);

These attachments are selected by message type. Mentions and link(url highlight) contents are individual things and should be processed by another function rather than 'readAttachment'.
this.readAttachment(json, this.attachmentList);

^this
ReplyChat and ReplyAttachment are planned to future commit.

I implemented it like this:
@ message-template.ts
getMessageType() {
        if (this.attachment) {
            if (this.attachment instanceof MentionAttachment) {
                return MessageType.Text;
            } else if
...

@ chat-attachment.ts
export class MentionAttachment extends ChatAttachment {

    constructor(
        private mentions: object[] = []
    ) {
        super();
    }

    readAttachment(rawJson: any): void {
        this.mentions = rawJson['mentions'];
    }

    toJsonAttachment() {
        let obj: any = {
            'mentions': this.mentions,
        };

        return obj;
    }

}

=>
let attachment = new MentionAttachment([{
    "at": [1],
    "len": chat.Sender.UserInfo.Nickname.length,
    "user_id": chat.Sender.UserId.toString()
}]);
let attachmentTemplate = new AttachmentTemplate(attachment);
attachmentTemplate.Text = `@${chat.Sender.UserInfo.Nickname} 안녕하세요`
chat.replyTemplate(attachmentTemplate);
chat.replyText('안녕하세요');

말이 길어져서 한글로 쓰겠습니다.
해당 메소드를 적용해보니 오류가 있는데, 채팅이 이상하게 반응합니다.
예를 들어
chat.replyTemplate(attachmentTemplate);
chat.replyText('안녕하세요');
이렇게 메세지를 연속해서 두번 보내면 아무 문제가 없는데,
chat.replyTemplate(attachmentTemplate);
만 보내면 특정 클라이언트에서는 메세지가 보이고, 특정 클라이언트에서는 메세지가 안보이다가 몆건의 다른 메세지를 더 보내면 갑자기 나타나고 중간에 꼬이게 되네요. 뭐가 문제인지 아시나요?

해당 코드는 현재 구현된 추가된 부분이 아니기 때문에 잘 모르겠지만 user_id 값은 string 타입이 아니라 Long 타입으로 추정됩니다.

Long으로 직접 넣으면 작동하지 않고 int로 하면 정수범위를 초과해서 str으로 했는데 문제 없이 작동됩니다
혹시 채팅을 보낸 후에 해당 채팅이 보내졌다는 사실을 별도로 서버에 보내주던가 해야되는건가요?

맞네요 string으로 넣으면 되긴 하는데 위처럼 이상한 오류가 생깁니다.
user_id가 정수범위를 초과하지 않는 봇 계정 자신의 user_id를 넣으면 정상적으로 되고
그렇다고 string 말고 toInt로 해서 넣으면 정수범위를 초과해서 제대로 멘션이 안되네요. 제대로 멘션이 안될때에도 '이상한 현상'은 나타나고, 그냥 임의로 정수범위 이내의 아무 숫자를 넣으면 역시 멘션은 제대로 안되지만 이상한 현상은 안일어나네요. 어떻게 해야 할까요?

Implemented in 032e9c71693f9058c3c5bf0b8bceb14caeec011c.

authors: delta-kor starlesssss storycraft

repo: storycraft/node-kakao


text:
Javascript

#JavaScript
##User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
##Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I can see the four topics I learned listed along with a suggestion on what I should study first

performed


text:
[Activation] Block to chainedheaderblock

fixes #1813
A phenomenal amount of unit tests are breaking but cannot be related to this change so must be breaking in core-way-activation.
Obviously don't merge until that is resolved

OnBlockConnected also should signal chained header block instead of Block

The issue only mentioned block disconnected, but happy to do block connected too if a priority?

The issue only mentioned block disconnected

The issue doesn't specify it. There is basically no description except for the issue name and issue name suggests that block signaling in general should be changed to signal CHB,

but happy to do block connected too if a priority?

Yes, please do.

Ok this is now done.  I have run the unit tests and compared against  core-way-activation that the same number are still failing (that aren't relevant to this change).

Looks good to me. Just a few minor changes

Thanks @noescape00 These changes are now done.

repo: stratisproject/StratisBitcoinFullNode

license: mit

license_source: bigquery


text:
Add support for strawberry.federation.field in mypy

I forgot to add strawberry.federation.field to mypy, this PR fixes that

Thanks for adding the RELEASE.md file!

Here's a preview of the changelog:

This release adds support for strawberry.federation.field under mypy.

repo: strawberry-graphql/strawberry


text:
Allow message parameter of useBeforeUnload to be a function

Is your feature request related to a problem? Please describe.
The hook useBeforeUnload registers an event when a component that uses that hooks is rendered for the first time. The isDirty parameter can be a function but the message parameter currently is not. So the message is set once unless you rerender the component.
Describe the solution you'd like
I would like to suggest the following signature for useBeforeUnload
const useBeforeUnload = (
	enabled: boolean | (() => boolean) = true,
	message?: string | (() => string)
) => {
...
}

Describe alternatives you've considered
I've used a local state const [beforeUnloadMessage, setBeforeUnloadMessage] = useState(defaultMessage); but this caused the component to rerender only to display a different beforeUnloadMessage in case the user would navigate away.
I can send you a PR for this.
Related to #842

Given that custom message is no longer supported by most browsers, should we just mark the message arg  as @deprecated? Supporting function value and even asking the devs to provide any value does not seem worthy these days. The result won’t be seen by most users anyway.
Somewhat related PR: #1673

That's indeed what I've also discovered after logging this issue.
Closing this in favor of #1673

authors: kachkaev thdk

repo: streamich/react-use

license: Unlicense


text:
🛑 EAM Maara Desa is down

In 06d5f74, EAM Maara Desa (https://seam-admin-dev.streamlined-scs.cl/auth/login) was down:

HTTP code: 0
Response time: 0 ms

Resolved: EAM Maara Desa is back up in 55e028b.

repo: streamlined-scs/upptime


text:
[FEATURE #1547] Support broker level entry filter for consumer

Fixes FEATURE #1547
Motivation
KOP can support simple message filtering.
Modifications
When consumer is sending fetch request, before the result backs to the consumer, filter with the broker level filters
Related components involved:
KafkaCommandDecod.handleFetchRequest
MessageFetchContext.handleEntries
EntryFormatter and sub class

 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.sunhangda seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Could you add a test to test a customized entry filter?

OK

Can we pass the entry filter through the EntryFormaatter constructors?

Good idea

authors: CLAassistant lwclover

repo: streamnative/kop


text:
Episode idea: Service Url

Describe a topic you want to learn (required)
There are multiple options to set a
Why do you want to learn this topic? (required)

Topic lookup logic
What is the difference between web service url and broker service url?
How to configure the service url?
DNS vs Multi-hosts service url

Reference (optional)

Fixed by #16

repo: streamnative/tgip-cn


text:
Finicky sticky movement/strafing in Editor

Release Type: Official Release
Version: 4.1.0.1898
Platform(s): Windows
Describe
I have an annoyance issues after migrating from Unity with regards of moving in the editor.
When flying around in the editor pressing/releasing shift with WASD to strafe and what not, it randomly decides not to move in one direction unless I tap/release the button.
You can see the issue in the video, at random points, the keys get "Stuck", the editor window is still focused and nothing other than WASD and Shift are being pressed (With right click held down the entire time)
https://github.com/stride3d/stride/assets/4002351/5ebd6e31-31fd-4d92-9904-c06655ca87ee

Duplicate of #94

authors: Eideren jusvit


text:
world opens imoroperly

when loading a single player world it opens for a moment then closes and goes to the multiplayer screen (as if i had clicked on multiplayer)

Minecraft:
Forge:
VanillaTweaks:
Description
Log:

Not enough info provided

repo: strikerrocker/VanillaTweaks


text:
Fix starter script test

Extract the start command in its own method to allow consumers to override it if needed.
Also, fix the file test as the file must be executable (and not only existing).
Context: We are seeing a few "text file busy" when starting strimzi. It's related to a race condition on the file system as the file exists, but the executable flag is not set or not completely set. This PR waits for the file to be executable and allows overriding the command to let us find the best approach (if -x is not enough).

@ozangunalp as discussed.

repo: strimzi/test-container


text:
Fixed initialization of PKTextField when being initialized from storyboard or XIB

Fixed initialization of PKTextField when being initialized from storyboard or XIB
Without the fix, the text field doesn't clear its placeholder when starting to type.

Hey @falkobuttler,
As part of a large refactor, this code has moved to our iOS SDK at https://github.com/stripe/stripe-ios, which now has a class called STPPaymentCardTextField with similar behavior to PTKView. That class thankfully handles placeholder text in a saner way, so I'm going to close this PR in favor of that. I'd also encourage you to migrate your apps to use our SDK instead of this library (it should take just a few minutes, and we've written a brief guide at https://github.com/stripe/paymentkit#migration). Of course, if that doesn't work for you, or you have any trouble migrating, reply here and I'll be happy to help. Thank you for opening this PR, though, and I'm sorry we won't be able to get it merged.
Cheers!

authors: falkobuttler jflinter

repo: stripe/PaymentKit


text:
String not valid UTF-8 (BSON::InvalidStringEncoding)

I have the following exception when importing a collection, the data should be valid since it is already present in the database.
Any ideas?
    /var/lib/gems/1.9.1/gems/bson-1.10.2/lib/bson/bson_c.rb:20:in `serialize': String not valid UTF-8 (BSON::InvalidStringEncoding)
    from /var/lib/gems/1.9.1/gems/bson-1.10.2/lib/bson/bson_c.rb:20:in `serialize'
    from /var/lib/gems/1.9.1/gems/bson-1.10.2/lib/bson.rb:19:in `serialize'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/schema.rb:212:in `transform'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:148:in `block (3 levels) in import_collection'
    from /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/cursor.rb:335:in `each'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:147:in `block (2 levels) in import_collection'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:71:in `block in with_retries'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:69:in `times'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:69:in `with_retries'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:146:in `block in import_collection'
    from /var/lib/gems/1.9.1/gems/mongo-1.10.2/lib/mongo/collection.rb:291:in `find'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:145:in `import_collection'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:123:in `block (2 levels) in initial_import'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:121:in `each'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:121:in `block in initial_import'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:109:in `each'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:109:in `initial_import'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/streamer.rb:28:in `import'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/cli.rb:167:in `run'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/lib/mosql/cli.rb:16:in `run'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.2/bin/mosql:5:in `<top (required)>'
    from /usr/local/bin/mosql:23:in `load'
    from /usr/local/bin/mosql:23:in `<main>'

Please note this is failing even with the --unsafe flag.

Another one:
    /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/streamer.rb:41:in `rescue in unsafe_handle_exceptions': undefined method `wrapped_exception' for #<BSON::InvalidStringEncoding: String not valid UTF-8> (NoMethodError)
    from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/streamer.rb:38:in `unsafe_handle_exceptions'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/streamer.rb:186:in `sync_object'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/streamer.rb:234:in `handle_op'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/streamer.rb:178:in `block in optail'
    from /var/lib/gems/1.9.1/gems/mongoriver-0.4.0/lib/mongoriver/abstract_persistent_tailer.rb:33:in `block in stream'
    from /var/lib/gems/1.9.1/gems/mongoriver-0.4.0/lib/mongoriver/tailer.rb:162:in `call'
    from /var/lib/gems/1.9.1/gems/mongoriver-0.4.0/lib/mongoriver/tailer.rb:162:in `stream'
    from /var/lib/gems/1.9.1/gems/mongoriver-0.4.0/lib/mongoriver/abstract_persistent_tailer.rb:32:in `stream'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/streamer.rb:177:in `optail'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/cli.rb:170:in `run'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.3/lib/mosql/cli.rb:16:in `run'
    from /var/lib/gems/1.9.1/gems/mosql-0.4.3/bin/mosql:5:in `<top (required)>'
    from /usr/local/bin/mosql:23:in `load'
    from /usr/local/bin/mosql:23:in `<main>'

I had the same issue.  I just monkey patched it to remove the invalid k,v from the obj.  I replaced the mosql binary with the following, which I call monkey-patched-mosql.  Then, I run the ETL process from the following code.
The ETL errors from my data were caused by binary values and larger than expected BSON documents.
#!/usr/bin/env ruby

require 'mosql/cli'

module MoSQL
  class Schema
    def transform(ns, obj, schema=nil, depth = 0)
      schema ||= find_ns!(ns)

      original = obj

      # Do a deep clone, because we're potentially going to be
      # mutating embedded objects.
      obj = BSON.deserialize(BSON.serialize(obj))

      row = []
      schema[:columns].each do |col|

        source = col[:source]
        type = col[:type]

        if source.start_with?("$")
          v = fetch_special_source(obj, source, original)
        else
          v = fetch_and_delete_dotted(obj, source)
          case v
          when Hash
            v = JSON.dump(Hash[v.map { |k,v| [k, transform_primitive(v)] }])
          when Array
            v = v.map { |it| transform_primitive(it) }
            if col[:array_type]
              v = Sequel.pg_array(v, col[:array_type])
            else
              v = JSON.dump(v)
            end
          else
            v = transform_primitive(v, type)
          end
        end
        row << v
      end

      if schema[:meta][:extra_props]
        extra = sanitize(obj)
        row << JSON.dump(extra)
      end

      log.debug { "Transformed: #{row.inspect}" }

      row
    rescue BSON::InvalidStringEncoding, BSON::InvalidDocument
      obj = obj.select do |k,v|
        begin
          BSON.deserialize(BSON.serialize({"#{k}" => v}))
          true
        rescue BSON::InvalidStringEncoding, BSON::InvalidDocument
          puts "Pruning #{k} from the hash."
          false
        end
      end

      raise "tried and failed to prune with #{[ns, obj, schema]}" if depth > 2
      transform(ns, obj, schema, depth + 1)
    end
  end
end

MoSQL::CLI.run(ARGV)

+1 - anyone know what would cause this? I checked the timestamp that it appears to be failing on and I don't see any issues

looks like there was a PR open to resolve this here: #83 which broke tests.

authors: Winslett dcu jtmarmon

repo: stripe/mosql


text:
chore: update native library versions

Motivation
Keeping up-to-date with stripe-react-native
Summary
iOS to 23.10.0
Android to 20.27.0

as discussed offline, will drop this PR and release with the latest native versions in https://github.com/stripe/stripe-identity-react-native/pull/131

authors: ccen-stripe charliecruzan-stripe

repo: stripe/stripe-identity-react-native


text:
Could not find any matches for com.facebook.react:react-android:+

Describe the bug
After adding the @stripe/stripe-terminal-react-native shown an error
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
   > Could not find any matches for com.facebook.react:react-android:+ as no versions of com.facebook.react:react-android are available.
     Required by:
         project :app > project :stripe_stripe-terminal-react-native

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Please let me know how we can fix that issue on Android.
My dependencies:
"dependencies": {
    "@apollo/client": "^3.8.1",
    "@react-native-async-storage/async-storage": "^1.19.3",
    "@react-native-community/cli": "^13.2.0",
    "@react-native-community/netinfo": "^9.4.1",
    "@react-native-community/toolbar-android": "react-native-community/toolbar-android",
    "@react-navigation/bottom-tabs": "^6.5.8",
    "@react-navigation/drawer": "^6.6.3",
    "@react-navigation/native": "^6.1.7",
    "@react-navigation/native-stack": "^6.9.13",
    "@reduxjs/toolkit": "^1.9.5",
    "@stripe/stripe-terminal-react-native": "^0.0.1-beta.15",
    "deprecated-react-native-prop-types": "^4.1.0",
    "graphql": "^16.8.0",
    "patch-package": "^7.0.2",
    "react": "18.1.0",
    "react-native": "0.70.12",
    "react-native-config": "^1.5.1",
    "react-native-date-picker": "^4.2.13",
    "react-native-device-info": "^10.8.0",
    "react-native-drag-sort": "^2.4.4",
    "react-native-draggable-grid": "^2.1.7",
    "react-native-gesture-handler": "^2.14.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-material-menu": "^2.0.0",
    "react-native-progress-circle": "^2.1.0",
    "react-native-reanimated": "3.5.2",
    "react-native-responsive-dimensions": "^3.1.1",
    "react-native-safe-area-context": "^4.7.1",
    "react-native-screens": "^3.22.1",
    "react-native-splash-screen": "^3.3.0",
    "react-native-svg": "^13.10.0",
    "react-native-touch-id": "^4.4.1",
    "react-native-vector-icons": "^9.2.0",
    "react-navigation": "^5.0.0",
    "react-redux": "^8.1.1",
    "redux": "^4.2.1",
    "redux-thunk": "^2.4.2"
  },

Thanks

@ManiRelavant is this for the latest version of the SDK? can you try upgrading your React Native version and see if that fixes the issue?

authors: ManiRelavant nazli-stripe

repo: stripe/stripe-terminal-react-native


text:
Issue 660: Refactor the UserController to use form validation

Related issue: #660
Methods modified in UserController to follow the controllers guide and to use form validation.
The proper tests cases have been modified and new cases have been added.

Thanks for these changes!

authors: carlspring ptirador

repo: strongbox/strongbox


text:
Add: companies using express

Added Companies using expressjs :white_check_mark:

Thanks, this is great!  I'll make a few fixes after I merge (some broken links and "Express" should be capitalized).

+1 Thanks, this is great! I'll make a few fixes after I merge (some broken links and "Express" should be capitalized). :100:

Why does Exove not fit it? :)

authors: Hanzig crandmck lordKnighton


text:
Latest version to download structurizr-cli

Hi
I'm looking for a static link to download the latest structurizr-cli for my software architecture documentation example.
So far I'm using the following link:
https://static.structurizr.com/download/structurizr-cli.zip
Unfortunately, I get Access Denied.
I see that I can download a specific version via GitHub. But is there a latest version for local installation?
That would be great for my example...:-)
Thanks for your help and this great architecture documentation tool suite!
Kind regards, Patrick

Releases have moved back to GitHub -> https://github.com/structurizr/cli/releases

OK, thanks for your answer.

authors: bitsmuggler simonbrowndotje

repo: structurizr/cli


text:
Honor shapes in C4-Plantuml exporter

This is related to https://github.com/structurizr/export/issues/11 but not exactly.
Now that C4-Plantuml added the robot shape, it would be useful that the exporter honors the Robot shape in styles:
    views {
        styles {
            element "robot_user" {
                shape Robot
            }
        }
    }

That should be translated as the sprite "robot".

@simonbrowndotje that's great!
Note that C4-Plantuml just added the robot shape (sprite) yesterday. Does this change anything?
https://github.com/plantuml-stdlib/C4-PlantUML/issues/244 where you did comment there.

Note that C4-Plantuml just added the robot shape (sprite) yesterday. Does this change anything?

No, that's actually how the above example works ... it's using one of the new robot sprites that were added yesterday.

One more comment: I get the stereotype legend:

I need to add HIDE_STEREOTYPE() to the plantuml to avoid it.
How do you do to not get it?

One more comment: I get the stereotype legend:

Please open a separate issue for the stereotype problem, and be sure to include enough information to reproduce it.

I think something is broken, now despite I added the property c4plantuml.tags, tags are not added for Systems:
    views {
        properties {
            "c4plantuml.tags" "true"
            "plantuml.legend" "false"
        }

Generated:
Boundary(group_0, "Customer") {
  System(XXX, "YYY", "ZZZ", $tags="Software System")

I tried to add the tag both before the braces, and inside with tags.
Before this change, my tags showed up in the $tags string.

It's hard to say what's going on without a full DSL example I'm afraid.

test.dsl:
workspace "Test Product Architecture" "Model of the Test Platform." {

    !identifiers hierarchical

    model {
        group Customer {
            ees_user = person "EES users" "" "users"
            ends_user = person "ENDS user"
            frontend_user = person "FE user"
            webhooks_user = person "Webhooks User" "" "robot_user"
            EAS = softwaresystem "EAS" "Service1" {
                SP = container "Processor" "Something" "Node.js"
                engine = container "Engine" "Processes the data" "Go"

                SP -> engine "Sends data"
                engine -> SP "Send results"
            }

            backend = softwaresystem "Backend" "Backend1" "multi" {
                database = container "DB" "" "MongoDB" "DB"
                app = container "App" "Backend Server" "Node.js"

                app -> database "Uses"
            }

            backend.app -> EAS.SP "Send data"
            EAS.SP -> backend.app "Send results"
        }
    }

    views {
        properties {
            "plantuml.includes" "extra_styles.puml"
            "c4plantuml.tags" "true"
            "plantuml.legend" "false"
        }

        systemlandscape TheSystemLandscape {
            include *
            autoLayout
        }

        theme default

        styles {
            element "DB" {
                shape Cylinder
            }

            element "dataset" {
                background #006400
            }

            element "robot_user" {
                properties {
                    c4plantuml.sprite robot
                }
            }

            element "users" {
                properties {
                    c4plantuml.sprite users
                }
            }
        }
    }
}

stricturizr-TheSystemLandscape.puml:
@startuml
title System Landscape

top to bottom direction

!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
!include extra_styles.puml

AddElementTag("Software System", $bgColor="#1168bd", $borderColor="#0b4884", $fontColor="#ffffff", $sprite="")
AddElementTag("Person,users", $bgColor="#08427b", $borderColor="#052e56", $fontColor="#ffffff", $sprite="users")
AddElementTag("Person,robot_user", $bgColor="#08427b", $borderColor="#052e56", $fontColor="#ffffff", $sprite="robot")
AddElementTag("Person", $bgColor="#08427b", $borderColor="#052e56", $fontColor="#ffffff", $sprite="")

AddRelTag("Relationship", $textColor="#707070", $lineColor="#707070")

Boundary(group_0, "Customer") {
  Person(EESusers, "EES users", "", $tags="Person,users")
  System(Backend, "Backend", "Backend1", $tags="Software System")
  Person(ENDSuser, "ENDS user", "", $tags="Person")
  Person(FEuser, "FE user", "", $tags="Person")
  Person(WebhooksUser, "Webhooks User", "", $tags="Person,robot_user")
  System(EAS, "EAS", "Service1", $tags="Software System")
}

Rel_D(Backend, EAS, "Send data", $tags="Relationship")
Rel_D(EAS, Backend, "Send results", $tags="Relationship")
@enduml

The tag "multi" does not show up in the .puml file.
Just for this to compile - extra_styles.puml:
@startuml

!define FONTAWESOME5 https://raw.githubusercontent.com/plantuml/plantuml-stdlib/master/tupadr3/font-awesome-5
!include FONTAWESOME5/users.puml

'do this only if we're generating C4-puml:
!if (%function_exists("AddElementTag"))
AddElementTag("multi", $shadowing="true")
HIDE_STEREOTYPE()
!endif
@enduml

There's no element style for multi defined in your workspace, so it's being ignored. I've added support for an element style property named c4plantuml.shadow, for example:
element "multi" {
    properties {
        c4plantuml.shadow true
    }
}

Regarding the behavior, with a previous version (tag 0f71abe78aa8 built 9hs ago), there was no need for an element style to get the tag in the system:

Yes, I had to change this because there's a mismatch between how Structurizr treats tags vs how C4-PlantUML treats tags. Since this is an exporter from Structurizr, I decided to switch the semantics to better reflect how Structurizr deals with tags and styling, which provides a more consistent experience across the Structurizr renderer, the PlantUML exports, Mermaid export, etc. The old version used + to create a set of tags, whereas this new version creates a single tag based upon the tags/styles defined in the workspace. If this doesn't work for you, you may want to look at this alternative C4-PlantUML exporter instead.

It's fine, I have everything I need. I just thought that with the previous behavior, I was free to add as many AddElementTag as I needed in an external puml file. Now, you're right that this provides a better user experience at the cost of a little less flexibility.
My only need to add an external puml file is to provide additional includes for extra sprites (eg users from font-awesome-5) and to hide the legend (which I will file a separate issue these days).

authors: dgutson simonbrowndotje

repo: structurizr/export


text:
[REQ] Output Coverage report as LCOV

Summary
It would be nice to have a coverage report file which can be ingested by tools like SonarQube or SonarCloud
Stryker config
Ideally, a new reporter option of lcov would be available.

Wow, that would be cool! 😍
We're preparing to change the inner workings of stryker in order to use mutation switching. It would mean that we'll instrument the code with all mutants at once. It also means that we'll be able to remove the dependency on istanbul (code coverage instrumenter), since we'll be able to collect coverage directly from mutants.
I don't want to add that feature now since we'll be rewriting this core part in the next year. If we were to generate lcov output after the rewrite, it wouldn't be accurate, since we won't be counting lines coverage, branch coverage or function coverage. Instead, we would be counting mutant coverage.
I'm not an expert on the lcov specification. Does it allow for new counters like "mutant coverage"? If so, we could add this feature in the future. If not, I think we should close this issue. Code coverage is not the main focus of Stryker, at best a nice to have by-product.

Can we re-open this now that 4.x is out?

repo: stryker-mutator/stryker-js


text:
🛑 Moodstudios is down

In f4c6baa, Moodstudios (https://moodstudios.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Moodstudios is back up in 34b471b after 10 minutes.

repo: studiovlijmscherp/uptime


text:
🛑 Moodstudios is down

In 1d7e073, Moodstudios (https://moodstudios.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Moodstudios is back up in e8773e4 after 6 minutes.


text:
🛑 Beefs and Beers is down

In b0385cd, Beefs and Beers (https://beefsandbeers.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Beefs and Beers is back up in 6558a0d.


text:
🛑 Bluekens is down

In e20bb49, Bluekens (https://bluekenstruckenbus.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bluekens is back up in bbf836f.


text:
🛑 Moodstudios is down

In 8280ea4, Moodstudios (https://moodstudios.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Moodstudios is back up in f68d85b after 8 minutes.


text:
20180720 Testing Patterns in Go

标题：Testing Patterns in Go
原文链接：https://eric-fritz.com/articles/testing-patterns-in-go/
译者自己根据原文翻译，译文保存为 markdown 格式，并附上尾部的签名。
---
via: https://eric-fritz.com/articles/testing-patterns-in-go/

作者：[eric fritz](https://eric-fritz.com/resume/)
译者：[译者ID](https://github.com/译者ID)
校对：[校对者ID](https://github.com/校对者ID)

本文由 [GCTT](https://github.com/studygolang/GCTT) 原创编译，[Go 中文网](https://studygolang.com/) 荣誉推出

我来翻译

repo: studygolang/GCTT


text:
Link liboqs statically

See: https://github.com/open-quantum-safe/liboqs-go/issues/25

Added explanation on how to do so in fb93e83dbddd92b60da5feef68f5d0230d4a3684


text:
🛑 Panel is down

In 0792cdf, Panel (https://portal.xoro-hosting.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Panel is back up in f60900d after 41 minutes.

repo: stxrlite/xoro-updates


text:
🛑 Panel is down

In 7a4e75a, Panel (https://portal.xoro-hosting.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Status is back up in 2a0409b after 32 minutes.


text:
🛑 Panel is down

In 2ee8a01, Panel (https://portal.xoro-hosting.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Panel is back up in 6548140 after 40 minutes.


text:
🛑 Austin, TX is down

In 9ed4835, Austin, TX (102.129.215.151) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Austin, TX is back up in c08ba96.


text:
Typescript prop validation from .attrs

Not sure if I'm using styled-system incorrectly or if this isn't possible, but I'm currently unable to infer the theme's props when calling styled-system props from the .attrs function
I've constructed an example in code-sandbox here
import { color, ColorProps } from "styled-system";
import { styled } from "./styled-components";
import { theme } from "./theme";

const Box = styled("div")<ColorProps<typeof theme>>`
  ${color}
`;

// theme's colors are "primary" and "secondary"
// Is there a way to ensure type-safety when declaring color
// from the ".attrs" function?
const PrimaryBox = styled(Box).attrs({ backgroundColor: "primary" })``;

// This should throw a ts error since backgroundColor is not a key of theme colors
const TypescriptErrorBox = styled(Box).attrs({ backgroundColor: "primaryy" })``;

I'm wondering if this is more an issue with styled-components than styled-system, but in all cases, I'd love to inject some knowledge into .attrs.

repo: styled-system/styled-system


text:
make Faker::Commerce.price configurable

Hello. It's not an issue
I'm trying to use price method and for our tests we have some limitations
price can't be zero.. I check the source and it just return value from the range 0..100
I propose to make it configurable for example pass some params like range
for example Faker::Commerce.price(1..10)
Just want to know how make it right and is it suitable or not ?

:+1: Awesome

Hm. I think README also need some update ..

repo: stympy/faker


text:
Create link_sharepoint_folder_file.yml

Description
Add coverage for sharepoint folder shares which contain a single suspicious file.
Associated samples

Sample 1
Sample 2

Associated hunts

Hunt 1

/update-test-rules

LA in the rule means this won't go into test rules, will leave deployed on shared samples for awhile and see how it goes

low volume in shared samples. logic is pretty tight.  ready for review

repo: sublime-security/sublime-rules


text:
How to make stdlib stubs work within a virtualenv

(Discussion moved from here.)
Aim: show lsp_hover docstrings for both pip-installed modules and stdlibs.
To achieve the latter, I made pyi-stubs. This works. 👌
However, once I switch to a virtual environment, that is, provide the venvPath and venv options in pyrightconfig.json, then the stdlib docstrings disappear. Everything else works: the packages installed in the virtual environment show their docstrings, as do the custom editable installs I put in the extraPaths (pyright doesn't seem to pick those up natively otherwise). It is only the pyi-stubs of the stdlib which don't show up.

See: pyrightconfig.json and LSP-pyright.sublime-settings .

BTW: If there are ways in which I can easily debug and troubleshoot this myself, I'm happy to do so. Still a newcomer to this project and not quite sure where to start.

It seems that pyright prefers its own typeshed stubs for stdlib but I am not sure. Set python.analysis.logLevel to Trace will provide more information for debugging. But since I don't know what's the expected output, I can't interpret them.
One thing works on my test is put stdlib stubs into typings/ under project root, but we don't want to do that for every project for sure...
One person may have a same issue: https://github.com/microsoft/pyright/issues/7016#issuecomment-2042476674

@jfcherng python.analysis.logLevel in the LSP-pyright.sublime-settings: should I see this output under "LSP: Toggle Log Panel" or elsewhere?
I don't see any difference right now between "Information" and "Trace" in that Log Panel output.

@jfcherng python.analysis.logLevel in the LSP-pyright.sublime-settings: should I see this output under "LSP: Toggle Log Panel" or elsewhere? I don't see any difference right now between "Information" and "Trace" in that Log Panel output.

either in the panel or the console.

I looked into the logs. It seems in all cases this directory is loaded
~/Library/Caches/Sublime Text/Package Storage/LSP-pyright/21.7.1/language-server/node_modules/pyright/dist/typeshed-fallback/stdlib
and the custom stdlib-pyi directory is listed as part of the extraPaths in the logs but then not considered.

When I have venv enabled, then it ignores the docstrings of built-ins all-together, including os and json which have docstrings as shipped with Python. ❌
When I don't have venv enabled, then it reads the docstrings from the source (e.g. os.py and json/__init__.py) where its present ✅; and where not (e.g. str.strip) it shows no docstrings. ❌
When I manually edit ~/Library/Caches/Sublime Text/Package Storage/LSP-pyright/21.7.1/language-server/node_modules/pyright/dist/typeshed-fallback/stdlib/builtins.pyi and add docstrings to strip, then it shows up correctly. ✅

So the only very hacky solution I can think of right now is to overwrite … /typeshed-fallback/stdlib/builtins.pyi and the like with versions with docstrings; it seems there must be a better way?

OK. I see that, for Pylance, it puts users' extraPaths before bundled typeshed, so user's stdlib stubs works... while in Pyright, the bundled typeshed always is the first.
  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892) Search paths for file:///d%3A/Repo/ST-AutoSetSyntax'}
:: [20:20:31.195] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Sublime Text\\Package Storage\\LSP-pylance\\ms-python.vscode-pylance~2024.4.105\\extension\\dist\\typeshed-fallback\\stdlib'}
:: [20:20:31.195] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   d:\\Repo\\ST-AutoSetSyntax'}
:: [20:20:31.195] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   D:\\Repo\\ST-AutoSetSyntax\\stubs'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   d:\\Repo\\ST-AutoSetSyntax\\typings'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   C:\\Users\\jfcherng\\AppData\\Roaming\\Sublime Text\\stubs'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Roaming\\Sublime Text\\typings'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Sublime Text\\Package Storage\\LSP-pylance\\resources\\typings\\stdlib'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Sublime Text\\Package Storage\\LSP-pylance\\ms-python.vscode-pylance~2024.4.105\\resources\\typings\\sublime_text'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Sublime Text\\Package Storage\\AutoSetSyntax\\libs-py38@windows_x64'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Program Files\\Sublime Text\\Lib\\python38'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Program Files\\Sublime Text\\Lib\\python3'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Roaming\\Sublime Text\\Lib\\python38'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Program Files\\Sublime Text\\Packages'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Roaming\\Sublime Text\\Packages'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   d:\\Repo\\ST-AutoSetSyntax\\typings'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Sublime Text\\Package Storage\\LSP-pylance\\ms-python.vscode-pylance~2024.4.105\\extension\\dist\\typeshed-fallback\\stubs\\...'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Sublime Text\\Package Storage\\LSP-pylance\\ms-python.vscode-pylance~2024.4.105\\extension\\dist\\bundled\\stubs'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Programs\\Python\\Python312\\DLLs'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Programs\\Python\\Python312\\Lib'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   c:\\Users\\jfcherng\\AppData\\Local\\Programs\\Python\\Python312'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   d:\\Repo\\ST-AutoSetSyntax\\.venv'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892)   d:\\Repo\\ST-AutoSetSyntax\\.venv\\Lib\\site-packages'}
:: [20:20:31.196] <-  LSP-pylance window/logMessage: {'type': 3, 'message': '(34892) Adding fs watcher for library directories:\n file:///c%3A/Users/jfcherng/AppData/Local/Programs/Python/Python312/DLLs\nfile:///c%3A/Users/jfcherng/AppData/Local/Programs/Python/Python312/Lib\nfile:///c%3A/Users/jfcherng/AppData/Local/Programs/Python/Python312\nfile:///d%3A/Repo/ST-AutoSetSyntax/.venv\nfile:///d%3A/Repo/ST-AutoSetSyntax/.venv/Lib/site-packages'}

Pylance auto puts extension/dist/typeshed-fallback/stdlib as the first in the final extraPaths as well, but it seems to combine the bundled's typeshed's results with users' while Pyright's just stop there probably.

I may just suggest to ask the pyright official: I have a custom stdlib stubs with docstrings (but it doesn't have type annotation unfortunately). How to use it with the builtin stdlib typeshed-fallback?

A finding is that, by revise the extension of our stdlib stubs from .pyi to .py, Pyright seems to consider they are source codes with docstrings and adds typeshed's type annotations to it and resulting in a perfect output.
stdlib-win64.zip

Thanks @jfcherng. I opened a discussion at pyright. It seems to me, pyright should consider including native support for builtin docstrings as manual generation seems somewhat difficult to maintain.

I think https://github.com/sublimelsp/LSP-pyright/issues/325#issuecomment-2085239473 is 99% perfect, unless you want to see stdlib's real source codes.

authors: jfcherng mikez

repo: sublimelsp/LSP-pyright


text:
Proposal: finer grained connectivity and multiple cable driver configuration

An enhancement proposal that outlines finer grained connectivity and multiple cable driver configuration based on https://github.com/submariner-io/enhancements/pull/4
Signed-off-by: Maryam Tahhan mtahhan@redhat.com

Thanks all for the reviews.
Closing this PR as the community sees this EP as two separate work items and there's an EP already in progress that breaks the first part of this work down. As regards the second item more discussion, design and real life use cases are needed.

repo: submariner-io/enhancements


text:
Non-ascii characters in path crash app on windows

At the moment when farmer starts app crashes.
You can go through the path setup, specifying plot size and user can see the mnemonic

For now, when we encounter this issue, let's advice our users to not give a path that is including non-ascii characters.
In the long run, we should address this. Probably related to tauri, so I will open an issue on their repo as well.

Confirmed on macos and linux, double-checked that this issue is related to Windows only

Track from here: https://github.com/subspace/subspace/issues/743

repo: subspace/subspace-desktop


text:
Error: No wrapper for core module path

After installing via npm on Windows, any call to browserify will throw
Error: No wrapper for core module path
Callstack:
browserify\lib\wrap.js:336:19
browserify\lib\wrap.js:312:14
browserify\lib\wrap.js:290:16
browserify\lib\wrap.js:324:21
browserify\lib\wrap.js:49:10
browserify\lib\wrap.js:14:12
browserify\index.js:49:13

The slashes are going the wrong way.

Well I'm on Windows in this case. They still use backslash instead of forward slashes as path separator. Shouldn't make a difference however?

I haven't tested browserify at all on windows and I make the assumption that the path separator is / all over the place. I'm open to pull requests that fix these assumptions for windows land.

As far as I know, the browser and Node.js understand forward slashes just fine. Do you think that the path seperator is the cause of the problem here?

I have a version of browserify running on Windows (I'll see if I can pull it together into a pull request). The issues I had to fix was with how it created the giant JS file, not with actual requires.
@milgner I think the problem above have to do with the fact that browserify is probably doing some incorrect lookup. Can you post a small example that exhibits this problem and I can try and run it through my version of browserify, and will let you know if it works.

authors: itay milgner substack

repo: substack/node-browserify


text:
TOC still shows the wrong element as active

This happens under all browser on my PC.

You mean it's one item off? Or generally broken?

One off. Some pixels too high on the left side...

It goes off for me when I zoom in into the page. But with 1:1 ratio it works predictable.

No zoom configuration works for me.

Ah you are right 100% works in chrome.

But not in Edge.

Works for me with
  this.getScrollPosition = function() {
    var scrollableEl = this.getScrollableElement();
    return $(scrollableEl).scrollTop() + 1;
  }

Maybe you should add this 1px where you evaluate this for the active element.

That would fix it for 99.9% I think... let's try it for a while... I think the problems arise from some float rounding, when we don't have even pixels. Which may happen on zoom or in some browser's offset calculations.

Even 0.1 works for me... with all zoom factors. I have the feeling that it is really just a numerical residuum... not a big error. Which would be classical in numerical computing...i.e. sometimes the exact discrete value is not a good choice when you are dealing with fractions and limited registers.

It might even be that 1px is an upper bound for the numerical error (considering a truncate of 0.x).

authors: michael oliver----

repo: substance/substance


text:
Citations of figures with part labels

I noticed that at present there is no means of updating figure citations to refer to specific parts of the figure. By this I mean
Figure 1A
Figure 1B-C
Figure 1A, 1B, 1C
and other such permutations. One can only type a letter after the citation link.

Ideally, the text of a figure citation should be in some way editable to permit adding part labels.
This would not require a change in the target for the citation link, unless there was some support built for linking to specific parts of a figure (at present this isn't something required by eLife at least, though it would be potentially very useful!).

Well this is actually another reason why we should have individual figure panels. ;)
Manually adding A/B/C inside the reference label is not a good idea in my opinion. Either we generate the label automatically, or we don't. But mixing it, will cause a lot of friction.

Please be aware while thinking about this that citing Figure 1A-D, Figure 1Ai, Figure 1Ai-iv and Figure 1B,C,D are also all perfectly valid ways of citing a figure!
Currently, we'd link all the text within the citation. I'm not sure if I like the idea of leaving the panel labels outside; might look messy.

authors: JGilbert-eLife michael

repo: substance/texture


text:
Can't find updated mint-token pallet

Is there an existing issue?

[X] I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

[X] This is not a support question.

Content request
Hello, I am trying to practice with Substrate and was looking for the pallet associated with this mint-token tutorial
However, the link to the pallet goes to an outdated + archived version.
I am having a lot of errors that I am unable to debug because of the conflicting documentation and associated code in the outdated repo.
Are you willing to help with this request?
Yes!

@sacha-l , I did a quick sanity check and the old example (v3) does compile. How much work would it be to update/create a new version of the example? I thought at first we might be able to just swap out Cargo.toml file to get new dependencies, but it seems that there's a little more to it than that.

It wouldn't be that much work, though we would need to create a new home for example pallets like that in our docs org. Right now, as @anishnaik points out the mint-token pallet lives in a read-only archived repo.
That said, as I'm looking into this I question the actual value that this guide provides. I liked it originally because its meant to be an initiation for new comers and the simplicity of what it does makes it a good starting point for complete beginners: just using a storage map to map accounts to some quantity of type Balance. And users learn to include a minting and transfer function. However, I fear that its simplicity may be misleading and raise questions (e.g. the T::Balance type).
I suggest either we rework it as is (and possibly make it more of a tutorial) or rewrite the guide completely to focus on one or the other between:

Basic patterns for using storage maps and their APIs
Or, using different Balance and Currency configurations to handle token minting

What do you think?

@sacha-l thank you for your response. I think this is a good tutorial for people who are migrating from a different chain like Ethereum. The idea of tokens is familiar to people from other ecosystems and this tutorial/guide can aid in providing that bridge. I do believe that an additional level of complexity would help in making improvements to this tutorial worthwhile. A full "ERC20-like" tutorial would be cool. Additionally the T::Balance aspect threw me off but explanations of that kind of stuff is what will newcomers understand the nuances of Substrate development. The interoperability of various pallets is something I think should be touched upon more in the documentation (but that besides the point 😄).

Have you had a look at this tutorial:
https://docs.substrate.io/tutorials/smart-contracts/build-a-token-contract/
It uses ink! and the contracts pallet, bu† you might find it interesting to
try.
On Thu, 18 Aug 2022 at 08:57, anishnaik @.***> wrote:

@sacha-l https://github.com/sacha-l thank you for your response. I
think this is a good tutorial for people who are migrating from a different
chain like Ethereum. The idea of tokens is familiar to people from other
ecosystems and this tutorial/guide can aid in providing that bridge. I do
believe that an additional level of complexity would help in making
improvements to this tutorial worthwhile. A full "ERC20-like" tutorial
would be cool. Additionally the T::Balance aspect threw me off but
explanations of that kind of stuff is what will newcomers understand the
nuances of Substrate development. The interoperability of various pallets
is something I think should be touched upon more in the documentation (but
that besides the point 😄).
—
Reply to this email directly, view it on GitHub
https://github.com/substrate-developer-hub/substrate-docs/issues/1360#issuecomment-1219664408,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AV7T7PNDRVYN6U5U7UKF77TVZZMM5ANCNFSM55PM4T2A
.
You are receiving this because you commented.Message ID:
@.***>

--
Parity Technologies is a limited company registered in England and Wales
with registered number 09760015 and registered office at c/o Ignition Law,
1 Sans Walk, London, England, EC1R 0LT. This message is intended solely for
the addressee(s) and may contain confidential information. If you have
received this message in error, please notify us, and immediately and
permanently delete it. Do not use, copy or disclose the information
contained in this message or in any attachment. For information about how
we process data and monitor communications please see our Privacy policy
(https://www.parity.io/privacy/ https://www.parity.io/privacy/)and for
terms of use please see our Terms of Use policy
(https://www.parity.io/terms/ https://www.parity.io/terms/).

authors: anishnaik lisa-parity sacha-l

repo: substrate-developer-hub/substrate-docs


text:
Docker images for CI outlined in internal docs and contributor guide

@NukeManDan @imadarai
I finally get the credential to use paritytechnologies organization to push the docker image. After pushing, it will also be shown at:
https://hub.docker.com/u/paritytechno
Note that I have updated the credentials of docker login in github environment secrets, so the CI in main and all other branches pushing to jimmychu0807/substrate-docs will fail.
Originally posted by @jimmychu0807 in https://github.com/substrate-developer-hub/substrate-docs/pull/397#discussion_r734213613

Who maintains this image? #1051 is related - @jimmychu0807 @TriplEight  any idea?

Please see details in #1051, we don't have creds from this dockerhub registry.

authors: NukeManDan TriplEight


text:
Clicking a component in the overlay should always highlight and vertically center in the tree view

Some sort of bug with this

Fixed in develop.
Ignore flicker, I have gap between yellow components, so selection jumps to MultiPanelComponent.
https://user-images.githubusercontent.com/15266737/204687644-f2a90abf-a80e-4879-a5c5-60573f5feaf7.mp4

authors: dikadk sudara


text:
Unknown version of primeng-extensions on Yarn

On version 2.0.16 of the jhipster-primeng, package.json contains the primeng-extensions with version 0.0.17, which is not available during yarn install, after adding PrimeNG on a latest jHipster version 4.13.1.
I had to select an available version.

Thanks. Recently there is an issue with staticInjector of primeng-extensions library. Now the library is updated with latest version.

repo: sudheerj/generator-jhipster-primeng


text:
"Install lint-staged at the package root" solution requires extra works?

I checked out the description and installed husky, lint-staged, prettier, stylelint in project root, and configured hooks in .lintstagedrc.yml, however they didn't work.
My dir structure:
|-- .git
|-- .gitignore
|-- .lintstagedrc.yml
|-- .prettierrc
|-- node_modules
|-- package.json
|-- yarn.lock
|
|-- my-project-1
|
`-- my-project- 2
    |-- package.json
    |-- src
    |   |-- a
    |   |     |-- index.ts
    |   |     `-- index.less
    |   `-- b
    |          `-- index.ts
    `-- yarn.lock

.lintstagedrc.yml
linters:
  my-project-2/**/*.{ts,tsx,json}:
    - prettier --config ./.prettierrc --write
  my-project-2/**/*.{css,less}:
    - stylelint --fix

I tried to add husky configs in package.json and it still didn't solve the problem:
{
   "husky": {
      "hooks": {
        "pre-commit": "lint-staged"
      }
   },
   ...
}

I wonder if I missed something, or we should only install these dependencies and configure .lintstagedrc in project root without some extra works?

Ok, I figure out what's going on, it seems that husky didn't install hooks in .git/hooks at all. I reinstalled it again and set husky configurations in package.json, it works properly.
Shall we add descriptions about adding husky configurations in package.json since someone new like me may be confused at first ? Besides, lint-staged removed advanced configuration since 9.0, we need to update .lintstaged.yml
from :
linters:
  my-project-2/**/*.{ts,tsx,json}:
    - prettier --config ./.prettierrc --write
  my-project-2/**/*.{css,less}:
    - stylelint --fix

to:
my-project-2/**/*.{ts,tsx,json}:
  - prettier --config ./.prettierrc --write
my-project-2/**/*.{css,less}:
  - stylelint --fix

repo: sudo-suhas/lint-staged-multi-pkg


text:
bad-txns-inputs-missingorspent (not in memory pool)

https://www.reddit.com/r/BitcoinBeginners/comments/7p1drm/what_does_status_0unconfirmed_not_in_memory_pool/

Transaction cannot be broadcast immediately, bad-txns-inputs-missingorspent
2020-12-06T18:50:01Z [123zeze] Submitting wtx d51953f12515c69a15b22b57b91a9f7b64c5de4e6b5b26845a205b276389cc84 to mempool for relay
2020-12-06T18:50:01Z [123zeze] CommitTransaction(): Transaction cannot be broadcast immediately, bad-txns-inputs-missingorspent

try -rescan
Volbil, [06.12.20 14:18]
Either you trying to spent unsynced output, or it was orphaned
Volbil, [06.12.20 14:19]
This is my assumption

MarkUnusedAddresses: Adding inactive seed keys failed
2020-12-07T03:31:01Z [123zeze] AddToWallet 466f89484e86bcf9f4e12a96a35ad2e62b36b0722fcd1b019012ab5fcd7dc077  new
2020-12-07T03:31:03Z [123zeze] Still rescanning. At block 5476074. Progress=0.677668
2020-12-07T03:31:03Z [123zeze] MarkUnusedAddresses: Adding inactive seed keys failed

after -rescan it fixed.

repo: sugarchain-project/yumekawa


text:
Cannot view what is selected when disabled

I've noticed a UX issue when you set the select-picker to disabled. In this case, the button for the select-picker is disabled, so you cannot open the select-picker "drop-down". Therefore, you can't see what is selected specifically, just "n Items Selected". Could it be changed so that you can click the select-picker button but not edit what is selected?

Technically it can be done. I'll mark this as a feature.
Anyone wana take up the challenge?

Fixed in 2.3.0

repo: sukima/ember-cli-select-picker


text:
Collection form configures review workflow

Why was this change made?
Allow configuration of the review workflow on collections.
connects to #348
This PR doesn't quite fully implement what's shown in the mockup and described in the design doc.  In particular:

the enable/disable button is just a basic radio button instead of the cool switch in the mockup (because i wasn't sure how to do that, and wanted to get everything else working).
the reviewers list field isn't hidden based on whether the radio button is enabled (i wasn't sure how to implement that idiomatically in this code base).

I'm happy to circle back on those two shortfalls in this PR, or in a follow-on PR, whichever seems most appropriate.  Happy to write the ticket for the next part, if doing that in a separate PR is preferable.
How was this change tested?

new unit tests
manual testing locally

Which documentation and/or configurations were updated?
n/a

re: the things that need to be revisited, per the PR description:
mockup

current implementation

from the design doc

Table 6: Review Workflow fa-pencil []

Status, with options of "On" or "Off"
Reviewers

Only display reviewers if the workflow is on

follow on work written up here:  https://github.com/sul-dlss/happy-heron/issues/402

repo: sul-dlss/happy-heron


text:
Server Error 500 saving changes when translating a page

When I try to save a new translation of a page, Sulu returns the server error 500, changes are sometimes dismissed.

Related to #906

@crash0verride it was a server issue, should be fixed now. But please keep an eye on. thx.

authors: berndhep chirimoya crash0verride

repo: sulu-cmf/sulu


text:
No feedback on saving category with duplicate key (No error is displayed)

Q
A

Bug?
yes

New Feature?
no

Sulu Version
1.6.18

Browser Version
FF 59

Actual Behavior
Adding a category with an existing key response a error but this error is not displayed to the user
Expected Behavior
Error is displayed to the user.
Steps to Reproduce

Add category with a key
Add a second category with same key

Possible Solutions
Check in Frontend is:
if (jqXHR.status === 409 && jqXHR.responseJSON.code === 2002) {
but code in response is 0.
What correct? The if or the code in response json?

2002 seems to be the error for the other keywords (the one shown in the table). But nevertheless this is a bug, that needs to be addressed...

repo: sulu/sulu-standard


text:
Theme doesn't work with hexo 2.8.3

when I run hexo server I get this:
[error] { name: 'HexoError',
  reason: 'incomplete explicit mapping pair; a key node is missed',
  mark:
   { name: null,
     buffer: 'categories: Categories\nsearch: Search\ntags: Tags\ntagcloud: Tag Cloud\ntweets: Tweets\nprev: Prev\nnext: Next\ncomment: Comments\narchive_a: Archives\narchive_b: Archives: %s\npage: Page %d\n\u0000',
     position: 163,
     line: 9,
     column: 19 },
  message: 'Process failed: languages/default.yml',
  domain:
   { domain: null,
     _events: { error: [Function] },
     _maxListeners: undefined,
     members: [ [Object] ] },
  domainThrown: true,
  stack: undefined }

then I delete languages/ folder and get this:
<%- partial('_partial/head') %>
<%- partial('_partial/header') %>
<%- body %>
<%- partial('_partial/sidebar') %>
<%- partial('_partial/footer') %>
<%- partial('_partial/after_footer') %>

Could you help?

Now it supports Hexo 3.x...


text:
Missing command in guide for resetting application permissions

Hey Sun, I just noticed that the guide for resetting application permissions is missing the command for resetting all the permissions for a single app. Can't add the section to the guide myself right now, that is why I am opening this issue.
… reset All ApplicationID works for me (tested on macOS  11.3.1).

@7aqdxe6f you really read those guides thoroughly! 🤣
You're absolutely right! I created a PR for that: #111

Thanks guys! Has one of you tested the PR on Catalina?

I haven't, but you can easily find those commands in guides (1) (2) for Catalina, so I assume there's no reason for it to not work 😉

Cool, just tried on Catalina and it works. Will merge shortly.

Interesting. I didn't even think about searching for the command on the web. I just thought that it would make sense for this functionality to exist and then tried it out on my Mac. (Reset the permissions of a bunch of apps during testing though…)

Adressed in PR #111.

authors: 7aqdxe6f AmadeuszL sunknudsen

repo: sunknudsen/privacy-guides


text:
Unwanted exception - SupabaseException: supabase_url is required

Describe the bug
I copied the 'Initializing' code snippet from Supabase Python docs.
Inserted my URL and API Key as requested.
But I'm still facing an exception.
When trying out snippets from the docs, we should not face any unwanted exceptions.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://supabase.com/docs/reference/python/initializing'
Click on 'copy' button in the code snippet and paste in your Python notebook
Fill in your URL and API Key in the snippet
See error

Expected behavior
No exceptions should appear when using code from the docs as it is. If any, then notes should be made in the docs itself.
Screenshots
Pasted above
Desktop (please complete the following information):
Colab notebook
pip install Supabase was run

Hi @adityaraute, you should create a project by going to https://supabase.com/ you will be redirected to a page where you will get project url and key of your project which you have to use in your code.
Alternatively if you have already created project you can go to settings of project and under API find both url and keys
FYR.

Hey @adityaraute,
Thanks for the query! As @devilsaint99 mentioned you'll need to copy over the appropriate  supabase  URL key from settings > API
I've also tested it locally and there should be no exceptions thrown on the latest version. Do let me know if this is not the case for you though.
Thanks devilsaint99 for jumping in. Appreciate your detailed response!
Thanks!

repo: supabase-community/supabase-py


text:
Local environment uses en_US.UTF-8 locale, cloud uses C.UTF-8

Bug report
Describe the bug
The local environment created by supabase start creates a database with a locale of en_US.UTF-8 whereas the Supabase cloud database is created with a locale of C.UTF8.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

Run supabase start
Dump local database.
Create a Supabase cloud project.
Dump cloud database.
Compare the difference.

Expected behavior
I would expect them to be the same because a different locale means that Postgres sorting, string functions, pattern matching and other aspects of the database can differ in varying degrees.
Screenshots
None.
System information

OS: Linux
Browser: none
Version of supabase-cli: 1.35.0
Version of Node.js: 16.18.0

Additional context
I am betting this is caused by the locale of my desktop Linux system being set to en_US.UTF-8. However, I don't think that changing my system's locale should be the solution.

One thing I tried that didn't work: LANG=C.UTF-8 LC_ALL=C.UTF8 LANGUAGE=C.UTF8 npx supabase start

I was going to try and just use the cloud database for our developers, but I see that there is no way to run supabase db reset against the remote cloud db...

repo: supabase/cli


text:
Unable to deploy edge function (with axios) after upgrading the CLI

Describe the bug
I upgraded Supabase CLI on my machine to the latest version and it does not allow me to deploy my edge function. This goes away if I remove axios as a dependancy.
To Reproduce
Steps to reproduce the behavior:

Create a new edge function
Import axios from https://esm.sh/axios@1.6.7. I use import map but I doubt that has an effect here.
Try deploying with supabase functions deploy my-func --no-verify-jwt
See error

Expected behavior
The edge function should deploy without any errors which it does if I remove the axios dependancy.
System information
Rerun the failing command with --create-ticket flag.

Ticket ID: 86d01ebc550c4f12ba808a63efbe4307
Version of OS: macOS Sonoma 14.4
Version of CLI: v1.148.6
Version of Docker: v24.0.6
Versions of services:
SERVICE IMAGE      │        LOCAL         │  LINKED
supabase/postgres      │ 15.1.0.147           │ 15.1.0.12
supabase/gotrue        │ v2.143.0             │ v2.143.0
postgrest/postgrest    │ v12.0.1              │ v10.2.0
supabase/realtime      │ v2.25.66             │ -
supabase/storage-api   │ v0.46.4              │ v0.48.2
supabase/edge-runtime  │ v1.38.0              │ -
supabase/studio        │ 20240301-0942bfe     │ -
supabase/postgres-meta │ v0.79.0              │ -
supabase/logflare      │ 1.4.0                │ -
bitnami/pgbouncer      │ 1.20.1-debian-11-r39 │ -
darthsim/imgproxy      │ v3.8.0               │ -

@muezz I think if you use esm.sh's axios you need to also import the xhr as a polyfill. Try adding this import to the top of your function's source file.
import "https://deno.land/x/xhr@0.1.0/mod.ts";

You can try directly importing axios from npm: ie. import axios from "npm:axios@1.6.7"
That should work without needing any polyfills.

@laktek I actually ended up removing axios as a dependancy as I was in a hurry to deploy the functions. I will try it out when I need to use axios again.
If this is indeed not a bug and something that you have to do (I mean importing xhr), let me know and I will close this ticket.

yeah, our recommendation would be to use npm:axios if you need to use it.
I will close this issue since there's no fix needed from our end.

authors: laktek muezz

repo: supabase/edge-runtime


text:
Feature/support mac M architecture

What kind of change does this PR introduce?
Add support for building on a mac with the M-series processors.
What is the current behavior?
The command
docker buildx build \
  $(yq 'to_entries | map(select(.value|type == "!!str")) |  map(" --build-arg " + .key + "=" + .value) | join("")' 'ansible/vars.yml') \
  --target production \
  --tag 'custom_supabase_postgres' \
  --platform 'linux/arm64/v8,linux/amd64' \
  --load \
  .

Fails with unsupported architecture because aarch64 is not supported.
Please link any relevant issues here.
What is the new behavior?
It builds on mac with the M1 processor.
Additional context
I've also documented how to quickly build multi-arch images locally.

@jhf I will be working on these Dockerfiles again within the next 2 weeks, and will come back and look at your PR and try to integrate it. Thank you!

authors: jhf samrose

repo: supabase/postgres

license: PostgreSQL


text:
Contributing

Hello, I would like to contribute

Is there any requirements to setup the project locally ?
Any required steps before building the Repo ?

Thank you.

@elrhomariyounes  no requirements other than the nuget packages defined in the project, but visual studio will handle those for you.
That and docker if you want to do local development!

Superb, I will give it a try and start looking in to it. Make some samples or if there is any known issues.

Hello @acupofjose, I'm very motivated to give a try the realtime client. There is a separate repo (realtime-csharp) ? Thank you.

@elrhomariyounes there has been one kindly provided by @kiwicopple - I'll get it initialized and send you a message when it's ready for contributions!

@elrhomariyounes please see https://github.com/supabase/realtime-csharp as the repo to contribute to! It is mostly stubbed at the moment, but should be more than enough to work with!

authors: acupofjose elrhomariyounes

repo: supabase/supabase-csharp


text:
Add line highlighting

Users can now click on the line numbers to highlight a line. They can share the link of the page and visitors will be scrolled to the line. The way this works is by storing the file number and line number in the hash of the URL.
Hash: #1L6
Will highlight the first file's 6th line.
https://user-images.githubusercontent.com/32761424/103143947-96237900-46ee-11eb-939c-39adeba24b87.mp4
Resolves #39

Hey this looks awesome, could you retarget the PR to the development-v1.3.0 branch and include a CHANGELOG line perhaps? 👍

Alright I did as you asked. I also had time to think about the code and I added some improvements. My reference for this feature was GitHub's line highlighting. Every time the URL's hash gets updated, you will be scrolled to that line except if you click a line number.

Sounds pretty good I'll take a look at it somewhere this weekend and merge it!

Alright, I'll probably end up making some changes before then.

Perfect, thank you. A 1.3 release will be upcoming somewhere in the next weeks with this included.

Perfect, thank you. A 1.3 release will be upcoming somewhere in the next weeks with this included.

authors: erlliam supakeen

repo: supakeen/pinnwand


text:
Revert "Fixed many problems and added some features"

Reverts supasate/yosh#3

I fixed the setup.py and added a new features.

I already fixed it for you. It's already merged to master branch. You can send new features as a new PR.

authors: YuliangTan supasate

repo: supasate/yosh


text:
CPU and RAM usage metrics empty for DigitalOcean nodes

Not sure if this is supposed to work with the current DO provider, but might as well track the feature.
Currently:

This is an issue currently affecting all providers. Heapster/InfluxDB is the culprit -- Supergiant gets an error similar to the one mentioned here when trying to pull metrics from Heapster.

This is resolved with the new UI.

authors: FestivalBobcats TheKLARKEN lohmander

repo: supergiant/supergiant


text:
Expose autofocus option on SuperEditor

Issue
When using SuperEditor with other widgets, SuperEditor is either claiming focus automatically (keyboard mode) or it does not (IME mode).
Since SuperEditor can be with other widgets within a given view, the option for autofocus should be left for the user.
Additional Context:
Currently the autofocus is not consistent between IME and Keyboard:

For Keyboard, the default is true:
https://github.com/superlistapp/super_editor/blob/47e05fcfbc4f9e5e7a21357ef60dcb0ce48ee814/super_editor/lib/src/default_editor/document_input_keyboard.dart#L85-L92

For IME, the default is false:
https://github.com/superlistapp/super_editor/blob/47e05fcfbc4f9e5e7a21357ef60dcb0ce48ee814/super_editor/lib/src/default_editor/document_input_ime.dart#L316-L323

I took a look at other Flutter widgets including TextField, Checkbox, Radio, Slider, and EditableText. They all take an autofocus property, so this seems like a reasonable expectation for SuperEditor.

authors: matthew-carroll osaxma


text:
Consuming dropped files is too cumbersome

Currently there are three separate ways to consume dropped content

File URI (desktop)
Actual content (desktop, mobile)
Virtual files (mac, windows, iOS)

Which of these (or a combination) need to be handled depends on platform and source application.
This needs to be streamlined. There should be unified API to consume dropped content that would provide the highest possible fidelity by default.

Fixed via https://github.com/superlistapp/super_native_extensions/pull/47.


text:
Optional 'Auto-add (CONT'D) to PDF' feature

'Auto-add (CONT'D) to PDF' could be a very useful tool, depending on writer's preference.
There are those who always use the (CONT'D), and those who are writing a contemplative story, or who just don't like that dialogue reprises include the (CONT'D). That's why the necessity of making it optional.
Displaying the various (CONT'D)s on the Fountain file itself might cause headaches to the devs or practical issues to the users, but having them displayed on the PDF preview / export - depending on how the toggle is set - is definitely what I am suggesting here.
I don't know if it can be ported by the develoipers, but there's a pull request for VS Code's Better Fountain which seems to address this very improvement.

We currently use the Afterwriting library for rendering the PDF preview and export. The most straightforward solution would be if there were a way to toggle automatic (CONT'D) via the library options, though I don't see this as an option. There is an issue that mentions a feature, but it doesn't have a lot of details. It might be better to move the conversation there and see what their team thinks about it.
I'm personally somewhat in agreement with John August's argument that use of (CONT'D) is context sensitive enough that it's better to do manually. However, I could see it being useful if there is a well-enough accepted set of rules on when CONT'D should be automatically added.

I think the only one that should be automatic is the page break. Modern
conventions don’t require them when action breaks up a character’s
dialogue.
On Wed, Mar 27, 2019 at 07:12 superlou notifications@github.com wrote:

We currently use the Afterwriting
https://github.com/ifrost/afterwriting-labs library for rendering the
PDF preview and export. The most straightforward solution would be if there
were a way to toggle automatic (CONT'D) via the library options, though I
don't see this as an option. There is an issue
https://github.com/ifrost/afterwriting-labs/issues/21 that mentions a
feature, but it doesn't have a lot of details. It might be better to move
the conversation there and see what their team thinks about it.
I'm personally somewhat in agreement with John August's argument
https://johnaugust.com/2015/is-automatic-contd-a-bug-or-a-feature that
use of (CONT'D) is context sensitive enough that it's better to do
manually. However, I could see it being useful if there is a well-enough
accepted set of rules on when CONT'D should be automatically added.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/superlou/fountain-atom/issues/90#issuecomment-477123418,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AcXF_ljFCnloXVlutWYC423_NigJKh7lks5va2A2gaJpZM4cNQ57
.

--
Thanks,
Kevin
469.446.2539
kevindooley.com

So do you suggest that I should open a new issue on their repo?

I'm personally somewhat in agreement with John August's argument that use of (CONT'D) is context sensitive enough that it's better to do manually. However, I could see it being useful if there is a well-enough accepted set of rules on when CONT'D should be automatically added.

Same for me.
I would keep it Manual, but I reckon that I might switch it on for fast-paced projects or that some writers would keep it Auto by default...

I'd recommend posting in that existing repo, and opening a new feature request if they think that a new issue is needed to flesh out the requirements.

authors: captaindooley superlou vekuda

repo: superlou/fountain-atom


text:
We need to avoid scrolling that happens during the click action in IE and Safari after the element's parent with 'tabIndex' is focused

T292365

It's already fixed https://github.com/superroma/testcafe-hammerhead/pull/56

repo: superroma/testcafe-phoenix


text:
🛑 Node - 54360d94.yalaso.top is down

In 0eabdf3, Node - 54360d94.yalaso.top (http://54360d94.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - 54360d94.yalaso.top is back up in 590cc19.

repo: superrr-vpn/status


text:
🛑 Node - ru-b90442ee.yalaso.top is down

In 6084eda, Node - ru-b90442ee.yalaso.top (http://ru-b90442ee.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - ru-b90442ee.yalaso.top is back up in 41cf471.


text:
Explicit gambit not matched

Gambit and topic to match
> topic:keep name (name call)

// what is my name?
+ what is my name [*~2]
- {^hasFirstName(true)} {@__what_name__}
- {^hasFirstName(false)} {@__what_name__}

// [Now] do you (know|have) my name [now]
+ *~2 do you (know|have) my name [now]
- {^hasFirstName(true)} {@__what_name__}
- {^hasFirstName(false)} {@__what_name__}

+ __what_name__
- {^hasFirstName(true)} Your name is ^get(firstName).
- {^hasFirstName(false)} You never told me your name. What is it?

  + [my name is|i am] *1
  % * You never told me your name. What is it?
  - {keep} Nice to meet you, <cap1>! ^save(firstName,<cap1>)

< topic

Expected Behavior
You> what is my name?
Bot> You never told me your name. What is it?
You> my name is Francesco
Bot> Nice to meet you, Francesco!

Current Behavior
1. You> what is my name?
2 .Bot> You never told me your name. What is it?
3. You> Francesco
4. Bot> This is not really important. Shall I continue with work or do you want me to move on?
5. You>

Where 4. is the reply to random

AFAIK this should be fixed in v1.0.0.

authors: benhjames worldofpiggy

repo: superscriptjs/superscript


text:
[bsp/stm32] 支持一款大RAM 大ROM的STM32 bsp

ART-PI
OPENMV

OPEMNV:
STM32H743II ARM Cortex M7 处理器，480 MHz ，1MB RAM，2 MB flash. 所有的 I/O 引脚输出 3.3V 并且 5V 耐受。这个处理器有以下的IO接口
32 MB 外置的 32-bit SDRAM ，100 MHz的时钟，达到 400 MB/s 的带宽。
32 MB 外置的 quadspi flash， 100 MHz的时钟，4-bit DDR模式达到 100 MB/s 的带宽。

https://singtown.com/product/50812/openmv4-h7-plus/

SDRAM
https://www.waveshare.net/study/article-660-1.html

【【野火】STM32 HAL库开发实战指南 教学视频 手把手教学STM32全系列 零基础入门CubeMX+HAL库，基于野火全系列STM32开发板-哔哩哔哩】 https://b23.tv/5JDHB0c

SDRAM =>FMC
FSMC => SRAM

SDRAM =>FMC
FSMC => SRAM

https://blog.csdn.net/weixin_42432783/article/details/108668856

https://blog.csdn.net/weixin_42432783/article/details/108668856

https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32h743-openmv-h7plus
不是特别顺利


text:
Prototype cpp plugin

This is the big one - ~not even sure where to start yet~.
I have a monorepo project with multiple embedded C and C++ projects, that also involve python bindings and unit tests. Seems like a great place to test this out.
Major steps:

[x] #27
[x] #28
[x] #29
[x] #36
[ ] ...

Basic c/cpp support added to mainline Pants via https://github.com/pantsbuild/pants/pull/15092 - so I can scrap this and focus on mainline pants.
Not sure if merging c and cpp source files is the best approach, as they could use different compilers, or be merged together - so not sure how that'll look downstream.

repo: sureshjoshi/pants-plugins


text:
How to destroy an active listener?

Hi all,
I created a listener as such
this.$refs.mySwiperMap.$swiper.on("slideNextTransitionEnd", () => {

and now I'm trying to destroy it. (to recreate a new one, so that it doesn't duplicate)
According to the documentation (https://swiperjs.com/api/), I can use mySwiper.detachEvents(), but I have tried the following but doesn't work for me (many duplicates events firing on slide change)

this.$refs.mySwiperMap.$swiper.detachEvents()
this.$refs.mySwiperMap.detachEvents()

I am wondering how do I go about removing the swiper listener?
Dep
├── swiper@5.4.5
├── vue-awesome-swiper@4.1.1

this.$refs.mySwiperMap.$swiper.off("slideNextTransitionEnd")

authors: gabrielsze rolandszpond

repo: surmon-china/vue-awesome-swiper


text:
Increase the size of the Record Inspector

Describe your feature request
Currently can only open the record inspect to 900px, which leaves it tiny on a large screen.
Being able to open it up to 75% of the screen width would be desirable.

This has been implemented in #394 for all resizable drawers

authors: LucyEgan macjuul

repo: surrealdb/surrealist


text:
🐛 fix: リポジトリ一覧画面で検索フィールドの×ボタン押下でEmpty画像が一瞬表示されてしまう

Issue #135

Codecov Report

Merging #136 (e85c4a8) into develop (a746916) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop     #136   +/-   ##
========================================
  Coverage    99.81%   99.81%
========================================
  Files           50       50
  Lines         1100     1100
========================================
  Hits          1098     1098
  Misses           2        2

Flag
Coverage Δ

unittests
99.81% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...b/presentation/components/repo/repo_list_view.dart
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

authors: codecov-commenter susatthi

repo: susatthi/github-search


text:
[RFE] Provide "the cli way" for ATIP

Current documentation shows the clickops way but it would be nice if we provide the cli way as well so it can be automated easily. #65

@alknopfler Can you please let me know if this issue is already addressed?

@alknopfler Can you please let me know if the CLI way for ATP is addressed?

authors: e-minguez ranjinimn


text:
new branch for panel

@michaelweinold

@michaelweinold
This is the most up to date version now. Sorry for the confusion.
Give it a try and let us know if anything doesn't work for you.

repo: sustainableaviation/demandmap


text:
ETag generation throws on binary responses since 1.0.0-next.82

Describe the bug
Since 1.0.0-next.82, attempting to set a Content-Type header for certain binary responses in endpoint handlers will throw an exception: str.charCodeAt is not a function. Responding with no type or with explicit application/json won’t throw. Downgrading to next.81 fixes the issue. Upgrading to next.83 does not.
Update: This appears to be a regression introduced with the new ETag generation in #1117.
To Reproduce
Make an endpoint that responds with e.g. a JPEG with the Content-Type (or content-type) header set to image/jpeg.
See repo: https://github.com/intrikate/sveltekit-jpeg-endpoint-issue
Expected behavior
Content-Type set, the body sent, no exceptions thrown. Essentially what 1.0.0-next.81 does.
Stacktraces

Stack trace
str.charCodeAt is not a function
TypeError: str.charCodeAt is not a function
    at hash (file:///Users/leek/Code/Playground/sveltekit-jpeg-issue/node_modules/@sveltejs/kit/dist/ssr.js:1509:37)
    at render (file:///Users/leek/Code/Playground/sveltekit-jpeg-issue/node_modules/@sveltejs/kit/dist/ssr.js:1473:26)
    at async ssr (file:///Users/leek/Code/Playground/sveltekit-jpeg-issue/node_modules/@sveltejs/kit/dist/ssr.js:1454:10)
    at async Immediate.<anonymous> (file:///Users/leek/Code/Playground/sveltekit-jpeg-issue/node_modules/@sveltejs/kit/dist/chunks/index.js:3297:23)

Information about your SvelteKit Installation:

Diagnostics
System:
    OS: macOS 11.2.3
    CPU: (4) x64 Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
    Memory: 46.50 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.16.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.11 - /usr/local/bin/npm
  Browsers:
    Chrome: 89.0.4389.128
    Firefox Developer Edition: 88.0
    Safari: 14.0.3
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.83
    svelte: ^3.29.0 => 3.37.0
    vite: ^2.1.0 => 2.2.1

Severity
Pretty high, especially if this is indeed a regression.

More context: https://github.com/sveltejs/kit/blob/e6f80982ffc956c7dc5e2e00907f0f2f7a8d496c/packages/kit/src/runtime/server/index.js#L82-L87

repo: sveltejs/kit


text:
Focus outline after navigating to new page on Firefox

Describe the bug
After navigating to a different page in Firefox, the browser will show a focus outline surrounding the entire viewport.
Reproduction

Latest version of Sveltekit, since 1.0.0-next.288
Latest version of Firefox

Logs
No response
System Info
Firefox, Windows 10

Severity
annoyance
Additional Information
No response

Was just about to report this myself! For completeness, here is a reproduction screenshot.
Reproduction:

Make a new starter with npm init svelte@next test. I chose the SvelteKit demo app.
yarn dev

Likely introduced by https://github.com/sveltejs/kit/pull/4140

authors: bgdev89 geoffrich pieterdd