PrismaClientInitializationError:  Invalid prisma.post.findMany() (related to Studio?)

I'm running into a strange bug.
I start with this SQL schema:
CREATE TABLE "public"."User" (
  id SERIAL PRIMARY KEY NOT NULL,
  name VARCHAR(255),
  email VARCHAR(255) UNIQUE NOT NULL
);

CREATE TABLE "public"."Post" (
  id SERIAL PRIMARY KEY NOT NULL,
  title VARCHAR(255) NOT NULL,
  "createdAt" TIMESTAMP NOT NULL DEFAULT now(),
  content TEXT,
  published BOOLEAN NOT NULL DEFAULT false,
  "authorId" INTEGER NOT NULL,
  FOREIGN KEY ("authorId") REFERENCES "public"."User"(id)
);

CREATE TABLE "public"."Profile" (
  id SERIAL PRIMARY KEY NOT NULL,
  bio TEXT,
  "userId" INTEGER UNIQUE NOT NULL,
  FOREIGN KEY ("userId") REFERENCES "public"."User"(id)
);

Then I init and introspect the DB in a new TS project and make some adjustments to the generated Prisma schema:
generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model Post {
  authorId  Int
  content   String?
  createdAt DateTime @default(now())
  id        Int      @default(autoincrement()) @id
  published Boolean  @default(false)
  title     String
  author    User     @relation(fields: [authorId], references: [id])
}

model Profile {
  bio    String?
  id     Int     @default(autoincrement()) @id
  userId Int     @unique
  user   User    @relation(fields: [userId], references: [id])
}

model User {
  email   String   @unique
  id      Int      @default(autoincrement()) @id
  name    String?
  posts   Post[]
  profile Profile?
}

Then I npm install @prisma/client, this is what my package.json looks like:
{
  "name": "starter",
  "version": "1.0.0",
  "main": "index.ts",
  "license": "MIT",
  "dependencies": {
    "@prisma/client": "^2.0.0",
    "@types/node": "^14.0.4"
  },
  "devDependencies": {
    "@prisma/cli": "^2.0.0",
    "ts-node": "^8.10.1",
    "typescript": "^3.9.3"
  },
  "scripts": {
    "dev": "ts-node src/index.ts"
  }
}

Then I run this script:
import { PrismaClient } from '@prisma/client'

const prisma = new PrismaClient()

async function main() {
  const posts = await prisma.post.findMany()
  console.dir(posts, { depth: null })
}

main()
  .catch((e) => console.error(e))
  .finally(async () => await prisma.disconnect())

Everything works.
Then I start Prisma Studio:
yarn prisma studio --experimental

I open Studio and it works fine. But when I go back to the script and run it again, I get this error:
$ yarn dev
yarn run v1.22.0
$ ts-node src/index.ts
PrismaClientInitializationError:
Invalid `prisma.post.findMany()` invocation in
/Users/nikolasburk/prisma/talks/2020/prisma-day/dry-runs/dr2/src/index.ts:6:35

  2
  3 const prisma = new PrismaClient()
  4
  5 async function main() {
→ 6   const posts = await prisma.post.findMany(
  error: Environment variable not found: DATABASE_URL.
  -->  schema.prisma:7
   |
 6 |   provider = "postgresql"
 7 |   url      = env("DATABASE_URL")
   |

Validation Error Count: 1
    at PrismaClientFetcher.request (/Users/nikolasburk/prisma/talks/2020/prisma-day/dry-runs/dr2/node_modules/.prisma/client/src/runtime/getPrismaClient.ts:768:15)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
(node:6295) UnhandledPromiseRejectionWarning: Error: error: Environment variable not found: DATABASE_URL.
  -->  schema.prisma:7
   |
 6 |   provider = "postgresql"
 7 |   url      = env("DATABASE_URL")
   |

Validation Error Count: 1
    at LineStream.<anonymous> (/Users/nikolasburk/prisma/talks/2020/prisma-day/dry-runs/dr2/node_modules/.prisma/engine-core/dist/NodeEngine.js:419:1)
    at LineStream.emit (events.js:196:13)
    at LineStream.EventEmitter.emit (domain.js:471:20)
    at addChunk (_stream_readable.js:290:12)
    at readableAddChunk (_stream_readable.js:271:11)
    at LineStream.Readable.push (_stream_readable.js:226:10)
    at LineStream.push (_stream_transform.js:150:32)
    at LineStream._pushBuffer (/Users/nikolasburk/prisma/talks/2020/prisma-day/dry-runs/dr2/node_modules/.prisma/engine-core/dist/byline.js:106:1)
    at LineStream._transform (/Users/nikolasburk/prisma/talks/2020/prisma-day/dry-runs/dr2/node_modules/.prisma/engine-core/dist/byline.js:98:1)
    at LineStream.Transform._read (_stream_transform.js:189:10)
(node:6295) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6295) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
✨  Done in 1.15s.

Hey, that's the one that messed with you during your meetup talk!

I am unable to reproduce this with 2.1.0-dev.39

Maybe you should try to reproduce this with dev once.

I am going to close this now. Happy to take a look again if we get more information.


[Bug]: The forbidDefaultForRequired option in the react/require-default-props rule does not work as expected

Is there an existing issue for this?

[X] I have searched the existing issues and my issue is unique
[X] My issue appears in the command-line and not only in the text editor

Description Overview
The forbidDefaultForRequired option in the react/require-default-props rule does not work as expected
Using the react/require-default-props rule together with the forbidDefaultForRequired option set to true does not throw an error or warning when a prop that is required is assigned a default value.
Eslint rule
{
  "rules": {
    "react/require-default-props": ["error", {
      "forbidDefaultForRequired": true,
      "functions": "defaultArguments"
    }],
  }
}

Example code:
function MyStatelessComponent({ foo = 'foo', bar }) {
  return
{foo}{bar}
;
}

MyStatelessComponent.propTypes = {
  foo: PropTypes.string.isRequired,
  bar: PropTypes.string
};

type MyStatelessComponentProps = {
  foo: string;
  bar?: string
}

function MyStatelessComponent({ foo = 'foo', bar }: MyStatelessComponentProps) {
  return
{foo}{bar}
;
}

MyStatelessComponent.propTypes = {
  foo: PropTypes.string.isRequired,
  bar: PropTypes.string
};

In the previous examples the foo prop is required, but it is being assigned a default value, with the forbidDefaultForRequired option set totrue, without throwing errors or warnings.
Expected Behavior
The expected behavior is that if a prop is mandatory and a default value is assigned, it should throw an error or warning depending on the rule configuration.
eslint-plugin-react version
7.32.2
eslint version
8
node version
18

The rule forbids default props, not default function parameters. In other words, the .defaultProps object attached to the component.

The first one seems like a great enhancement.
The second one, however, i don’t agree with and wouldn’t want to encourage people to do. Despite the react team’s position, defaultProps are much better than default arguments, because they’re introspectable from the outside (and they work on class components).

@ljharb I understand your position regarding point 2, can we revisit it in the future for more feedback on this? I still think it would be nice to provide some support for this, maybe not encourage its use, but have it available as a utility.
Regarding point 1, I think it's great that it can be taken. Would this be validated on default arguments?

@ljharb Regarding point 1, could we re-evaluate it? Facebook already made changes in React (v18.3.0) to start throwing warnings when .defaultProps is used in functional components, but not for class ones.
See more: https://github.com/facebook/react/commit/589423270e8d69fce914f12f7dc7bb61bb7b81de

Yes, with the react team’s very unwise and unfortunate decision in 18.3/19, we might as well add both things.


Certain statement imports continue to produce duplicate transactions

To reproduce:

Import transactions using the csv option for Capitec bank transaction history.
Import transactions again a couple of weeks or a month later so that some transactions appear in the download again.

Expected behaviour:
No duplicates shown.
Actual behaviour:
Duplicates are shown.
Root cause: a hack which added the transaction sequence number to the posted date as a time offset since no transaction time was available. This is actually done to ensure the correct ordering of transactions were preserved, but caused duplicates instead.
The fix:
Remove the hack and change the database key to an autoincrement one and retrieve the transactions sorted by it. This means a database change for the first time since the release of Countary to the public.

Fixed in v1.0.8


Enhance error message during PrincipalID resolution

What changed?

Enhance error message during PrincipalID resolution. This allow to admin to easily grep for logs where PrincipalID cannot be resolved. We have observed instances IdentityCenter assignments are orphaned when user is already removed from Active Directory
Read an environment variable to skip a non-resolvable PrincipalID

Rationale

allow to admin to easily grep for logs where PrincipalID cannot be resolved.
Have to fall back to environment variable because that util function does not have a handle to the config object.

How was it tested?
If it was manually verified, list the instructions for your reviewers to follow.

[ ] Unit Tests
[ ] Functional Tests
[ ] Manually Verified

Hi,
I checked out the branch and tried it in my env. This works!
Thanks @smoy ! You rock


Creavite Mode Serach

NeoForge: 47.1.73
Mod Version: 1.0.19
Minecraft: Version 1.20.1
I installed EMI however when I try and search in creative mod now it just stays blank. If I remove EMI the creative mod search works like it's supposed to.

I can not reproduce this issue with just vanilla + EMI. This is likely another mod having search indexed information (name, tooltip) be thread unsafe, which can only be resolved by the mods themselves. You may be able to find more information in your log at which mods are causing this.


support for lapce editor

Hello,
I am wondering if it will be possible to port the plugin for the lapce editor ?

Same answer as in https://github.com/BeardedBear/bearded-icons/issues/170 , I prefer to wait until the editor becomes more mature to think about it, and I have other IDEs to port as a priority :)


fix index.md

index chapter_computational-performance/index

chapter_generative-adversarial-networks/index

Job d2l-zh/PR-778/1 is complete.
Check the results at http://preview.d2l.ai/d2l-zh/PR-778/

Hey @xinetzone , thanks for your contribution. The GAN chapter is currently under revising, and that's why we haven't translate to Chinese. I won't review your PR for now. Thanks for your understanding!


[Feat] -  Add Issue Templates

Description:
Create issue templates to standardize the format and ensure all necessary information is provided for different types of issues. These templates will be added to the .github/ISSUE_TEMPLATE/ directory.
Tasks:

Create Directory:

If it doesn't already exist, create the .github/ISSUE_TEMPLATE/ directory.

Create Bug Report Template:

Create a bug_report.yml file in the .github/ISSUE_TEMPLATE/ directory with the necessary template content for bug reports.

Create Feature Request Template:

Create a feature_request.yml file in the .github/ISSUE_TEMPLATE/ directory with the necessary template content for feature requests.

Files to Modify:

Create .github/ISSUE_TEMPLATE/bug_report.yml
Create .github/ISSUE_TEMPLATE/feature_request.yml

Benefits:

Standardizes the format for submitting bug reports and feature requests, improving clarity and completeness.
Facilitates easier and more consistent issue tracking and management within the project.

@rohitinu6 can you please assign this task to me?


E: Unable to locate package softu2f

from README.md:
Ubuntu Installation
$ sudo apt install -y curl
$ curl -s https://packagecloud.io/install/repositories/danstiner/softu2f/script.deb.sh | sudo bash
$ sudo  apt install -y softu2f
Reading package lists... Done
Building dependency tree
Reading state information... Done
**E: Unable to locate package softu2f**

$ cat /etc/apt/sources.list.d/danstiner_softu2f.list
# this file was generated by packagecloud.io for
# the repository at https://packagecloud.io/danstiner/softu2f

deb https://packagecloud.io/danstiner/softu2f/ubuntu/ bionic main
deb-src https://packagecloud.io/danstiner/softu2f/ubuntu/ bionic main

**https://packagecloud.io/danstiner/softu2f/ubuntu/ does not exist: "The page you were looking for doesn't exist."**

I get the same issue. Is there anyone knows the exact problem?

Firefox can show https://packagecloud.io/danstiner/softu2f no problem.
However, https://packagecloud.io/danstiner/softu2f/ubuntu (from /etc/apt/sources.list.d/danstiner_softu2f.list) does not exist.
WORKAROUND:
Skip the repository installation (by script or manual), and just download the .deb files for your version of Ubuntu.  I downloaded the [ubuntu/xenial] tagged files from https://packagecloud.io/app/danstiner/softu2f/search?dist=ubuntu%2Fxenial for my Ubuntu 18.04.1 (the xenial files work for bionic):
softu2f-user-daemon_0.2.0_amd64.deb
softu2f_0.1.0_all.deb
softu2f-system-daemon_0.2.0_amd64.deb
u2f-hidraw-policy_1.0.2-1_amd64.deb
I skipped the 0.1.0 versions of softu2f-system-daemon_0.1.0_amd64.deb and softu2f-user-daemon_0.1.0_amd64.deb assuming they were older versions of the 0.2.0 .deb files.
$ sudo dpkg -i softu2f-user-daemon_0.2.0_amd64.deb softu2f_0.1.0_all.deb softu2f-system-daemon_0.2.0_amd64.deb u2f-hidraw-policy_1.0.2-1_amd64.deb
$ systemctl --user start softu2f
Then start Chrome (Chromium does not work) and test with github.com.  Ubuntu 18.04.1 does not require a reboot.  It just works after the systemctl start is run and Chrome is started after.

That's cool, your suggestion works. I think the homepage (https://packagecloud.io) should change the installation steps.

Ah, this is because I have not been publishing packages for newer versions of Ubuntu (bionic or cosmic). If people are still interested in playing around with this program I could build new packages.

Ah, this is because I have not been publishing packages for newer versions of Ubuntu (bionic or cosmic). If people are still interested in playing around with this program I could build new packages.

Great to hear that. We'd appreciate if you could publish the newest version of Ubuntu. Thanks for reply.

Pushed a new version for bionic, cosmic, and xenial. Let me know if it works!

Pushed a new version for bionic, cosmic, and xenial. Let me know if it works!

It's working. Just do these steps for Ubuntu installation

sudo apt install -y curl
curl -s https://packagecloud.io/install/repositories/danstiner/softu2f/script.deb.sh | sudo bash
sudo apt install -y softu2f
systemctl --user start softu2f

Thank you

Closing as it seems this has been fixed.

I just tested on ubuntu 20.04. I doesn't work for me.

Any ideas?

https://packagecloud.io/app/danstiner/softu2f/search?dist=ubuntu%2Ffocal
Packages for ubuntu/focal in danstiner / softu2f
No results!

Hey @rcpao and others who encounter this. I forgot to mention. I found a workaround, you can build the deb file with package.sh with the command ./package.sh debian ubuntu focal, in the docker image you can find the deb files needed (@danstiner  made a wonderful work with the docker files to compile everything easily).
That was working fine for me for firefox, but not in chromium (no idea why). Both however, a normal yubikey works perfectly.

Ha, yeah I don't document it but that's the script I use to build out packages. You're welcome to use it but most people who build locally are just using make install though.
That said, I just published a new build (0.4.1), so there should be a package available for 20.04 focal fossa now.
I tested Firefox/Chrome in a focal install and they both seemed to work, but for some reason Chromium does not. Feel free to open an issue on that, Chromium works on other platforms so something is fishy.

Horrible. I just get
Ign:6 https://packagecloud.io/danstiner/softu2f/ubuntu trusty InRelease
Err:7 https://packagecloud.io/danstiner/softu2f/ubuntu trusty Release
  404  Not Found [IP: <IP_ADDRESS> 443]

Maybe it is geolocked?

@ValZapod Horrible is a strong comment.
Ubuntu trusty is old enough I'm not planning to publish a package for it.

I am using Debian.

Huh, somehow your apt sources are wrong then, those 404 errors were for trusty urls.
I do publish debian package versions: https://packagecloud.io/app/danstiner/softu2f/search?q=&filter=all&dist=debian

I do publish debian package versions:

Yep, just used dpkg -i


Can URL be used as query condition to fetch corresponding trace data?

This is not a bug report, it's a question OR suggestion:
Obviously people prefer to fetch certain URL's trace data when there are too many records, especially for those who are eager to find possible performance bottle-neck.
So I can't help know whether pp support querying specified URL's trace data, how and if it does?
OR are there and plans or comments if it doesn't support? Thanks.

In main page's topology map, you can right click a link and specify the url filter. But I can not figure out the right syntax of the filer pattern and feel it is no convenient so I give up at last.

This url filter can solve some scenes。but the filter has some problem also  ,such as search word like set get on line linked to redis, the result is not suitable, etc.


double-check acccessibility

Feedback is that the font isn't too accessible for visually impaired users, and screen magnifiers don't like the pop-up menus. Screen readers seem fine. Zach, could you look into this?

I’ve asked RaymondYou’ll see I suggested we do a zoom call with him sharing his screen and talking us through his feedback. Hoping there might be some quick & easy things we can do to help while storing up the bigger stuff for a later release. Paula mentioned that of course we don’t want to react disproportionately to a single person and we haven’t had any other accessibility feedback yet. Let me know what you thinkJJonathan Clark & Partners B.V.Email: @.: +31 6 54733572On 6 Mar 2023, at 11:15, Zach Anthony @.> wrote:
Hi @ynnig can you give me a bit more info on these things:
Font: is it size, colour, actual typeface, or something else that is an issue? The typeface itself is a brand requirement I think?
Popup menus: where exactly does this refer to?
Cheers!
Z.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>


About Installing & Usage

Hi,
I'm asking from here one more time in case someone needs it.
After compiling .dll file how to inject it / into which executable to inject it?
Any key combinations to use the .dll?
Thanks

You closed it but you should edit your issue your way.
You can check Loading / Injecting into game process


[api] Adding support for VM scan action

Adding scan action for VM collection
Adding rspecs

https://trello.com/c/jRyHMgjs

Looks good to me.  @Fryguy ?

@Fryguy rebased and re-pushed.


skeleton

let's create and release a skeleton to an npm, based on this: https://github.com/h1alexbel/samples-filter/issues/125

@h1alexbel 5 puzzles #5, #6, #7, #8, #9 are still not solved.

@h1alexbel 4 puzzles #6, #7, #8, #9 are still not solved; solved: #5.

@h1alexbel 3 puzzles #6, #7, #8 are still not solved; solved: #5, #9.


Problem with Continuous Rotation Gesture Detection

Issue:
I'm experiencing an issue with detecting continuous rotation gestures using the PAJ7620 library. The sensor only registers a rotation gesture once when it starts and does not continuously detect the rotation. This results in a lack of smooth feedback in applications where continuous rotation is expected, such as rotating a virtual object.
Description:
When performing a rotation gesture, such as rotating an object on the screen, the sensor only reports the gesture when the rotation stops. This is problematic for applications requiring continuous updates during the rotation. For example, if I rotate my finger in a circular motion, the application should continuously receive rotation events and update the visual representation accordingly.
Steps to Reproduce:
Initialize the PAJ7620 sensor using the library.
Perform a continuous rotation gesture with the sensor.
Observe that the sensor only reports the gesture when it stops, not continuously during the rotation.
Expected Behavior:
The sensor should continuously report rotation gestures while the rotation is happening, allowing the application to provide real-time feedback and updates.
Current Behavior:
The sensor reports the rotation gesture only once, usually when the rotation stops, leading to a delay in feedback and lack of smooth interaction.
Suggested Improvement:
Modify the library to detect and report rotation gestures continuously while the gesture is being performed.
Ensure that the sensor readings are processed in a way that reflects continuous motion, rather than discrete events.
Thank you for your help with this issue.

Hello,
I'm very sorry to have kept you waiting so long.
Do you still have this problem now?

Hello,
I'm going to close this issue, feel free to re-open it if you have any other questions.
[Autocommentary]


Migrate and update Livestream/scredis wiki

It contains useful documentation.

done, described in issue #19


Pipelines should detect missing zip fields in the manifest

Description of the new feature/enhancement
If the installer is zip based, pipelines should validate that InstallerType: zip is specified against the installer in the manifest. It should also validate that NestedInstallerType & NestedInstallerFiles are present in the manifest.

Context
A zip based package was merged in https://github.com/microsoft/winget-pkgs/pull/188685 which didn't contain the appropriate ZIP-based fields. The package still installed successfully as the CLI does not appear to rely on those manifest fields for zip installation. But this caused an issue when updating the package through winget-create. See https://github.com/microsoft/winget-create/issues/559
Proposed technical implementation details (optional)
No response

[Policy] Area-Validation-Pipelines

I don't think the issue is that it didn't validate the fields were present; Rather - it didn't validate that the portable actually was an exe file


Can't compile widgetset for Vaadin 7.4.x

Hello,
I tried upgrading my project to Vaadin 7.4.0 recently. The Gradle Vaadin Plugin is a real time-saver and makes working with Vaadin very easy, but unfortunately the "vaadinCompileWidgetset" target does not seem to work for Vaadin 7.4.x yet. The process does not fail, produces no errors or warnings, and it does run for a while, but it produces no output to speak of. Also, the "cleanVaadinCompileWidgetSet" target does not clean the widgetset directory. It just seems to do nothing at all.
I'm not sure if the new Vaadin version is already supported, given that it's just a few days old, but I thought that I should let you know that apparently some things work differently in the new version, which causes problems in your Gradle Plugin. For the time being, I down-graded Vaadin to 7.3.10 again, where your Plugin works like a charm.
Kind regards,
Alan

dup of #153 ?

Oh... yeah sorry I must have overlooked that one. My bad :(

Yes, the widgetset compilation should again work with the latest plugin and Vaadin 7.4. Ensure you are using version 0.9.7 of the plugin in your build.
Created #160 for improving the logging of the widgetset compile.

Hello again,
today I found the time to apply the advise from #153 to my project. Unfortunately the WidgetSet build still fails when I use Vaadin 7.4.0 (with gradle vaadin plugin 0.9.7). After a lot of fiddling with the logging parameters, I finally got gradle to display what's going on:
[ERROR] Unexpected internal compiler error
java.lang.IncompatibleClassChangeError: class com.google.gwt.dev.javac.BytecodeSignatureMaker$CompileDependencyVisitor has interface org.objectweb.asm.ClassVisitor as super class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.google.gwt.dev.javac.BytecodeSignatureMaker.visitCompileDependenciesInBytecode(BytecodeSignatureMaker.java:227)
at com.google.gwt.dev.javac.BytecodeSignatureMaker.getCompileDependencySignature(BytecodeSignatureMaker.java:209)
at com.google.gwt.dev.javac.CompiledClass.getSignatureHash(CompiledClass.java:166)
at com.google.gwt.dev.javac.Dependencies$Ref.(Dependencies.java:42)
at com.google.gwt.dev.javac.Dependencies$Ref.(Dependencies.java:37)
at com.google.gwt.dev.javac.Dependencies.resolve(Dependencies.java:114)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:366)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:580)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:513)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:499)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:668)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:206)
at com.google.gwt.dev.Compiler.run(Compiler.java:158)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
at com.google.gwt.dev.Compiler.main(Compiler.java:127)
Shutting down PersistentUnitCache thread
Any hint on what might be going on here?

Okay I did a full clean build of the project, that fixed the issue (see: http://stackoverflow.com/questions/23176110/gwt-compilation-error-incompatibleclasschangeerror).
The build is not producing any more errors. Instead, gradle always "skips" the vaadinCompileWidgetSet task, even if I run "cleanVaadinCompileWidgetSet" directly before that command. And still no widgetset files are being produced :(

I forced the rebuild of the widgetset by using --rerun-tasks as gradle parameter. The glorious result is that the stack trace from above appears again.

@Alan47 is there a build/logs/widgetset-compile.log with further clues?
also check https://vaadin.com/forum#!/thread/9316748 for clues.

Hi,
unfortunately I don't have such a folder. I've seen it in your explanations in #153, but I can't find it anywhere in my project.
I think that the real issue is that my gradle still runs "asm 3.2" (see: https://groups.google.com/forum/#!msg/google-web-toolkit/_zaQy_Rh67c/9YLEND-88osJ).
Unfortunately, asm 5 uses a different namespace ("org.ow2.asm:asm-all:5.0.3") and I have no clue how to tell gradle that it should use "org.ow2.asm:asm-all:5.0.3" instead of "asm:asm:3.2"...
Or could there be another reason why it doesn't work?

It appears that "providedCompile('org.ow2.asm:asm-all:5.0.3')" does the trick. I'm currently building the WidgetSet...

@Alan47 first you should be sure, where it comes from. do a gradle gradle dependencies to see what is going on.  you will see some some package pulling in the wromg asm version.  an exclude on that import should make it go away (but might introduce errors with the package originally pulling that one in)

@christoph-frick Thanks a lot for your help, it's much appreciated!
I've been FINALLY able to build the widgetset for Vaadin 7.4.0. Basically all that was "wrong" was the asm version. I used "gradle -q org.example.mywebapp:dependencyInsight --dependency asm" to find out what's wrong. As it turned out, Hibernate was referencing asm 3.2. I added "providedCompile('org.ow2.asm:asm-all:5.0.3')" to my gradle file to resolve the issue, and it seems that everything is working fine now.
Thanks a lot to @christoph-frick  and @johndevs !

Great to see you figured it out :)
Another option that could have worked is setting vaadin.gwt.gwtSdkFirstInClasspath = true which would move all GWT dependencies first in the classpath for the widgetset compiler.


Add option to remove 128 feed limit

We're trying to share more than 128 feeds over a single hypercore-protocol instance.

https://github.com/mafintosh/hypercore-protocol/pull/28


closing modal causes layout issues on the page (v3)

Hello,
I'm using Boostrap 3.3.6 and recently ran into a puzzling issue with the modal component.
Here's a jsfiddle to recreate this: http://jsfiddle.net/14qjajoh/
Browsers tested: latest Chrome & Firefox.
So I have a box container, which has two boxes, the 2nd one contains actions, and only shows up when the box container is hovered.
When I close the modal, the boxes are moved to the top...for no reason?
Clicking on the box itself fixes the layout though...
Is there anything wrong with my code?
Thanks!
P
===== more info
this only happens when the modal is invoked by clicking the button.
if it is displayed with javascript
// in console.
$('#modal').modal();

then layout won't be affected after closing the modal (by using the Close buttons)

Perhaps the button is snagging focus and jumping you back to it?

Interesting. Same issue occurs when I focus on the button with JS $('a').focus();
still not sure why it's making box-1 to move up though.

Hmm It seems it's a browser behavior, not a bootstrap issue.
I will try to figure it out.
Thanks for your help!

checked previous pull requests.
It seems bootstrap is partially responsible - it tries to focus on the triggering element when the modal is closed as long as the modal .is(':visible') - since that jQuery considers anything that takes up space in the document is visible, it will focus on the button no matter if it's visibility: hidden or opacity: 0 or being hidden by overflow: hidden;
original pull request
https://github.com/twbs/bootstrap/pull/13627
I think the pull request makes sense for accessibility reasons, but I think it's better if it checks if the element is actually in port of view, instead of checking if it is taking up space in the document. Thoughts?
I updated CSS to fix this issue:
http://jsfiddle.net/14qjajoh/3/

Sounds like a uncommon enough case that I'm not sure it's worth handling.
CC: @patrickhlauke

Bootstrap 3 is no longer being officially developed or supported.
All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4!
<3,
@mdo and team


[FLINK-28855][hive] Fix 'Table.INDEX_TABLE' not found in the Hive3

What is the purpose of the change
To fix 'Table.INDEX_TABLE' not found in the Hive3 error (It's because hive3 removed this table type).
Brief change log

fix TableType.INDEX_TABLE to literally string.

Verifying this change
This change is already covered by existing tests, such as ThriftObjectConversionsTest#testHiveTableTypeToFlinkTableKind.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

I add a commit to trigger the CI test with Hive3 dependencies.

The whole project is built successfully after I skip the flink-yarn-tests module. I think the CI compile error will be fixed by other issue.

@flinkbot run azure


Update lockfiles on pre-commit

Overview
Closes #3133.
We introduced conda-lock and lockfiles in an attempt to avoid instability caused by frequent dependency version changes.
However, we have been re-locking very eagerly, which means that we are actually still very susceptible to dependency version changes that break our ETL. It also chews through our CI budget.
At least it's very easy to see what changed in the environment between runs!
So we decided to only re-lock:

before committing a change to pyproject.toml
once a week

This adds a simple hook to .pre-commit-config.yaml which runs our re-locking make command when pyproject.toml changes.
If pyproject.toml doesn't change, the hook is skipped; if pyproject.toml changes, it runs make conda-clean conda-lock.yml.
If make doesn't actually change any of the environment/* files, pre-commit will pass; otherwise the check will fail and you'll have to re-add & re-commit, much like any other pre-commit check we run.
Sometimes the lock will have updated between the first time you ran the hook and the second time, because some package update happened - in that case you'll have to re-add & re-commit a third time.
Testing
To make sure this worked, I added some comments to pyproject.toml and attempted to commit - that triggered a re-lock. Then I added the lockfile changes and re-committed - this time it still re-locked (because pyproject.toml diffs were still in the commit) but because the lockfiles didn't change, the pre-commit check passed.
# To-do list
- [x] Review the PR yourself and call out any questions or issues you have

Aiyah, the pre-commit.ci checker doesn't have mamba.

@jdangerx Looking at RTD it seems to think that the docs build passed. Not sure why it's showing up here as having failed.

Re-ran RTD and it passed, but auto-merge didn't run with it. 🤷🏼


⚠ The save-state command is deprecated and will be disabled soon.

Hi there,
We use this trivy-cache-action in our workflows. Great stuff, thanks for developing it.
Since we introduced it we are seeing warnings similar to the title of this issue. I can see that you have updated your packages-lock.json file in the main branch but the latest release doesn't have the update to the core package.
Can you make a new release?
Cheers
Chris

Fixed in v0.1.3. Floating tag v0 also points to this release.


Looking for help with a swap

Hi, I want to implement token exchange in my application. I use the 1inch service https://api.1inch.dev/swap/v6.0/56/swap? to create a raw unsigned transaction. After receiving a hex from it, I try to sign it and send it using the web3swift library (3.2.2), and in some cases the program crashes in the place where the library works with BigUInt(after this "let testTX = try await web3.eth.send(raw: transaction.data)" line) in SDK method decodeLength, and in others it returns an error that says only 2 words "Data Error". I'm not sure exactly where I went wrong because I haven't done this before. I am attaching my code and hope for your help.
I also try to use web3.eth.send(transaction)method instead of web3.eth.send(raw: transaction.data) but then i get error "Method not found. Error code: -32601. The method eth_sendTransaction does not exist/is not available"
Task {
            do {
                let web3 = try await Web3.InfuraMainnetWeb3()

                let transactionsCount = try await web3.eth.getTransactionCount(for: EthereumAddress(networkID.getWalletAddress())!)

                var transaction: CodableTransaction = .emptyTransaction
                transaction.from = EthereumAddress(swapData.tx.from)
                transaction.to = EthereumAddress(swapData.tx.to)!
                transaction.value = BigUInt(swapData.tx.value)!
                transaction.gasLimit = BigUInt(swapData.tx.gas)
                transaction.gasPrice = BigUInt(swapData.tx.gasPrice)
                transaction.chainID = BigUInt(networkID.rawValue)
                transaction.data = Data.fromHex(swapData.tx.data)!
                transaction.nonce = transactionsCount

                if let keystore = try BIP32Keystore(mnemonics: UserDefaultsService.getMnemonic(), password: "test_password", mnemonicsPassword: "") {

                    // Create a KeystoreManager from the BIP32Keystore
                    do {
                        let keystoreManager = KeystoreManager([keystore])
                        web3.addKeystoreManager(keystoreManager)

                        var privateKey = try keystore.UNSAFE_getPrivateKeyData(password: "test_password", account: EthereumAddress(swapData.tx.from)!)
                        defer { Data.zero(&privateKey) }
                        try transaction.sign(privateKey: privateKey)
                    } catch let error {
                        print(error)
                    }

                    let testTX = try await web3.eth.send(raw: transaction.data)
                    print(testTX.transaction)
                    print(testTX.hash)
                } else {
                    print("faill")
                }
            } catch let error {
                print("Signing error: \(error.localizedDescription)")
            }
        }

I believe you just trying to send the transactions .data where you should be sending the entire transaction encoded as data.
Here is an example that's working for me:
`try transaction.sign(privateKey: privateKeyData)
//You are missing this step
    guard let transactionData = transaction.encode(for: .transaction) else {
        print("Failed to encode transaction")
        throw ProviderError.internalError
    }

    // Send the raw transaction data
    do {
        let result = try await web3.eth.send(raw: transactionData)
        print("Transaction result \(result)")
        return result.hash
    } catch {
        print("Error sending raw transaction: \(error)")
        throw error
    }`

I believe you just trying to send the transactions .data where you should be sending the entire transaction encoded as data.
Here is an example that's working for me:
try transaction.sign(privateKey: privateKeyData)
    //You are missing this step
        guard let transactionData = transaction.encode(for: .transaction) else {
            print("Failed to encode transaction")
            throw ProviderError.internalError
        }

        // Send the raw transaction as data NOT transaction.data
        do {
            let result = try await web3.eth.send(raw: transactionData)
            print("Transaction result \(result)")
            return result.hash
        } catch {
            print("Error sending raw transaction: \(error)")
            throw error
        }


Revert "Create http_over_grpc proto"

Reverts grpc/grpc#21243
https://source.cloud.google.com/results/invocations/7f1d700b-8fc4-41cb-beb2-3a48ebb05a81/targets/grpc%2Fcore%2Fmaster%2Flinux%2Fgrpc_build_artifacts/log
build/temp.linux-i686-3.6/_openssl.c:557:26: fatal error: openssl/cmac.h: No such file or directory

Let's see if revert this PR fixes the breakage.

Nope, problem still exists.


Prepare initial release

Cleanup before release

Package union-type does not conform to style guide, and tests are using mocha which isn't as bad, but better be ava.

Lerna warns about inconsistent dependencies:
lerna WARN EHOIST_PKG_VERSION "@cadaster/api-graphql" package depends on<EMAIL_ADDRESS>which differs from the hoisted<EMAIL_ADDRESS>lerna WARN EHOIST_PKG_VERSION "@cadaster/union-type" package depends on<EMAIL_ADDRESS>which differs from the hoisted<EMAIL_ADDRESS>


Change SDK ID

Currently the client ID of the SDK is raven-swift which is super confusing. We should change this to sentry-swift.

I got this 😉


Fix websockets client exception with Python<=3.9

Implements fix for #951.

I chose another solution in order to fix in a 9.0.x release that this supports Python 3.6.

Understandable.
Sorry for not providing both PR's, I had a feeling it was an arbitrary choice, so I took the "newest-feature" road.
Cheers!

Well I didn't know about from __future__ import annotations, now I do, and I can use it in the main branch where support for Python 3.6 is dropped. So thank you for that!


[Release Radar Request] SchemaCrawler

Open Source Project name
SchemaCrawler
What is your project?
SchemaCrawler is a free database schema discovery and comprehension tool. SchemaCrawler supports almost any database that has a JDBC driver and allows you to search for database schema objects using regular expressions, and output the schema and data in a readable text format.
Version
16.16.12
Date
March 21, 2022
Description of breaking changes
SchemaCrawler supports Teiid with a plugin, opening up schema discovery and diagramming to all kinds of data sources, including LDAP, Salesforce, web services and more. SchemaCrawler also supports the cdata JDBC drivers, which open up access to a host of unconventional sources such as Dropbox, Facebook and more.
GitHub Repo
https://github.com/schemacrawler/SchemaCrawler
Website
https://www.schemacrawler.com/
Link to changelog
https://www.schemacrawler.com/changes-report.html
Social media
https://twitter.com/schemacrawler
Anything else to add?
No response

Thanks for submitting, we loved your project. The Release Radar features major version releases. Please submit again when you have version 17.0 and we'd love to consider your project for feature 😄


Question about wait-on-transfer.sh

The Globus CLI has a command to poll for task completion: globus task wait <task_id>. Does wait-on-transfer.sh fill some gap that's missing in the CLI?
It seems strange that we'd highlight a way to duplicate functionality that exists in the CLI. Apologies if I'm missing something here.

Actually, I just didn’t know it was there. A user asked for an example blocker script so I put this one together. The only thing I’ll need to  I check about the CLI command is whether it has a timeout option. That was part of the request.

I’ll need to I check about the CLI command is whether it has a timeout option

It does. globus task wait <task_id> --timeout <seconds>

Is there a way to distinguish between failing tasks and timeouts being exceeded, or could we add that via different exit codes?

Both return the same exit code (1) just like your script here but visually there's a message written to stderr noting the timeout period has expired.
The CLI could exit with a different non-zero code for timeouts if we think that would be a useful thing to do.

The use case is being able to distinguish between a failed transfer and a transfer that has exceeded a certain window but is still progressing. The user asked for the latter case to return 0, but I agree that another non-zero code is preferable. Would you like me to include you on the email thread with the user or just reply here if that will work for the user? An alternative would be to allow the user to set the code for this specifically.

Allowing the user to map their own exit code to a timeout is certainly something we could do, so if someone wants to use 0 they would be able to do that.

If that was in place, then everything for the use case driving this script is covered, and no need to ask the user. Something like
@click.option('--active-timeout-code', 'int', default=1,
              help='Code returned when the timeout window is exceeded but the transfer is still progressing (ACTIVE)')

?
The this script becomes
globus task wait -H --polling-interval 10 --active-timeout-code 0 <transfer ID>

And I have no preference for --active-timeout-code or any other flag.

Can be tracked here: https://github.com/globus/globus-cli/issues/450

Thanks for pointing this out and taking on the change.

@jaswilli can you let me know here when the update hits PyPI and I'll update this repo, tell the user, etc? Thanks

CLI v1.10 has been released. Changelog is here: https://github.com/globus/globus-cli/blob/master/changelog.adoc#1100

Excellent! Thanks again for pointing this out. It was all human error on my side.


Exactly what I was looking for. Great work!
Can you just add an option for grouping in months?

I'm glad you like Picturama. 😀
I'm not really sure about whether grouping by months would be really needed.
I'm planning the following:

In the overview, selections should work over multiple days.
In the overview, small days should be shown next to each other in one row.
In details, the user should be able to switch to the next day seamlessly (see #44).

So, if all this is done, why would you need grouping by months? Maybe you can explain your use case. What do you want to achieve and what causes you trouble in doing it?

In the overview, selections should work over multiple days.
I think this would solve my problem. Most of the time I don't keep that much photos that a sorting by day make sense.


[Accessibility] Snackbar isn't focused when it appears on screen

Steps to Reproduce

Execute flutter run on the code sample
turn on Voice Over (on iOS) and Talkback (on Android)
Tap on first button to show Snackbar

Expected results:
Accessibility focus will move to Snackbar as soon as the view is visible
Actual results:
Android:

Snackbar is not a11y focused

iOS:

Snackbar is not a11y focused.

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'A11y Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('A11y issue'),
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.stretch,
        children: [
          ElevatedButton(
            child: const Text('Tap to show SnackBar'),
            onPressed: () {
              ScaffoldMessenger.of(context).showSnackBar(
                  SnackBar(content: const Text('This is a snack bar message'), action: SnackBarAction(label: 'Dismiss', onPressed: () {
                ScaffoldMessenger.of(context).hideCurrentSnackBar();
              },)));
            },
          ),
          ElevatedButton(onPressed: () {
            final OverlayEntry entry = OverlayEntry(builder: (context) => SafeArea(child: Wrap(
              children: [
                Material(
                  color: Colors.transparent,
                  child: Semantics(
                    focusable: true,
                    focused: true,
                    child: Container(
                      decoration: BoxDecoration(
                          color: Colors.black87,
                          borderRadius: BorderRadius.circular(16.0)
                      ),
                      padding: const EdgeInsets.all(16.0),
                      alignment: Alignment.topCenter,
                      margin: const EdgeInsets.all(16.0),
                      child: Text('This is an overlay toast', style: Theme.of(context).textTheme.headlineSmall?.copyWith(color: Colors.white),),
                    ),
                  ),
                ),
              ],
            )));

            Future.delayed(Duration(seconds: 3), () => entry.remove(),);
            Overlay.of(context)?.insert(entry);
          }, child: const Text('Tap to show overlay toast'))
        ],
      ),
    );
  }
}

Video attached
Android:
https://user-images.githubusercontent.com/17781268/218348677-e65469c0-b2a9-4fa4-9ee1-dd1f8cece3e9.MOV

Hi @suesitran, thanks for the report.
To make the issues easier to track, kindly file a new issue for the issue with overlays so that we can use this to track the issue with SnackBars.
We usually prefer separate issues to be filed for separate bugs.
Please also provide the output of flutter doctor -v.
Thank you

hi @danagbemava-nc ,
I created new issue for overlay a11y issue: https://github.com/flutter/flutter/issues/120638

Hi @suesitran, do you have any reference that states that this should be the expected behavior? I tested with the Pixel Clock app and when the Snackbar appears on screen, the content is read but it is not focused(similar to what flutters behavior currently is).
See the recording below

recording
https://user-images.githubusercontent.com/88313112/218659719-b9c87256-8788-4de7-b939-ca3ea7f8c443.mp4

On Android, the content is read out but the snack bar is not focused. When the snack bar has action button, user needs to swipe through all components to finally reach the end of the screen where snack bar is. This is quite inconvenient for vision impaired user imho.
For iOS, the content is not read out at all, so it's totally invisible to vision impaired user

Checking in the Gmail app, the snackbar that is shown after a swipe action like deleting or archiving a mail, the focus does not shift to the snack bar even though there is an undo action within it


Hardhat Deployment scripts + new contract names in MythX config

What does this PR introduce?
New deployment scripts to enable to deploy one or multiple contracts on target network, using one CLI command 🚀
These deployment scripts were written using hardhat-deploy community plugin for:

[x] hardhat local network
[x] L14 Network ⛓
[x] ensure Base Contracts (especially UniversalProfileInit) are initialized (calling the function initialize(zeroAddress) after deployment 🔒
[x] Edit contract names + paths in MythX .yml config file

we are missing the README instructions

Please document in the readme, and merge if done @CJ42

Please document in the readme, and merge if done @CJ42

@frozeman done ✅


Peak3d/regnode

PR implements the RegisterNodeTx to map an address to a NodeID

Cleanup of existing example files
Implementation of RegisterNodeTx including additional NodeSig and ConsortiumSig
Example which build and executes the tx on kopernikus local network
Note: inputs / outputs are fetched from node using the new platformVm::spend API function

LGTM Just curious - what is a Goose Egg Error? Can't seem to find it online :D

A "Goose Egg Transaction" is when the fee far exceeds a reasonable amount


:bug: Test fix e2e

Description

Reviewer Checklist

[ ] API Go Documentation
[ ] Tests: Unit Tests (and E2E Tests, if appropriate)
[ ] Comprehensive Commit Messages
[ ] Links to related GitHub Issue(s)

Closing in favor of #1428


Removed mention of not charging ETF

Some customer confusion around ETF so editing to align to product terms

@jonathancliu : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@bandersmsft: I'm sorry - only the author of this article, @yashesvi, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Use models from go-pg

Is it possible to use the models from an application using go-pg? The examples only show how to work with sql files, is people actually writing those sql queries in their application or there is a way to get the dynamic query from go-pg to write migrations?

Syre, Go-based migrations (https://github.com/go-pg/migrations/blob/master/example/2_add_id.go) can be any Go code of your choosing. You don't even have to execute SQL queries there.


Unable to edit comment value

I am unable to edit the value of a comment using the Manatee.Trello methods.
Action comment=new Action;
//comment.Data.Value is read-only
comment.Data.Text="some random string"

This yields the following error:
ValidationException`1: 'some random string' is not a valid value.
Manatee.Trello.Internal.Field`1[System.String].Validate (System.String value)
Manatee.Trello.Internal.Field`1[System.String].set_Value (System.String value)
Manatee.Trello.ActionData.set_Text (System.String value)
MyClass.MyMethod (System.String newCom) (at Myclass.cs:29)

This also seems to reset the tags attached to the card, both inside Trello and inside my application. The comments are unchanged however.

I found the reason for the validation error.  I had some logic backwards.
However, fixing that exposed another issue.  I'm working on resolving that.  Once done, I'll have an update for you.

I was able to fix the issue.  It's currently in branch bug/issue59.  I'll merge it when I have a few other new issues worked out.

Please see Manatee.Trello v1.16.0, now available on Nuget.


2.10.0 x86_64-unknown-linux-gnu puts DRG into Sandbox mode

Installing mods via mint adds and activates the chosen mods, but doesn't seem to disable the mod.io integration and thus puts the game into Sandbox mode.

steam-548430.log

I'm not sure why X3DAudio1_7.dll is showing as builtin. Perhaps it changed with a different version of proton?
Deep Rock Galactic\\FSD\\Binaries\\Win64\\X3DAudio1_7.dll" at 00007FA00A2A0000: builtin
You should be able to add WINEDLLOVERRIDES="X3DAudio1_7=b" before %command% in the steam launch options to make it load the native DLL.

Adding that option prevents DRG from running at all.

Another option is setting the override in the wine prefix directly, which is most easily done using protontricks: protontricks --no-bwrap 548430 winecfg. Add new override for X3DAudio1_7 if one doesn't already exist and set it to native, then builtin.

If the game still doesn't launch then please upload another proton log if one gets created

Thank you, with that change it now started properly with the mods installed and mod.io disabled


rainloop is unusable

I don't know why it is so difficult to install this...it was so simple

I don't know why it is so difficult to install this...it was so simple

I don't get it. Was installing simple or not?
Why is it unusable? Whats the problem? What is the error message?

Maybe you can tell us more about your issue?

Here is a tar command to preserve file permissions.
tar -pcvzf xxx.tar.gz ABC

Have you try the latest versions (1.11.2)? https://www.rainloop.net/downloads/

 Hi there

do you have some repository for ubuntu?  would be nice to have a deb file to install it behind the www directory


Boolean Attributes in DSL

Karax's DSL doesn't handle "value-less" attributes well.
Consider the case where I need an input to either be enabled or disabled based on the value of a boolean. Right now, I have to do something like this:
proc drawButton(isInvalid: bool): VNode =
  buildHtml(tdiv):
    if isInvalid:
      button(disabled=""): text "My Button"
    else:
      button(): text "My Button"

It would be much more intuitive if I could just do this:
proc drawButton2(isInvalid: bool): VNode =
  buildHtml(tdiv):
    button(disabled=isInvalid): text "My Button"

On both the C and JS backends, drawButton2 gives this error:
.../app.nim(73, 12) Error: type mismatch: got <VNode, string, bool>
but expected one of:
proc setAttr(n: VNode; key: kstring; val: kstring = "")
  first type mismatch at position: 3
  required type for val: kstring
  but expression 'isValid' is of type: bool

I'm going to doodle a solution to this, but I'd like to hear thoughts from the community.

Karax has solutions for this, see toChecked/toDisabled/toSelected here https://github.com/karaxnim/karax/blob/32c6139db04905ab2596e66846cd5911b461939d/karax/karax.nim#L850On 19 Feb 2023, at 17:58, ryukoposting @.***> wrote:
Karax's DSL doesn't handle "value-less" attributes well.
Consider the case where I need an input to either be enabled or disabled based on the value of a boolean. Right now, I have to do something like this:
proc drawButton(isInvalid: bool): VNode =
buildHtml(tdiv):
if isInvalid:
button(disabled=""): text "My Button"
else:
button(): text "My Button"
It would be much more intuitive if I could just do this:
proc drawButton2(isInvalid: bool): VNode =
buildHtml(tdiv):
button(disabled=isInvalid): text "My Button"
On both the C and JS backends, drawButton2 gives this error:
.../app.nim(73, 12) Error: type mismatch: got <VNode, string, bool>
but expected one of:
proc setAttr(n: VNode; key: kstring; val: kstring = "")
first type mismatch at position: 3
required type for val: kstring
but expression 'isValid' is of type: bool
I'm going to doodle a solution to this, but I'd like to hear thoughts from the community.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Some documentation on how these are used would be helpful.

You pass a boolean, e.g.
let
  completed1 = false
  completed2 = true
  buttonDisabled = true

  colors = [
    "red".cstring,
    "green",
    "blue"
  ]
  selectedColor = colors[1]

buildHtml(tdiv):
  input(`type` = "checkbox", checked = toChecked(completed1))
  input(`type` = "checkbox", checked = toChecked(completed2))
  button(disabled = toDisabled(buttonDisabled))
  select:
    for color in colors:
      option(value=color, selected=toSelected(color == selectedColor)):
        text color

<input type="checkbox" />
<input type="checkbox" checked="checked" />
<button disabled="disabled"></button>
<select>
  <option value="red">red</option>
  <option value="green" selected="selected">green</option>
  <option value="blue">blue</option>
</select>

Does this approach support all boolean-like attributes, including contenteditable?

It does. Maybe a broader name (like "toAttr") would make sense here for all the boolean attributes that aren't disabled/checked/selected

All merged


Missing PHPUnit 6.1 through 6.4

The official docker image for PHPUnit is missing 6.1 through 6.4. It seems to me that it would be ideal to support all versions of PHPUnit to make it more easily approachable to applications testing against those minor versions.

Hello @HeathNaylor,
Yes, it's ideal ;) You're welcome to open PR's and contribute.
I must refacto this repo ASAP.


Making your static site come to life

Tutorial on how to provide some user interaction via:

Giscus comments and reactions
Serverless contact form w/ cloud functions (Netlify)

Category: How To
Tags:

Hugo
Cloud Functions
Serverless

Languages:

NodeJS


usb: Read RSA keypair from user home or generate them

Changes

Use the homedir crate to figure out the current user's home directory instead of the hardcoded path.
Attempt to read the ADB RSA public and private keys from the .android directory inside the user home.
On failure to read said keypair, we resort to generating ephemeral keypairs.
Allow user to supply their own keypair using CLI flags.

Thanks for doing it, this is something I wanted to clean when everything was working fine !
I thought about also allowing users to provide a custom private key with a clap option, can you add it to your PR ?

Yes, I'll add that.

Would you like the program to only accept the private key since we can derive the public key from the former?

Only the private key yes, the program will automatically derive the public key from it. We could do the same for the "classical" process without having to load adbkey.pub

Sure, let's go for that. Also, should we keep the private in our ADBUSBDevice struct or should we keep the signing key. I reckon, the signing key is probably what we'd need for the rest of a connection anyways.

Yes I don't think we need anything else because the signing key is derived from the private key if I remember correctly. Let's keep it inside the struct, this will prevent reloading the key for every command !

Ok, now the PR should suffice our requirements!

Also, you may create some github issues and assign them to me to share the development workload.

Thanks for the work, I'll have a closer look at it this week but everything looks fine to me !

awesome!

Had to remove some unwrap + expect and rework how public key is loaded into the program (used from_der()) + base64 to ease the loading.

Sure, yeah, that's a good way to do it as well. Thanks!


Possible to change namespace Utility?

CollectionHelpers.cs establishes namespace Utility.  This conflicts with my own project's use of Utility and requires using extern alias - which must be manually updated each time there is an update to ical.net.  Would it be possible to eliminate namespace Utility within iCal and move GetHashCode() to another location, perhaps Ical.Net.Utility?

Yeah, the namespaces are a mess. My fear is that going through and really organizing them will be severely breaking change(s) to consumers of the library, and I feel like revving the major version a million times isn't the best plan ever.
In this case, I've changed the root namespace to be Ical.Net by default, which it should have been all along. I've also moved the Utility namespace to Ical.Net.Utility.
nuget version 2.2.11 contains the change.
5bfe9a752783b1063a0698c0d3895781ec0ecb75


Hitboxes still need work

Currently, if we have a hitbox defined as a polygon:
   <object id="1" x="128" y="0">
    <polygon points="0,0 -118.364,0.0909091 -127.818,9.54545 -127.818,62.1818 -116.909,73.8182 -0.181818,74.1818"/>
   </object>

pytiled will pull the object info, but not the polygon points.

I see that you have added a pull request with some work regarding this, the issue is that I think that a more broad solution is required, as "hitboxes" are really just objects that can be used in other contexts, and also can have properties, a template, a type, opacity, etc.
As such, I have implemented a "TiledObject" class that all of them can inherit from.
@attr.s(auto_attribs=True, kw_only=True)
class TiledObject:
    """
    TiledObject object.

    See:
        https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#object

    Args:
        :id_ (int): Unique ID of the object. Each object that is placed on a
            map gets a unique id. Even if an object was deleted, no object
            gets the same ID.
        :gid (Optional[int]): Global tiled object ID
        :location (OrderedPair): The location of the object in pixels.
        :size (Size): The width of the object in pixels
            (default: (0, 0)).
        :rotation (int): The rotation of the object in degrees clockwise
            (default: 0).
        :opacity (int): The opacity of the object. (default: 255)
        :name (Optional[str]): The name of the object.
        :type (Optional[str]): The type of the object.
        :properties (Properties): The properties of the TiledObject.
        :template Optional[Template]: A reference to a Template object FIXME
    """

    id_: int
    gid: Optional[int] = None

    location: OrderedPair
    size: Size = Size(0, 0)
    rotation: int = 0
    opacity: float = 1

    name: Optional[str] = None
    type: Optional[str] = None

    properties: Optional[Properties] = None
    template: Optional[Template] = None

I am going to move in this direction, hopefully it will work out.

So...where are they stored now?

I'm confused about the intent here. But we don't seem to be storing the hitboxes anywhere right now, correct?

Unfortunately that is correct.
On Wed, Jul 17, 2019, 14:59 Paul V Craven<EMAIL_ADDRESS>wrote:

I'm confused about the intent here. But we don't seem to be storing the
hitboxes anywhere right now, correct?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Beefy-Swain/pytiled_parser/issues/3?email_source=notifications&email_token=AAZXWBXQFXNHUH2FZWTPED3P75TY7A5CNFSM4HP6FMRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2GIH3I#issuecomment-512525293,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZXWBSQBYKUNPSPKFZM5T3P75TY7ANCNFSM4HP6FMRA
.

Ok, so the updated PR should do a better job.

I am currently doing a major re-work of this, as object parsing is done in two places right now and really should be cleaned up and consolidated

The new v1.0.0 JSON re-write has 100% coverage of all Tiled object types for this.


Fix other IPv6 SE test

Two tests with similar names, missed this one in my last PR and it accidentally merged since the test is optional

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
6972515de76d34d2d4ffa88fe3cbc28c6699c3c7
link
true
/test gencheck

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
6972515de76d34d2d4ffa88fe3cbc28c6699c3c7
link
true
/test gencheck

lint_istio
6972515de76d34d2d4ffa88fe3cbc28c6699c3c7
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

/test integ-ambient-ipv6

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient-ipv6_istio
c09dd544378dda46feb9ad7dfa52cf5220354b6b
link
false
/test integ-ambient-ipv6

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@howardjohn will wait for the pending test to be fixed before merging

/test integ-ambient-ipv6_istio

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient-ipv6_istio
29b567c0858c9fc95720929adc4b76badeda24dd
link
false
/test integ-ambient-ipv6

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient-ipv6_istio
cc01284e9d689bbe97195119fc4ad6585486c518
link
false
/test integ-ambient-ipv6

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

/test integ-ambient-ipv6_istio

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient-ipv6_istio
3fe7071f653710472d23b4e30ae511925db77969
link
false
/test integ-ambient-ipv6

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

/test integ-ambient-ipv6_istio

@howardjohn: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-pilot-istiodremote-mc_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-pilot-istiodremote-mc

integ-cni_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-cni

integ-helm_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-helm

integ-distroless_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-distroless

integ-security-multicluster_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-security-multicluster

integ-telemetry-mc_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-telemetry-mc

integ-telemetry-discovery_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-telemetry-discovery

integ-ambient_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-ambient

integ-operator-controller_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-operator-controller

integ-telemetry_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-telemetry

integ-pilot-multicluster_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-pilot-multicluster

release-test_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test release-test

integ-security-istiodremote_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-security-istiodremote

integ-pilot_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-pilot

integ-security_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-security

integ-pilot-istiodremote_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-pilot-istiodremote

integ-ds_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-ds

integ-ipv6_istio
8e2d532610f579308eec13507f5b65fa8bdfed56
link
true
/test integ-ipv6

integ-ambient-ipv6_istio
021536725f2813c918bf0bec4f834cf5a4f0995d
link
false
/test integ-ambient-ipv6

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

/test integ-ambient-ipv6_istio

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security_istio
39d1f5f4d86d1751971c334f730403acf7cd899a
link
true
/test integ-security

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

OK this is passing now. A few skips and followups though

@howardjohn: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security_istio
39d1f5f4d86d1751971c334f730403acf7cd899a
link
true
/test integ-security

integ-security-multicluster_istio
39d1f5f4d86d1751971c334f730403acf7cd899a
link
true
/test integ-security-multicluster

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

/retest


SSL_get_shared_ciphers failing from client

Hi ,
I am calling SSL_get_shared_ciphers() funtion  from client application after succsessful Handshake but It's not giving me any data
char   cipherscommon[5012] = { "\0" };
char *string = SSL_get_shared_ciphers(m_ssl, cipherscommon, sizeof(cipherscommon));
Can we use on client application ?
Even call to const SSL_CIPHER *data = SSL_get_current_cipher(m_ssl); is also not giving data
Please guide me with both the usage
My purpose is to get list / get cipher ( which was used ) and if there is mismatch between ciphers supported then I want to log that as error .
Please guide me
Thanks
Ratnesh

Per https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_ciphers.html "This is a server side function only and must only be called after the completion of the initial handshake." and cannot be used on a client application.
SSL_get_current_cipher()takes only a single SSL* argument, but it should be functional for a client SSL after the handshake has completed; please say more about how you are calling it.
Also, openssl alreaady checks for supported ciphers internally, so adding such check at the application layer is redundant.

marking as inactive, to be closed at the end of 3.4 dev, barring further input


Feature request: Array.has_product?(val)

I think it would be useful to have something like .has? / .has_value? / .has_product? for arrays.

I'm not sure what #has? and #has_product?  are supposed to return, but #has_value? is available as Enumerable#includes?.

#has_product? should be the same as #has_value?, because there´s also #each_product

#each_product iterates over cartesian product of several arrays, it's not an alias for #each. So has_product doesn't make sense.
Also, aliases are discouraged in Crystal, so if #includes? exists there is no need to add has? or has_value? if they have the same meaning.

What @konovod said, so closing. Feel free to continue the discussion if you feel misunderstood!


Clear session/invalidate session without triggering login

Could we have a way to invalidate the current session and not redirect to the default baseURL?
Use Case:
If the verfication url (#/users/verify#access_token=abcxyz) is accessed, invalidate the current session and verify the new user using the verification link.
Currently using the OAuth2ImplicitGrantCallbackMixin I am seeing this behavior: Both session.invalidate() and session.store.clear() are redirecting to the login page without triggering verification link.
I have tried intercepting activate method of the OAuth2ImplicitGrantCallbackMixin but to no avail
// users/verify.js
export default Route.extend(OAuth2ImplicitGrantCallbackMixin, {
  ...
  activate() {
    let session = this.get('session');
    if (session && session.get('isAuthenticated')) {
      this.get('session').invalidate(); // <--- Causes a redirect here
      // this.get('session.store').clear() has the same behavior
      this.set('session.verificationURL', window.location.toString());
    }

    return this._super(...arguments);
  },
  ...

I am currently working around this by setting a variable on the session service and using that in the sessionInvalidated callback in the ApplicationRouteMixin
// application.js
export default Route.extend(ApplicationRouteMixin, {
...
  sessionInvalidated() {
    let verificationURL = this.get('session.verificationURL');

    if (verificationURL) {
      this.set('session.verificationURL', null);
      window.location.replace(url); // <-- This alone doesn't work if the url is the same
      window.location.reload(); // <-- if the verification url is already loaded we need to force reload
    } else {
      return this._super(...arguments);
    }
  }

This works but is obviously not very clean. If I am doing this wrong could you please point me in the right direction?

Overriding sessionInvalidated is the only solution here that I could see. You could call the property you're checking for something like noRedirectAfterLogin or so though as you're not using the URL you're currently storing anyway?

Use Case:
If the verfication url (#/users/verify#access_token=abcxyz) is accessed, invalidate the current session and verify the new user using the verification link.

I'd be interested about that use case though? Why allow someone to login when they are already logged in?

Overriding sessionInvalidated is the only solution here that I could see. You could call the property you're checking for something like noRedirectAfterLogin or so though as you're not using the URL you're currently storing anyway?

That's my bad. url should actually be verificationURL
Our app is made to be used on shared systems. So there are plenty of instances where users will leave their systems without logging out. So the next/new/different user needs to be logged in without having to explicitly logout the previous user.

OK, I see. So, as I said what you're doing is the way to do this with ESA 👍


super condenser mod works fine for me on windows 10, but for my friend on windows 11 its considered malformed

we've tried redownloading both the mod and loader, but nothing changed, we also tried manual install, but no luck

We are no longer actively maintaining this version of the Modloader. Therefore we can't guarantee support on Windows 11.
But are you sure that you both downloaded the same file from the same place? The one here is most likely to work https://astroneermods.space/m/Supercondenser
If you are playing on the Microsoft store version it might also be causing if win 11 changed something about how store apps store data.


Adding/Removing ReceiveEndpoints/Handlers/Consumers while Bus is started

I would very much like to modify the set of ReceiveEndpoints and their Handlers and Consumers after the Bus has been started.
I have a set of components which start and stop at various times while my application is running. Some of these components need to wait for messages. The user is allowed to stop/start components.
As components come and go I would like them to be able to subscribe to the bus and then release their subscriptions when they stop.
I invision this would be something like .ReceiveEndpoint() on the IBus (or some interface of it). Which would return some sort of handle to the Endpoint, which I can later Dispose of to disconnect it. On this handle, I would also have Handler<> and Consumer<> methods which would let me modify the messages received and what happens to them. Likewise, the references from these should be disposable in some way.
I should note, I have been doing something similar to this for awhile with MT2. What I've done however is created new ServiceBus for each queue name that I want to listen on. These instances are created on demand, as a given component asks for it. I then am using HandlerSubscriptionExtensions.SubscribeHandler to get a subscription for a specific type. In MT2, this seems to result in the generation of the Exchanges. This method, and something like it, appears to be missing in MT3.

I think this is part of a larger story, where the subscription configuration discovery and management should be a separate part of the API.
For example, this would allow also to manipulate subscriptions without starting any consumer.

Well, the topology of the rabbitmq exchange fabric is very much a transport-level configuration item, but in general I would agree that making the topology available without actually starting the bus would be nice - and there is already an issue tracking that request. #294

@wasabii Curious, why not just start and stop new buses?   For example, when your component starts - crank up a new IBus with your endpoints.  When  your component stops, simply stop the IBus.
@phatboyg Would there be a performance penalty in having several buses like this running in an application at the same time?

When multiple buses are created, each bus has a separate connection to RabbitMQ. While generally not a big deal, if you have a large number of services load balanced across a large number of nodes, the connection counts can get quite high which increases the CPU use on RabbitMQ. Pivotal has repeatedly indicated that lower connection counts typically perform better than high connection counts.
This is why MT3 supports multiple receive endpoints per bus -- to reduce the overall connection count.

This will be merged into develop today.

Does this mean it's done or is there another issue/pull request that is being used for this?

You can call ConnectReceiveEndpoint on a host while the bus is running yes.

With ConnectReceiveEndPoint, Can we bind with exchange with headers?


Added CoreOS installation test

@RackHD/corecommitters @srinia6 @BillyAbildgaard @geoff-reid @keedya

:+1:


connector future

I don't use GitHub, how to run tests on my repo, but I start all unit tests on my PC, it done success (MacOS)

problems with test TestServer_Start, I didn't change this test, on MacOS test passing, on ubuntu something wrong

I fixed kqueue bugs, and improve perfomance by switching off write event handler

@Allenxuxu done


Literal with computed union key is not type checked

TypeScript Version:  2.9.0-dev.20180406

Search Terms: computed literal, computed property, string union key
Code
interface Obj {
  key1: string;
  key2: string; // required, there is no bug if Obj has only one possible key
}
type ObjKey = keyof Obj;
const key = 'key1' as ObjKey;  // type assertion is required, there is no bug if the type of key is the string literal

// No type error, 123 value is not checked
const objLiteral: Partial<Obj> = {
  [key]: 123
};

// This is type checked correctly
const objAssign = {} as Partial<Obj>;
objAssign[key] = 123;

Expected behavior:
Type error for the objLiteral as well.
Actual behavior:
Only type error when assigning to objAssign, but objLiteral has no errors.
Other information:
I think the compiler thinks the [key] is just an excess property like if the key would be any other string, but it does not report the excess property because of #22427.
Playground Link: https://www.typescriptlang.org/play/#src=interface Obj {
  key1%3A string%3B
  key2%3A string%3B %2F%2F required%2C there is no bug if Obj has only one possible key
}
type ObjKey %3D keyof Obj%3B
const key %3D 'key1' as ObjKey%3B  %2F%2F type assertion is required%2C there is no bug if the type of key is the string literal

%2F%2F No type error%2C 123 value is not checked
const objLiteral%3A Partial<Obj> %3D {
  [key]%3A 123
}%3B

%2F%2F This is type checked correctly
const objAssign %3D {} as Partial<Obj>%3B
objAssign[key] %3D 123%3B
Related Issues: #22427
Not duplicate of: #19938

Duplicate of https://github.com/Microsoft/TypeScript/issues/13948

Oh, sorry then. I even checked quickly that issue before, but it looked different as he complains about getting an error when he should not, and in my case, this is the reverse. However, the reason looks the same, thanks for the reference.


show and update returns 1 in each form field

I've populated my table with sample data and I can see the main list of items, I can add and delete items but if I update or show it returns a 1 in each form field.
I've done a var_dump on $company
$company = Company::findOrFail($id);
and it shows the array of the record I'm expecting but pass it to the view and it shows as described.

Can you share what version of laravel are you using and what database?

My laravel version is 6.2 and it's mysql  Ver 14.14 and PHP 7.2.24
little more investigation:
cloned a fresh 6.2 install, created just the migration and seeder
and then followed your install procedure and created a crud
Behaviour is still as described originally. I can delete records, add them but when I show the detail page the form is filled in with a '1' in each field and if I attempt to update a record it updates the record with id=1 and the contents of the fields that I fill in.


Public import for Icons.wurst in ChannelAbilityPreset

If you use channel ability preset package, then you will most likely want to set an icon, since you don't wanna use std one.
This change will remove need in redundant Icons.wurst imports in every ability package, which use ChannelAbilityPreset.

The main reason we don't auto-import the asset packages is because of their size and thus longer compile time.
I think the icons import is small enough and often used to have it included - especially after the typecheck improvements.


Why tall blank spacing above and below publication document viewport?

Maybe duplicate:
https://github.com/readium/readium-desktop/issues/185
(not sure, as the UI layout has evolved since)

Fixed by https://github.com/readium/readium-desktop/pull/363


Cause crash when switch to terminal buffer in neovim

Reproduce steps:

$ nvim open neovim
:term open terminal buffer
:e test open normal buffer
:BufExplorer show buffer list
j<CR> switch back to terminal buffer
The whole neovim quit.

Environment:

iTerm2 on macosx
NVIM v0.3.4
bufexplorer git head

Sorry, I do not use neovim.  Am not seeing this issue with regular vim...


feature request. Center notifications

Could we have notifications optionally centered at the top or bottom of the screen (as opposed to the existing left, and right options).  Also, could the text within the notification be centered by default.  Basically looking something like google apps notification that show up at the top center.
Thanks for the really useful module!

I'm planning to realize it.

Hi @alexcrack,
First of all really thanks for the amazing stuff with the notifications service. Its really cool, btw did you get a chance to work on this feature request of positioning the notification center from top or bottom which will be more appropriate as per our application design.
Please let us know if this is in your TODO list or anywhere near or sooner in further releases.
Thanks,
Bhasker

Yes. It's in my TODO list.

Added in b7b24e23bf6df73a82e8efbcd365839d6ab109a5
Should work in v0.0.14

Hi @alexcrack much appreciated, thanks for making the changes so fast :+1: I have tested the changes and seems to be working fine :)


[crypto] extend ECDSA public key size

psa_export_public_key() uses an extra initial byte (0x04) for storing the exported binary public key.
This commits adds an extra parameter to the public key struct to avoid intermediate buffers when handling otPlatCryptoEcdsaGetPublicKey().

https://github.com/Mbed-TLS/mbedtls/blob/v3.2.1/include/psa/crypto.h#L778
CC: @andrei-menzopol @jwhui @LuDuda

Closing this PR as the implications on the SRP server side introduce similar complexity as the one intended to be simplified.


Suspended User in a org team fails to create Issue in GHE

Example Config
steps:
  - uses: trstringer/manual-approval@v1
    with:
      approvers: org-team1

If there is a suspended user in your GitHub Enterprise org-team1, the action will fail with the following error message.
Error Message
Respond "approved", "approve", "lgtm", "yes" to continue workflow or "denied", "deny", "no" to cancel.
error creating issue: POST https://ghe.nsa.gov/api/v3/repos/noforn/turbulence/issues: 422 Validation Failed [{Resource:Issue Field:assignees Code:invalid Message:}]
##[debug]Docker Action run completed with exit code 1
##[debug]Finishing: Run trstringer/manual-approval@v1

I don't have any suspended user but still getting: https://github.com/trstringer/manual-approval/issues/109


How to set backgroundImage for scene?

Hi! Is it possible to add a .jpeg image to a scene? (I saw you have added road and other images in your blog) .
Also, is there a way to embed OccupancyGrid ?

Are you interested in a fixed background image, or an image that appears at a certain position in space (and moves with the camera)? For our map, we created a new Worldview command that loads and renders the images.
Are you using Webviz or are you creating your own React app with Worldview?

@jtbandes , thanks for fast response!
Worldview regl-worldview repo is used. Tried to do so with Overlay and GTLFScene but I hoped you have some simplest way to do that...
I need set a floor picture of the place where my robot drives. Image that may appear in different locations would be better. Ideally would be a possibility to add few layers on the map (but it's advanced feature).

We don't have any built-in image renderer, but you can make one yourself with a custom command. Here's an example to get you started: https://codesandbox.io/s/nervous-elbakyan-0215j

@jtbandes , thanks a lot!


Type bound subroutines not being highlighted in call statements

This was discussed in issue #57 which is now closed so I wanted to give it it's own issue. To summarize, subroutines called via the call statement are highlighted whether they are intrinsic or not with the exception of type bound subroutines as illustrated below

Frankly I'm not sure if it's possible to make a rule that will correctly highlight these without also highlighting the variable part as well. But for now I'll just leave this issue open as a reminder.

I want to give this a bump since it doesn't seem to have gotten any attention.  I've started using a more object oriented approach lately now that compiler support has been pretty stable for a while.  Functions seem like a harder nut to crack, but subroutines with a call keyword should be possible to catch.  In the simple case by catching the '%' in the regex match for [0-9_a-zA-Z%] (?).
Would connecting to a linter as the SublimeFortran package does help? There seems to be something available in the AtomLinter/linter-gfortran package, though I don't know how helpful that would be.  I could see it being a massive undertaking, though it would offer a lot of additional benefits down the road.
Along with this, it would be nice to see generic scope definition for type attributes e.g.
local_data = some_type%some_data_attribute though maybe that should be a separate issue.
Right now my code is rapidly loosing all of its color :(

It's possible that using a linter will make this possible, but as it stands I'm quite certain it's not possible using Atom's syntax highlighting system. There are two problems that prevent this from working: first, it's practically impossible to distinguish an array reference from a subroutine call in a robust way, and we can't look ahead across multiple lines. For the first problem, these two example should help to illustrate the difficulties
! Simplest Case: The subroutine name is always the last name given in the variable chain.
! So for each component, we can look ahead for any other components, and if there aren't
! any we can mark it as the subroutine name. This can be identified using a look ahead
! regular expression like this
!   '(?<=%)\s*([a-z]\w*)(?=[^%]*\)\s*[;!\n])'
call object_name%subroutine_name(input)

! Less Simple Case: The previous method fails in this case though because it will mistake
! the input object attribute as an additional part of current object chain. Of course, you
! can try to create more complex and robust forward checkers but since objects and their
! attributes can be used as inputs, you will eventually exclude the very thing you want to
! find.
call object_name%subroutine_name(input_object_name%attribute_name)

So I think the only real way to get highlighting for these parts of the grammar will be to incorporate some kind of linter or other much more robust scoping system. The last time I had looked into this I don't remember there being much in the way of good linters for Atom (let alone Fortran in Atom). But it's probably been long enough that I can take another stab at it.


Keyboard shortcuts

Is there an overview of the keyboard shortcuts somewhere?
Is there there an easy way to customise the shortcuts?
I did find the individual keymap settings for the default commands searching the repository source files.
I also searched for an existing issue regarding this topic and decided to start a thread about it so other people will have an easier time in the future finding information related to key-mapping.
Questions/Ideas:

[ ] Documentation on default shortcuts (per mode?)
[ ] cross mode keyboard shortcuts (consistency?)
[ ] easy way to configure keyboard shortcuts

What are your thoughts? Feedback? Did I miss something?
Thanks!

I find that: https://github.com/nhnent/tui.editor/blob/51d11e2fa3fecf8b64750fb3f1150d0985c19445/src/js/keyMapper.js

@Eraldo Sorry for late reply. We are considering a way to show shortcuts in the current editor. For support easy way to show and customize shortcut, the following items must be determined.

Write document about shortcuts.
How show shortcuts information in editor.
How customize shortcuts.

I found out how to display the shortcuts in the editor as tooltips on the buttons (#524)

I found out how to display the shortcuts in the editor as tooltips on the buttons (#524)

so, how to use the shortcut, eg: "command + s" ..., I found no document about this

Is there any status on this?
It would really be nice to allow users to see what keyboard shortcuts are available.


[Cache] Update cache.mdx

Hello team,
Summary
Per the style guide. Links without '  ' within it.
Thanks!

Hi @nenizera
Can I ask where you found this recommendation?
Monospaced formatting is something we use often when linking to functions, fields, parameters, and properties in many different pages.
If the style guide is recommending something different, we should review it.


published ver 5.0 package without command?

why not command system included in the package?

Commands and Signals were merged together to just become Signal.  I forgot to mention this in the release notes though so I'll fix that.  New documentation here: https://github.com/modesttree/Zenject/blob/master/Documentation/Signals.md

The reason for this was to allow code to just fire a signal and not care whether it is listened to as a command or a signal.   Previously you would have to choose to either execute a command or fire a signal.  Also I don't think the distinction between signals and commands was that useful.