text:
adapter-static documentation out of sync with NPM

Describe the bug
The NPM page for adapter-static is missing the latest updates to the documentation. I can see at least these parts missing:
// svelte.config.js
import adapter from '@sveltejs/adapter-static';

export default {
  kit: {
    adapter: adapter({
      // default options are shown
      pages: 'build',
      assets: 'build',
      fallback: null,
      precompress: false
    }),
-
-    prerender: {
-      // This can be false if you're using a fallback (i.e. SPA mode)
-      default: true
-    }
  }
};

And this whole section:

When operating in SPA mode, you can omit config.kit.prerender.default (or set it to false, its default value), and only pages that have the prerender option set will be prerendered at build time.
SvelteKit will still crawl your app's entry points looking for prerenderable pages. If svelte-kit build fails because of pages that can't be loaded outside the browser, you can set config.kit.prerender.entries to [] to prevent this from happening. (Setting config.kit.prerender.enabled also has this effect, but would prevent the fallback page from being generated.)

⚠ During development, SvelteKit will still attempt to server-side render your routes. This means accessing things that are only available in the browser (such as the window object) will result in errors, even though this would be valid in the output app. To align the behavior of SvelteKit's dev mode with your SPA, you can call resolve() with a parameter of {ssr: false} inside the handle() hook.

Reproduction
Linked to the NPM page above. Compare to the GitHub README.
Logs
N/A

System Info
N/A

Severity
annoyance
Additional Information
Confusing people in Discord. :(

I guess what this comes down to is "which readme updates warrant a changeset so that they then get published in a timely fashion" and I don't have a good answer to that. The npm readme is only updated when the package is published, and it's been a couple of months since then.

If it's a low-velocity package, it seems like any changes should trigger a patch. Otherwise, what's the point of changing the documentation? For higher-velocity ones (like Kit), I could see rolling them into releases.

authors: Conduitry tcc-sejohnson

repo: sveltejs/kit


text:
Miniflare error fetching immutable assets

Describe the bug
When running svelte-kit on Cloudflare or Miniflare, no assets in /_app/immutable can be fetched with the error TypeError: Cannot read properties of undefined (reading 'fetch').
I have no idea what causes this.
Reproduction

create a new svelte-kit project npm create svelte@latest
install adapter-cloudflare: npm i --safe-dev @sveltejs/adapter-cloudflare
change import to adapter-cloudflare in svelte.config.js
install miniflare npm i --save-dev miniflare
build and run with miniflare: npm run build && npx miniflare --debug --modules .svelte-kit/cloudflare/_worker.js
open http://127.0.0.1:8787/
error appears in console
open http://127.0.0.1:8787/_app/immutable/start-49f8c643.js
error appears in browser

Logs
[mf:inf] Listening on :8787
[mf:inf] - http://127.0.0.1:8787
[mf:inf] - http://10.37.91.138:8787
[mf:inf] - http://10.10.0.97:8787
[mf:inf] - http://10.1.1.34:8787
[mf:inf] Updated `Request.cf` object cache!
GET / 200 OK (43.86ms)
[mf:err] GET /_app/immutable/start-49f8c643.js: TypeError: Cannot read properties of undefined (reading 'fetch')
    at Object.fetch (/home/dorian/Documents/Programmieren/svelte-kit/test/.svelte-kit/cloudflare-tmp/_worker.js:51:30)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at EventTarget.[kDispatchFetch] (/home/dorian/Documents/Programmieren/svelte-kit/test/node_modules/@miniflare/core/src/standards/event.ts:385:13)
    at Server.<anonymous> (/home/dorian/Documents/Programmieren/svelte-kit/test/node_modules/@miniflare/http-server/src/index.ts:298:20)
GET /_app/immutable/start-49f8c643.js 500 Internal Server Error (344.28ms)

### System Info

```Shell
System:
    OS: Linux 5.15 Archcraft
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
    Memory: 4.36 GB / 15.41 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 16.18.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.19.2 - /usr/bin/npm
  Browsers:
    Chromium: 108.0.5359.124
    Firefox: 108.0
  npmPackages:
    @sveltejs/adapter-auto: ^1.0.0 => 1.0.0
    @sveltejs/adapter-cloudflare: ^1.0.0 => 1.0.0
    @sveltejs/kit: ^1.0.0 => 1.0.0
    svelte: ^3.54.0 => 3.55.0
    vite: ^4.0.0 => 4.0.1

Severity
blocking all usage of SvelteKit
Additional Information
No response

Does it work when you deploy to actual cloudflare workers - in other words, is this "just" an issue when using miniflare locally?

Sometimes. I have a seemingly similar issue with the actual Cloudflare worker, but I am not really able to troubleshoot it, since Cloudflare doesn't provide any logs and I can't test it locally because of this issue 😅
So it would be great to get the miniflare fixed to make the troubleshooting on the actual Cloudflare worker easier :)

I can reproduce this, though I'm not sure what we can do about it to solve it. Miniflare doesn't provide the required ASSETS durable object. I don't cloudflare enough to know how to provide, or if wrangler should be used instead.
Giving this the documentation label in case someone solves this riddle so that we can add this to the README

From the Miniflare docs:

Cloudflare Pages are not directly supported by Miniflare. You must use Wrangler 2.

Unfortunately I don't think there's anything we can do to fix this unless and until Miniflare supports Pages.

I'll be closing this since the cloudlfare adapter now uses an emulator through wrangler

source: gharchive/issue

authors: Rich-Harris dorianim dummdidumm eltigerchino

license: MIT

license_type: permissive

license_source: github-api


text:
Allow the serialisation/deserialisation of non-POJOs

Describe the problem
In my current project I'm in need of sending data back and forth the server for which I've built a series of objects that I can easily serialise and deserialise with the amazing devalue library. This includes the initial load of data via some contraption like this:
export const load = (async () => {
  const data = // ... load data. f.e. from DB
  return { data: pack(data) };
}) satisfies PageServerLoad;

In this example, the function pack is a wrapper of the stringify function from devalue with a set of object types passed to this function as reducers.
On the client side, I'm obviously running the opposite method to get the data back with the equivalent revivers.
I particularly like this option because it allows me to introduce simple functions to these objects that I can run seamlessly regardless of the environment.
At the current stage, however, I'm in need of deduplicating code by separating layout logic from page logic. More often than not, I need to use the layout data to perform some logic on the page (think about the layout loading a resource and the page validating access to this resource).
Due to the current SvelteKit behaviour I can't return any non-POJO on the layout as it will be serialised for the client so I'm forced to use my pack function. However, when I pull this date in the page, I have to first unpack it to be able to use it which feels like a waste of resources.
The same waste of resources can happen on the client side. Attempting to use the data in the client layout requires to unpack it first but so does attempting to use it in the page. With a solution proposed here, the serialisation could be handled by SvelteKit and the same result could be used as many times as needed.
Describe the proposed solution
I think it would be nice if we could add some code in the hooks.server.ts and the hooks.client.ts to allocate for this. For example:
type Reducer = (value: any) => any;
type Reviver = (value: any) => any;
type SerialiseHandle = { reducer?: Reducer, reviver?: Reviver };

export const serialisationHandles: Record<string, SerialiseHandle> = {
   MyObj: {
      reducer: (value) => value instanceof MyObj && [value.param1, value.param2],
      reviver: ([param1, param2]) => new MyObject(param1, param2)
   },
   MyOtherObject: { /* ... */ }
}

This could be replicated similarly on the client hook thus allowing for the potential serialisation/deserialisation of dedicated object (i.e. a server version of MyObj and a client version of it). Alternatively, the handles can be abstracted into a third file to keep consistency between both environments.
Alternatives considered
I tried by returning the raw object on the layout which allows for the exact object to be retrieved on the page. Then I tried to re-return the object with the custom serialisation applied but it still complained about the non-POJOs.
Right now my only options are to either pack/unpack the data or to reload it altogether which it is, in both cases, a waste of compute power.
In the client side, there is the possibility of using a context to prevent from wasting too many resources.
Importance
nice to have
Additional Information
No response

This would be super useful as it's already supported by devalue (as mentioned) and this would simply expose the appropriate API. In my particular usecase, I'd like to be able to write a replacer that converts MongoDB ObjectIDs to their hex strings, so that way I don't need to manually convert them every time I want to return an object that contains an ObjectID (needless to say, this is frequent).

@dkantereivin yes, MongoDB ObjectID is a very common object we use. I writed a little method that "sanitize" the return object, converting ObjectID to string recursively
import dayjs from 'dayjs';
import customParseFormat from 'dayjs/plugin/customParseFormat.js';

dayjs.extend(customParseFormat);

const utils = {
  sanitizeResults : (accounts, format='DD/MM/YYYY') => {
    const toSanitize = (obj) => {
      for (const [ key, value ] of Object.entries(obj)) {
        if (value !== null && typeof value != 'undefined' && value) { // puede ocurrir que el value sea null o undefined
          if (typeof value === 'object') {
            if (Array.isArray(value)) {
              value.forEach((element, i) => {
                if (element !== null && typeof element != 'undefined' && value) { // puede ocurrir que el element sea null o undefined
                  if (typeof element === 'object') {
                    if (element.constructor.name === 'ObjectId') {
                      obj[key][i] = element.toString();
                    } else if (element.constructor.name === 'Date') {
                      obj[key][i] = dayjs(element).format(format);
                    } else {
                      toSanitize(element);
                    }
                  } else {
                    // element no es un objeto
                    // console.log(value);
                  }
                }
              });
            } else if (value.constructor.name === 'ObjectId') {
              obj[key] = value.toString();
            } else if (value.constructor.name === 'Date') {
              obj[key] = dayjs(value).format(format);
            } else {
              toSanitize(value);
            }
          } else {
            // value no es un objeto
            // console.log(key, value);
          }
        }
      }

      return obj;
    };

    if (Array.isArray(accounts)) {
      return accounts.map((account) => {
        return toSanitize(account);
      });
    } else {
      return toSanitize(accounts);
    }
  }
}

Please, omit about date formatting
Then in +page.server.js
import db from '$lib/server/Mongo';
import utils from '$lib/server/Utils';
import { error } from '@sveltejs/kit';

export async function load() {
  const rows = await db.getAssistCustomAggregate({ query: {}, limit: 10 });

  if (rows.assists) {

    return {
      rows      : utils.sanitizeResults(rows.assists),
      totalRows : rows.total
    };
  }

  throw error(404, 'Algo salio mal');
}

Just encountered the same issue with Prisma Decimal data type.
I quite like the proposed solution, it would be useful and rather easy to use.

This would be really nice. I'd like to use luxon as date library. The luxon DateTime type is not a simple POJO, so you need this API of devalue for it to work. I'm not sure, if the custom serializer / deserializer functions have to be put in the hooks file; or maybe better into the sveltekit configuration; but either way would be a big plus!

Adding on, I'm using the official polyfill for the upcoming Temporal standard library in my project and I want to be able to send Temporal.Instants (and such) between the server and client, which should be supported in the future anyways. Having this customization of devalue supported in SvelteKit would be handy. 😄

This is very interesting - we are also using the mongodb ObjectId class heavily and this would definitely make it a lot simpler for us.
I tried to give a PR a go, but the point where I got stuck is probably why this is tricky to implement - when server side rendering pages kit uses uneval and not stringify and supporting custom types here would require a replacer and notably that the class for recreating the type is in scope when the code runs.
If you would do this in hooks.(client|server) it now becomes a significantly more complex api.

Adding on, I'm using the official polyfill for the upcoming Temporal standard library in my project and I want to be able to send Temporal.Instants (and such) between the server and client, which should be supported in the future anyways. Having this customization of devalue supported in SvelteKit would be handy. 😄

Same using Temporal plain date for financial admin dashboard and selecting/filtering on date ranges and Temporal and Date are not serialized. This would be great!

@Rich-Harris also need this with my surrealdb, which introduces RecordID class that gets serialised into json instead of being represented as a class on the client side, and messes with typings due to the fact of how the return data is typed

This is very interesting - we are also using the mongodb ObjectId class heavily and this would definitely make it a lot simpler for us.
I tried to give a PR a go, but the point where I got stuck is probably why this is tricky to implement - when server side rendering pages kit uses uneval and not stringify and supporting custom types here would require a replacer and notably that the class for recreating the type is in scope when the code runs.
If you would do this in hooks.(client|server) it now becomes a significantly more complex api.

Are you sure thats a problem? For me at least, it appears like any values  in +page.ts during SSR of components retains their class object so no issue here?
This issue only exists when we are serialising/deserialising data between server and client, such as +page.server.ts files, +server.ts files, and +layout.server.ts files

Summarizing how we could do this:
We're taking advantage of the fact that we're already using devalue in the backend and frontend and provide hooks for extending its functionality (devalue has a possibility to do that).
On the server:
// hooks.server.js
export const serialize = {
  Vector: {
     check: (value) => value instanceof Vector,
     stringify: (value) => [value.x, value.y],
     banner: `import Vector from './somewhere';`,
     uneval: (value) => `new Vector(${value.x},${value.y})`
  }
}

The above is basically a combination of both the stringify and uneval methods from devalue. We have to do that because SvelteKit uses uneval in some parts and stringify in others. banner (or something similar) is needed as a shared preparation mechanism so that we can ensure that Vector is actually known/in scope.
If there was a way to use stringify in both cases then that would make life (and the API design) easier, but it would probably mean a bit larger payloads for the initial render + time spent parsing.
On the client:
// hooks.client.js
export const deserialize = {
  Vector: ([x, y]) => new Vector(x, y)
}

The client is much easier because there's nothing to do in the case of uneval.
It's not part of the universal hooks because we never serialize on the client and never deserialize on the server.

Perfect! Just what we need

I suspect we could do away with the uneval bit and just use devalue.unflatten in the client, since we're already pulling it in. There's a theoretical performance hit but I bet if we measure it it'll be negligible. (There are some places where uneval would still make sense, like params.)
That way we could match the devalue API directly:
export const serialize = {
  Vector: (value) => value instanceof Vector && [value.x, value.y]
};

This feels a lot nicer than mucking around with a banner (I have no idea how such a thing would work, to be honest).
Actually, you know what? I bet we could make it work with uneval as well, if we wanted to keep things working that way. We would do something like this...
const unevaled = devalue.uneval(data, (value, uneval) => {
  for (const key in serialize) {
    const serialized = serialize[key](value);
    if (serialized) {
      return `deserialize('${key}', ${uneval(serialized)})`;
    }
  }
});

...and then deserialize is a function that has access to our deserializers.

This would be an amazing addition for anyone using complex types, and I assume it would extend to page forms aswell which would fix downstream issues such as in superforms

authors: AlbertMarashi AndreasHald Beiri22 JonathonRP NormandoHall Rich-Harris carlosV2 clavin dkantereivin dummdidumm pkb-pmj


text:
fix: Allow #top and the empty string as special-case non-missing IDs

As noted in #12367, #top is a perfectly valid hashlink for the top of the document. (TODO on rest of description, I'm going to bed.)
Also, AFAICT, there were no tests for handleMissingId in the first place, so I added some.

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Edits

[x] Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.

Not sure why but the added test is failing.

@elliott-with-the-longest-name-on-github I managed to get the CI tests passing. Was there anything else you wanted to do for this PR besides the changeset?

Thanks!

source: gharchive/pull-request


text:
fix typo in temperature converter example

fahrenheight ➜ fahrenheit

🙈 thank you!

authors: Rich-Harris johnmuhl

license: mit

license_source: bigquery


text:
Hi Sverhoeven,

Hi Sverhoeven,
May I ask what is the dbname, username and password to access to the postgresql inside the docker ? I found "carto_db_development', 'postgres' and '' in the config file, which seems to be not right ?
Thanks

The "carto_db_development" is the central db and used for user management. The carto server is running in development mode, that is why the database is called  "carto_db_development".
Each user/organization has its own database to store datasets. You will need to map the username/organization name to a database by querying "carto_db_development" db. See https://github.com/sverhoeven/docker-cartodb/blob/master/geocoder.sh#L15 how the user database of the geocoder is retrieved.
The postgres user is used because it can connect to any database without problems so it is easiest to use the postgres username..
The PostgreSQL has been configured to trust local users so no need for password.
So to connect to a database of a user for example dev user do:
docker exec -ti <name of carto container> bash
USER_DB=`echo "SELECT database_name FROM users WHERE username='dev'" | psql -U postgres -t carto_db_development`
psql -U postgres $USER_DB

Thanks a lot Mr.Sverhoeven, this really helps !!!
By the way, is there any way to access to postgresql in the container from outside apps  ? I saw an older thread where it said it's not possible ??

The current Dockerfile uses the default PostgreSQL configuration which does not allow remote PostgreSQL connections. So the PostgreSQL  configuration needs to be changed as well as exposing 5432 in Docker.

Hi Serhoeven,
I've investigated the solution which I would like to share to everyone.

As you mentioned in your post, git clone https://github.com/sverhoeven/docker-cartodb.git to download the docker-cartodb.git
In DockerFile, we changes "Expose 80" to "Expose 80 5432"
Use sudo docker build -t=sverhoeven/cartodb docker-cartodb/ to build.
Then run the container with sudo docker run -d -p 80:80 -p 5431:5432 -h <servers-external-ip-address> sverhoeven/cartodb
Enter the container as you mentioned: sudo docker exec -ti <name of carto container> bash
Edit postgres.conf file with: vim /etc/postgresql/10/main/postgresql.conf, then change listen_addresses = '*'
Edit pg_hba.conf file with : vim /etc/postgresql/10/main/pg_hba.conf, then add host all all 0.0.0.0/0 trust at the end of the file.
Restart Postgres with: /etc/init.d/postgresql restart

This will work !!!!

repo: sverhoeven/docker-cartodb


text:
Null pointer access in readWithInfo method of SwaggerParser

Null pointer access in io.swagger.parser.SwaggerParser.readWithInfo(String)
result in the else block would be null.
        SwaggerDeserializationResult result = new Swagger20Parser().readWithInfo(node);
        if (result != null) {
            result.setSwagger(new SwaggerResolver(result.getSwagger(), new ArrayList<AuthorizationValue>(), null).resolve());
        }
        else {
            result.message("Definition does not appear to be a valid Swagger format");
        }

I'll create a PR to fix this issue.

repo: swagger-api/swagger-parser


text:
Generate Boolean info causes no error, but fails.

Describe the bug
The first boolean I tried to document gave no error but resulted in the entire Parameters block being replaced.
In version 1.8.7, the block was replaced with a message that said Could not render n, see the console.
Upgrading to 1.8.10 changed that to Could not render Dt, see the console.
Below is the block of comments which is being processed.  The lines marked Quarantine are the offending lines.  Uncommenting the 'string' version results in all parameters being presented, although the Quarantine is wrong.   It's uncommenting the boolean version which results in failure.
// @Tags        Inventory
// @Summary     Add a new Room to the Inventory Rooms
// @Description Add a room with an ID, a name, and a quarantine status
// @Accept      json
// @Produce     json
// @Param       InventoryRoomID     body     string true  "ID of the room to be added"
// @Param       InventoryRoomName   body     string true  "Name of the room to be added"
// @Param       LocationLicense 	body     string true  "The license number of the location making the request."
// //@Param       Quarantine 			body     string false "Quarantine room or not"
// @Param       Quarantine 			body     boolean  false "Quarantine room or not"
// @Success     200             	{object} forms.InventoryRoomResponse  "ok"
// @Failure     400             	{object} api_error.APIError     "Bad Request"```

**To Reproduce**
Steps to reproduce the behavior:
run `swag init` with this set of documentation comments

**Expected behavior**
I expected a parameter named Quarantine to show up in the generated docs as a boolean

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Your swag version**
1.8.10

**Your go version**
1.19

**Desktop (please complete the following information):**
 - OS: Windows 11
 - Browser: Edge
 - Version:  110.0.1587.57 (Official build) (64-bit)

**Additional context**
Incidentally, changing from 1.8.7 to 1.8.10 also generated errors on other docs unrelated to this issue, but which might be of interest.

There were two:
vendor/github.com/pelletier/go-toml/v2/internal/characters/utf8.go:183:2, strconv.ParseUint: parsing "b10000000": invalid syntax
and
vendor/github.com/pelletier/go-toml/v2/internal/characters/utf8.go:184:2, strconv.ParseUint: parsing "b10111111": invalid syntax

I should add that I'm guessing that the Console mentioned is the JavaScript console,   Here's what's in there in red:

       Error: Expected `string` for value, got `true`
    at t (index.js:29:12)
    at Object.i [as highlight] (core.js:39:11)
    at G.astGenerator (highlight.js:296:27)
    at M (highlight.js:399:20)
    at si (react-dom.production.min.js:157:137)
    at Ks (react-dom.production.min.js:267:460)
    at Il (react-dom.production.min.js:250:347)
    at Ol (react-dom.production.min.js:250:278)
    at Cl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163)
cs @ react-dom.production.min.js:216
r.payload @ react-dom.production.min.js:217
da @ react-dom.production.min.js:130
Wi @ react-dom.production.min.js:184
Ks @ react-dom.production.min.js:269
Il @ react-dom.production.min.js:250
Ol @ react-dom.production.min.js:250
Cl @ react-dom.production.min.js:250
bl @ react-dom.production.min.js:243
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:18
Jo @ react-dom.production.min.js:122
Zo @ react-dom.production.min.js:123
Go @ react-dom.production.min.js:122
wl @ react-dom.production.min.js:244
notify @ Subscription.js:19
t.notifyNestedSubs @ Subscription.js:90
t.handleChangeWrapper @ Subscription.js:95
v @ redux.js:296
(anonymous) @ utils.js:180
(anonymous) @ redux.js:546
(anonymous) @ actions.js:250
await in (anonymous) (async)
y @ debounce.js:95
x @ debounce.js:144
E @ debounce.js:132
setTimeout (async)
b @ debounce.js:103
_ @ debounce.js:172
(anonymous) @ actions.js:266
(anonymous) @ utils.js:177
(anonymous) @ redux.js:546
(anonymous) @ OperationContainer.jsx:159
(anonymous) @ OperationContainer.jsx:112
Ve @ react-dom.production.min.js:52
Ge @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
On @ react-dom.production.min.js:100
jn @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Mn @ react-dom.production.min.js:105
Xt @ react-dom.production.min.js:75
Qt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Jo @ react-dom.production.min.js:122
Re @ react-dom.production.min.js:292
Zt @ react-dom.production.min.js:73
error-boundary.jsx:18

       Error: Expected `string` for value, got `true`
    at t (index.js:29:12)
    at Object.i [as highlight] (core.js:39:11)
    at G.astGenerator (highlight.js:296:27)
    at M (highlight.js:399:20)
    at si (react-dom.production.min.js:157:137)
    at Ks (react-dom.production.min.js:267:460)
    at Il (react-dom.production.min.js:250:347)
    at Ol (react-dom.production.min.js:250:278)
    at Cl (react-dom.production.min.js:250:138)
    at bl (react-dom.production.min.js:243:163) {componentStack: '\n    at M (http://localhost:4000/documentation/swa…4000/documentation/swagger-ui-bundle.js:2:212284)'}```

Following up, I have a workaround which is very ugly, but workable.
The annotation:
// @Param       Quarantine 		body     boolean false "Quarantine room or not"
fails if the term is 'bool' instead of 'boolean'.  I let it generate the docs.
Then I edit docs/docs.go and modify the term 'boolean' to be 'bool', thus:
                    {                         "description": "Quarantine room or not",                         "name": "Quarantine",                         "in": "body",                         "schema": {                             "type": "bool"                         }                     }
This results in the parameters block being presented w/o error

This was resolved by having the @Param line explicitly reference the object instead of having multiple lines referencing each one individually.

repo: swaggo/swag


text:
How to add multi http method?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

what do you mean?
Is this OPEN API 2.0 compliant?

authors: lily-lee ubogdan


text:
feat: ability to set "schemes" programatically

Describe the PR
Ability to set "schemes" programatically
Additional context
PR for ISSUE: #433

Codecov Report

Merging #438 into master will decrease coverage by 0.06%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
- Coverage   81.83%   81.77%   -0.07%
==========================================
  Files           7        7
  Lines        1448     1454       +6
==========================================
+ Hits         1185     1189       +4
- Misses        157      158       +1
- Partials      106      107       +1

Impacted Files
Coverage Δ

gen/gen.go
60% <71.42%> (+0.81%)
:arrow_up:

Continue to review full report at Codecov.

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

Readme updated.

@ubogdan Thanks for your contributions. 👍

authors: codecov-io easonlin404 ubogdan


text:
Update geeksay.js

wrote a quote for the project :)

Hey @rishi-kai21,
Check here

You are missing "," in three lines.
Also, your added quote translation is invalid.

Hey @rishi-kai21, Check here  You are missing "," in three lines.
Also, your added quote translation is invalid.

please review the changes I've made . I apologise for taking your time.

repo: swapagarwal/geeksay


text:
backend/drm: get rid of BO handle table

https://github.com/swaywm/wlroots/pull/3131 has introduced a table to ref'count buffer handles.
However we don't really need a buffer handle table if all we're going to do is to turn these into KMS FB IDs. Instead we can create the handles, then create the KMS FB, then close the handles:
https://github.com/Plagman/gamescope/blob/1989c291ee87b01ec726e1bc6dfecfa2970e695e/src/drm.cpp#L797
One unfortunate issue is drmModeSetCursor2, which takes a handle instead of a FB ID. So we can't do that before we drop support for the legacy KMS API.

@emersion, I was going to create a new issue as you directed on https://github.com/swaywm/wlroots/issues/2916 about fullscreen corruption after the introduction of wlr_drm_bo_handle_table, but I guess this supersedes that.  FWIW nothing particularly unusual stood out in the debug output of sway (but I can attach it) and dmesg showed nothing.

authors: emersion sjnewbury

repo: swaywm/wlroots


text:
Fix wlroots.pc file path on FreeBSD

I did not catch this earlier because I'm using the ports system to install wlroots, which automatically deals with such issues, but the default directory for pkg-config files is not the right one for FreeBSD.
This commit changes the installation directory of wlroots.pc on FreeBSD to /libdata/pkgconfig, and leaves it as the default on other systems.

Shouldn't this be fixed in Meson instead?

meson.build:164:1: ERROR:  Unknown variable "libdir".

@emersion
You are right, fixing this in Meson seems more appropriate. I'll make a PR there.
@SirCmpwn
Oops, I didn't test the non-FreeBSD path before PR-ing. Sorry for that.
But if this gets resolved in Meson, it does not matter anyways. Or should I push a fix, just in case Meson won't accept a PR to change the default pkgconfig directory on FreeBSD?

meson is usually pretty responsive to these sorts of issues, I'd just see if they'll take the fix.

Here's the PR: https://github.com/mesonbuild/meson/pull/4410

Closing because this is a Meson bug.

authors: SirCmpwn emersion sghctoma


text:
Support pointer-gestures on Wayland backend

This is useful for developing compositors that have their own gestures.

Thank you!

authors: ddevault myfreeweb


text:
xdg shell: clean up popup iterator API

This function is not well suited to rendering as it does not iterate
over subsurfaces. Therefore, it makes little sense to use the standard
surface iterator function. Introduce an new xdg-popup iterator function
and use that instead.
This is a breaking change.

We should consider simply removing this function instead if #2609 is accepted. I don't know of any use case for iterating popups in a compositor aside from rendering.

We should consider simply removing this function instead if #2609 is accepted. I don't know of any use case for iterating popups in a compositor aside from rendering.

I agree. We can always re-introduce the function if a compositor finds a use-case.

I agree. We can always re-introduce the function if a compositor finds a use-case.

Sounds good to me, I changed the commit to remove this function instead.

Sounds good to me, I changed the commit to remove this function instead.

(Needs a rebase.)
Sway pull request: https://github.com/swaywm/sway/pull/5937

(Needs a rebase.)
Sway pull request: https://github.com/swaywm/sway/pull/5937

Thanks!

Thanks!

authors: emersion ifreund


text:
Pass newOptions to plugin invocation

Describe the feature
In order to implement something like babel-plugin-codegen it would be useful to have newOptions passed down to the plugin so that it can have the filename to resolve other modules via require.
Babel plugin or link to the feature description
https://github.com/kentcdodds/babel-plugin-codegen
https://github.com/swc-project/swc/blob/4ca85ec79cc24ed11191668501c21626777c0b2a/node-swc/src/index.ts#L126
https://github.com/kentcdodds/babel-plugin-codegen/blob/4ed043c88e7bd54f48bbc06a68664012d52965cc/src/helpers.ts#L43

Closing as we won't revisit legacy plugin interface. I believe new wasm plugin have proper metadatacontext can be used for these kind of purpose.

authors: aaaristo kwonoj

repo: swc-project/swc


text:
Virtual Set 16

VSet 16 plus a few small fixes.

Could you add Set 16 to the sets.json file too?

Escape Pod & We're Doomed
The JSON references a card in a hires subfolder.
card "/starwars/Virtual4-Light/hires/escapepodweredoomed.png"
It is technically there, but the only card I can find that does this.
Is this a new option going forward that I need to code for?  (I use image pathing to do psuedo-sorting and this throws it off.)

Escape Pod & We're Doomed
The JSON references a card in a hires subfolder.
card "/starwars/Virtual4-Light/hires/escapepodweredoomed.png"
It is technically there, but the only card I can find that does this.
Is this a new option going forward that I need to code for? (I use image pathing to do psuedo-sorting and this throws it off.)

There are the standard images in the root (thumbnail) and large subfolders.
So I'm not sure why this is necessary unless there is a grand scheme in play.

Escape Pod & We're Doomed
The JSON references a card in a hires subfolder.
card "/starwars/Virtual4-Light/hires/escapepodweredoomed.png"
It is technically there, but the only card I can find that does this.
Is this a new option going forward that I need to code for? (I use image pathing to do psuedo-sorting and this throws it off.)

There are the standard images in the root (thumbnail) and large subfolders.
So I'm not sure why this is necessary unless there is a grand scheme in play.

Correct image reference:
https://res.starwarsccg.org/cards/Virtual4-Light/large/escapepodweredoomed.gif

Hey, Ron.
If you look at the Card Image docs in the holotable repo you will see that the hires images are the source of truth. Everything flows downhill from there.

There is a desire to use the hires images with "gemp*.
That being said, you are right that the json db should continue to reference the large images. Alternatively we need to update the downstream parsers to replace hires with large. What do you think?

Hey, Ron.
If you look at the Card Image docs in the holotable repo you will see that the hires images are the source of truth. Everything flows downhill from there.

There is a desire to use the hires images with gemp. I could see it both ways, but might be valuable to have the JSON DB reference the hires image. The hires images are not always available, so this would be any easy way of knowing without checking. The downside is that oversized images would be used by systems blind referencing the json db.
That being said, you are right that the json db should continue to reference the large images. Alternatively we need to update the downstream parsers to replace hires with large. What do you think?

I see.
In this instance, I think everything is in order except this one file referencing the hires image.  The large image does exist and should be referenced like all the others.

Hey, Ron.
If you look at the Card Image docs in the holotable repo you will see that the hires images are the source of truth. Everything flows downhill from there.

There is a desire to use the hires images with gemp. I could see it both ways, but might be valuable to have the JSON DB reference the hires image. The hires images are not always available, so this would be any easy way of knowing without checking. The downside is that oversized images would be used by systems blind referencing the json db.
That being said, you are right that the json db should continue to reference the large images. Alternatively we need to update the downstream parsers to replace hires with large. What do you think?

Also, something didn't work with generating the thumbnails on the light side.  There are only 2.  The rest are missing.

I added the missing set16 to sets.json.

authors: DevoKun Gergall ronhowe

repo: swccgpc/swccg-card-json


text:
Update credential-support version

A new version of credential support is available which allows unlimited updates to the certificate chain.
When updating to this version The ExternalChainCredential added in 1.2.2 should be deleted again.
Implementations using 1.2.2 should use the latest version of credential-support and should NOT use ExternalChainCredential.

Fixed in PR https://github.com/swedenconnect/ca-engine/pull/21.

authors: Razumain martin-lindstrom

repo: swedenconnect/ca-engine


text:
Allow external URL for CRLDP in simple CA

When simple CA is run locally, the CRL is not available and signed documents can't be  validated. To allow tests where the document is validated, the CRL can be posted to a public location.
To support this, it must be possible to specify an external CRLDP location, and not just a path under localhost

Fixed

repo: swedenconnect/signservice


text:
improve font customization (and consistency)

The following methods in Plot.cs should be modified to all be consistent with one another. Check these as they are verified/working. All arguments should be in the order: name, size, color, bold.
Progress

[x] PlotText()
[x] XLabel()
[x] YLabel()
[x] Title()
[x] Legend()

I did this and added an example to the cookbook: https://github.com/swharden/ScottPlot/tree/master/cookbook#custom-fonts

repo: swharden/ScottPlot


text:
Update ServiceLifecycle.Configuration comments

It seems to me that the comments of shutdownSignal and installBacktrace were inverted, I apologize in advance if I misunderstood something.

@swift-server-bot test this please

authors: Buratti yim-lee

repo: swift-server/swift-service-lifecycle


text:
Add UISearchController to the Stations tableView

Hi !
My app has more than 80 radio stations, so adding the search capability was very useful, this functionality can be enabled / disabled in SwiftRadio-Settings.swift :
//**************************************
// GENERAL SETTINGS
//**************************************

// Display Comments
let DEBUG_LOG = true
// Enable the search bar
let searchable = true

Thanks,
One quick thing, then we can review and hopefully add your feature!
Per the submission guidelines in the readme: Please create a new branch and submit the PR for that branch. (e.g. "feature/uisearchbar"). Reasoning: We'd like to keep the master branch lightweight, and this will allow us to review and decide whether it should be an official branch or merged into master. Either way, hopefully it will be approved as an official part of the repo.
👍

Hi again !
Done with a branch named : searchbar
Thank you :+1:

authors: fethica swiftcodex

repo: swiftcodex/Swift-Radio-Pro


text:
Re-indenting multiline string literal with multiline tertiary expression fails

The following test fails. It involves a multi-line string literal that has a tertiary expression. The string literal needs re-indentation, but parts of the tertiary expression's indentation in the result has wrong indentation level.
  func testMultilineRawStringWithMultilineTertiaryThatNeedsReindentation() {
    let input =
    #"""
    f(
      """
      \(x ? "" :
      y)
      """)
    """#

    let expected =
    #"""
    f(
        """
        \(x ? "" :
        y)
        """)

    """#

    var configuration = Configuration.forTesting
    configuration.indentation = .spaces(4)
    assertPrettyPrintEqual(input: input, expected: expected, linelength: 80, configuration: configuration)
  }

Failure diagnostics:
failed - Pretty-printed result was not what was expected - Actual output (+) differed from expected output (-):
 f(
     """
     \(x ? "" :
-    y)
+  y)
     """)

Note that the formatted result is syntactically invalid.

rdar://132599415

repo: swiftlang/swift-format


text:
Compiler crash when setting strict concurrency complete and default UIView param

Description
While prepping for Swift 6, I set Strict Concurrency Checking to Complete and encountered a compiler crash because of a default UIView param.
Reproduction

Xcode 15.4
Create a new app project
Set strict concurrency checking to complete
Create new file and paste the code below and try compiling

class CustomView: UIView {

    // default param of UIView() causes compiler crash
    // changing to nil compiles
    // lowering strict concurrency checking compiles
    init(foo: UIView? = UIView()) {
        super.init(frame: .zero)
    }

    required init?(coder: NSCoder) {
        nil
    }
}

class TestViewController: UIViewController {

    private let customView = CustomView()

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.addSubview(self.customView)
    }
}

Stack dump
Stack dump:
0.	Program arguments: /Applications/Xcode-15.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Users/bartcone/Documents/dev/StrictConcurrencyBug/StrictConcurrencyBug/TestViewController.swift /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/DerivedSources/GeneratedAssetSymbols.swift -emit-dependencies-path /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/Objects-normal/arm64/TestViewController.d -emit-const-values-path /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/Objects-normal/arm64/TestViewController.swiftconstvalues -emit-reference-dependencies-path /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/Objects-normal/arm64/TestViewController.swiftdeps -serialize-diagnostics-path /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/Objects-normal/arm64/TestViewController.dia -emit-localized-strings -emit-localized-strings-path /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/Objects-normal/arm64 -target arm64-apple-ios17.4-simulator -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk -I /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Products/Debug-iphonesimulator -F /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Products/Debug-iphonesimulator -no-color-diagnostics -enable-testing -g -module-cache-path /Users/bartcone/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -serialize-debugging-options -const-gather-protocols-file /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/Objects-normal/arm64/StrictConcurrencyBug_const_extract_protocols.json -enable-bare-slash-regex -strict-concurrency=complete -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/bartcone/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/bartcone/Documents/dev/StrictConcurrencyBug -resource-dir /Applications/Xcode-15.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -ivfsstatcache -Xcc /Users/bartcone/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator17.5-21F77-89c9b7af80e5612d0557fcca3b72165f.sdkstatcache -Xcc -I/Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/StrictConcurrencyBug-generated-files.hmap -Xcc -I/Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/StrictConcurrencyBug-own-target-headers.hmap -Xcc -I/Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/StrictConcurrencyBug-all-target-headers.hmap -Xcc -iquote -Xcc /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/StrictConcurrencyBug-project-headers.hmap -Xcc -I/Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/DerivedSources-normal/arm64 -Xcc -I/Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/DerivedSources/arm64 -Xcc -I/Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/DerivedSources -Xcc -DDEBUG=1 -module-name StrictConcurrencyBug -frontend-parseable-output -disable-clang-spi -target-sdk-version 17.5 -target-sdk-name iphonesimulator17.5 -external-plugin-path /Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk/usr/lib/swift/host/plugins#/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk/usr/local/lib/swift/host/plugins#/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Applications/Xcode-15.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-15.4.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Build/Intermediates.noindex/StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/Objects-normal/arm64/TestViewController.o -index-unit-output-path /StrictConcurrencyBug.build/Debug-iphonesimulator/StrictConcurrencyBug.build/Objects-normal/arm64/TestViewController.o -index-store-path /Users/bartcone/Library/Developer/Xcode/DerivedData/StrictConcurrencyBug-dibbntunibjwjtfewlxsuacsrdmj/Index.noindex/DataStore -index-system-modules
1.	Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
2.	Compiling with the current language version
3.	While evaluating request IRGenRequest(IR Generation for file "/Users/bartcone/Documents/dev/StrictConcurrencyBug/StrictConcurrencyBug/TestViewController.swift")
4.	While emitting IR SIL function "@$s20StrictConcurrencyBug18TestViewControllerC06customE033_03C22878A9D7B47F4D9332263C356D40LLAA06CustomE0Cvpfi".
 for expression at [/Users/bartcone/Documents/dev/StrictConcurrencyBug/StrictConcurrencyBug/TestViewController.swift:36:30 - line:36:41] RangeText="CustomView("
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x0000000109febf3c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000109feb0f8 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000109fec544 SignalHandler(int) + 360
3  libsystem_platform.dylib 0x000000019137b584 _sigtramp + 56
4  swift-frontend           0x000000010497c79c llvm::IRBuilderBase::CreateAlignedLoad(llvm::Type*, llvm::Value*, llvm::MaybeAlign, bool, llvm::Twine const&) + 88
5  swift-frontend           0x000000010497c79c llvm::IRBuilderBase::CreateAlignedLoad(llvm::Type*, llvm::Value*, llvm::MaybeAlign, bool, llvm::Twine const&) + 88
6  swift-frontend           0x0000000104cd5704 swift::irgen::IRGenFunction::emitSuspensionPoint(swift::irgen::Explosion&, llvm::Value*) + 984
7  swift-frontend           0x0000000104e1e9a8 (anonymous namespace)::IRGenSILFunction::visitSILBasicBlock(swift::SILBasicBlock*) + 68520
8  swift-frontend           0x0000000104e0c4fc swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 11556
9  swift-frontend           0x0000000104c60430 swift::irgen::IRGenerator::emitGlobalTopLevel(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) + 2472
10 swift-frontend           0x0000000104dbf940 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 4016
11 swift-frontend           0x0000000104e0954c swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::IRGenRequest const&, swift::Evaluator&) + 176
12 swift-frontend           0x0000000104dcc264 llvm::Expected<swift::IRGenRequest::OutputType> swift::Evaluator::getResultUncached<swift::IRGenRequest>(swift::IRGenRequest const&) + 836
13 swift-frontend           0x0000000104dc2438 swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 264
14 swift-frontend           0x00000001048f00b8 generateIR(swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, llvm::GlobalVariable*&, llvm::ArrayRef<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>) + 156
15 swift-frontend           0x00000001048ea294 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1892
16 swift-frontend           0x00000001048e9444 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 608
17 swift-frontend           0x00000001048ed694 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1448
18 swift-frontend           0x00000001048eb6d0 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 4968
19 swift-frontend           0x000000010487ae8c swift::mainEntry(int, char const**) + 2612
20 dyld                     0x0000000190fc20e0 start + 2360

Expected behavior
Expected an error or warning with descriptive reasoning.
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Additional information
No response

I can't reproduce this in Swift 6.0. I believe this was fixed by https://github.com/swiftlang/swift/pull/72332

authors: bartcone hborla

repo: swiftlang/swift


text:
Delete lifetime dependence inference on mutating self

We don't need this anymore since we have @lifetime(target: sources) syntax

@swift-ci test


text:
Add support for Laravel 11

Added support for Laravel 11

Thank you @ezitisitis

@aozisik Thanks to you! I have your package on almost every website I build 😄

authors: aozisik ezitisitis

repo: swiftmade/laravel-plausible-exclude


text:
account for case of no domain passed with username in NTLMAuthenticator

Fixes issue 794

Thank you @shadiakiki1986.

repo: swiftmailer/swiftmailer


text:
All OpenGL drawing should be done on the main thread

When using Qt, all graphics operations have to be done on the main thread; otherwise the results are undefined and may result in a crash.  Most of the time this works fine, but I have repeatedly observed crashes when running Mapviz in rqt due to OpenGL operations being done on separate threads.

Actually, this shouldn't be closed yet, the TexturedMarker plugin also needs to be updated.

repo: swri-robotics/mapviz


text:
Need an RPM Key for libgeos++

Right now, the bloom script complains that there is no key for installing libgeos++ in fedora:heisenbug. You can just tell it to skip the generator for that distribution (and really, who's running ROS on non-Ubuntu systems?) but we should figure out what the RPM key is for that library and add it to the rosdep db.

This was fixed during the kinetic release.


text:
🛑 BestQA_GO is down

In 66d7866, BestQA_GO (https://www.bestqa.net/go/bestqa_dev/up) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BestQA_GO is back up in f3c5e6c.

repo: swuecho/upptime


text:
🛑 BestQA is down

In dba667a, BestQA (https://www.bestqa.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: BestQA is back up in b89f726.


text:
🛑 雙龍體育購物Shop is down

In 53da08d, 雙龍體育購物Shop (https://ssangyongsports.easy.co/) was down:

HTTP code: 500
Response time: 1223 ms

Resolved: 雙龍體育購物Shop is back up in 524ecf6.

repo: sxadxsx/upptime


text:
[Bug] Error during upload for Fathom

Yacuthulluzan — Today at 12:26 AM
It appears it was the filename in the archive.  "Fathom (Bally 1981) FrankEnstein 3.0.2 .vpx"

Log files have been requested.

Fixed with 3.5.1


text:
read_image does not work with pathlib.Path

Currently calling read_image(path) with path a pathlib.Path objects fails with the following error:
Traceback (most recent call last):
  File "/home/emmanuel/.local/lib/python3.12/site-packages/cxx_image_io/io.py", line 49, in read_image
    metadata = parser.readMetadata(image_path, metadata_path)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: readMetadata(): incompatible function arguments. The following argument types are supported:
    1. (arg0: str, arg1: Optional[str]) -> Optional[cxx_image.ImageMetadata]

Invoked with: _PosixPath('...'), None

read_image(str(path)) works as a workaround, but it should probably be better if Path were directly supported.

Please try it with new v0.0.10, I changed it to patlib.Path
https://pypi.org/project/cxx-image-io/0.0.10/

Thanks it works fine!

authors: emmcb sygslhy

repo: sygslhy/image-io


text:
🛑 Superior Surface is down

In fd9d050, Superior Surface (https://superior-surface.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Superior Surface is back up in 44e8762 after 20 minutes.

repo: symapex/upsite


text:
🛑 Decor and Scape is down

In 19df50d, Decor and Scape (https://decorandscape.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Decor and Scape is back up in ca27e81 after 10 minutes.


text:
🛑 Sensitive Clean is down

In 726dfbf, Sensitive Clean (https://sensitive-clean.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sensitive Clean is back up in 5c49280 after 3 hours, 7 minutes.


text:
🛑 GMB Power is down

In 07aca65, GMB Power (https://gmbpower.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GMB Power is back up in a703492 after 1 hour, 28 minutes.


text:
🛑 Is Green Scene is down

In 441a711, Is Green Scene (https://isgreen-scene.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Is Green Scene is back up in cb7126d after 35 minutes.


text:
🛑 Is Green Scene is down

In c7b0d3e, Is Green Scene (https://isgreen-scene.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Is Green Scene is back up in 4e41884 after 21 minutes.


text:
🛑 Prism Carpet Cleaning is down

In 1d1f3e3, Prism Carpet Cleaning (https://prismcarpetcleaningtx.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Prism Carpet Cleaning is back up in ba5415e after 52 minutes.


text:
🛑 Marble Wood is down

In e871e5d, Marble Wood (https://marblewoodca.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Marble Wood is back up in 27ea744 after 9 minutes.


text:
🛑 My Drywall Guy is down

In 129141a, My Drywall Guy (https://my-drywall-guy.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: My Drywall Guy is back up in fbb0b9c after 10 minutes.


text:
🛑 Boon Wood Flooring is down

In 54795ea, Boon Wood Flooring (https://boonwoodflooring.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Boon Wood Flooring is back up in 77cf092 after 10 minutes.


text:
🛑 Wall Doctor Denver is down

In bd4b62e, Wall Doctor Denver (https://walldoctordenver.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wall Doctor Denver is back up in 0898117 after 14 minutes.


text:
🛑 True Word Translation is down

In 7208fce, True Word Translation (https://truewordtranslation.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: True Word Translation is back up in b94e8c8.


text:
🛑 Wiles Outdoor Lawn Care is down

In 12b7928, Wiles Outdoor Lawn Care (https://wilesoutdoorlawncare.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Wiles Outdoor Lawn Care is back up in b811ddd.


text:
🛑 Class Deck Miami is down

In 9ecabf1, Class Deck Miami (https://classdeckmiami.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Class Deck Miami is back up in a6b8d50.


text:
🛑 Giveme Green is down

In 37700eb, Giveme Green (https://giveme-green.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Giveme Green is back up in 1482289 after 20 minutes.


text:
deprecated the activation strategy class in favor of the one in Symfony

In symfony/symfony#11805, I propose to move the activation strategy class to the Symfont bridge. This PR deprecates the current class from the bundle in favor of the one in the bridge. Obviously, this PR can not be merged before the release of Symfony 2.6 at the earliest.

Hi,
What about this PR ?
'request' was removed in Symfony3 so NotFoundActivationStrategy does not work anymore.

I guess at some point we need to branch out for symfony 3.0 (or 2.7+) into a v3.0 of this bundle.

authors: Seldaek fabpot jum4

repo: symfony/monolog-bundle


text:
[UX-TURBO] turbo_stream_listen returns 401 in production

Hello. Thanks for making Symfony UX, it's incredible.
I currently run into a problem while using Turbo with Mercure and I'm not too sure if I should report it here or in the Mercure repo so I'm trying my luck here.
My Mercure hub is currently proxied by Nginx and works perfectly in dev. I have a voting system and when someone votes, the vote count updates thanks to the #[Broadcast] attribute and the turbo_stream_listen twig method.
In prod, however, I seem always to get a 401 Unauthorized response from Mercure no matter what. The votes are not even private, everyone should be able to see them.
Mercure service
mercure:
    image: dunglas/mercure
    restart: unless-stopped
    environment:
      SERVER_NAME: ":3000"
      MERCURE_PUBLISHER_JWT_KEY: "${MERCURE_JWT_SECRET:?err}"
      MERCURE_SUBSCRIBER_JWT_KEY: "${MERCURE_JWT_SECRET:?err}"
      MERCURE_EXTRA_DIRECTIVES: |
        cors_origins http://localhost
        use_forwarded_headers "1"
    # Uncomment the following line to enable the development mode
    command: /usr/bin/caddy run --config /etc/caddy/Caddyfile.dev
    container_name: su-mercure
    volumes:
      - ./data/mercure/data:/data
      - ./data/mercure/config:/config

This config is the same in production, except for the command part which is removed.
Nginx proxy
server {
    listen 3000;
    server_name localhost;

    location /.well-known/mercure {
        proxy_pass http://mercure:3000;
        proxy_read_timeout 24h;
        proxy_http_version 1.1;
        proxy_set_header Connection "";

        ## Be sure to set USE_FORWARDED_HEADERS=1 to allow the hub to use those headers ##
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

The only difference is that in production, the proxy uses https and listens to hub.my-domain instead of port 3000. But other than that it's the same.
If that helps, the site is live and the 401 response can be observed from there : https://stack-up.tech/en/tech/tailwind. When I check the logs, it just gives me a generic "Subscriber unauthorized" :
su-mercure  | {"level":"info","ts":1677854488.8285167,"logger":"http.handlers.mercure","msg":"Subscriber unauthorized","subscriber":{"id":"redacted","last_event_id":"","remote_addr":"redacted"}}
su-mercure  | 2023/03/03 14:41:28.828   ERROR   http.log.access.log0    handled request {"request": {"remote_ip": "redacted", "remote_port": "58346", "proto": "HTTP/1.1", "method": "GET", "host": "mercure:3000", "uri": "/.well-known/mercure?topic=https%3A%2F%2Fsymfony.com%2Fux-turbo%2FApp%255CEntity%255CVote%2F%7Bid%7D", "headers": {"Referer": ["https://stack-up.tech/"], "Accept-Encoding": ["gzip, deflate, br"], "X-Forwarded-Host": ["hub.stack-up.tech"], "X-Forwarded-Proto": ["https"], "Accept": ["text/event-stream"], "Sec-Ch-Ua-Mobile": ["?0"], "Sec-Fetch-Mode": ["cors"], "Sec-Fetch-Dest": ["empty"], "X-Forwarded-For": ["redacted"], "Sec-Ch-Ua": ["\"Chromium\";v=\"110\", \"Not A(Brand\";v=\"24\", \"Google Chrome\";v=\"110\""], "Cache-Control": ["no-cache"], "User-Agent": ["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"], "Sec-Ch-Ua-Platform": ["\"Linux\""], "Origin": ["https://stack-up.tech"], "Sec-Fetch-Site": ["same-site"], "Pragma": ["no-cache"]}}, "user_id": "", "duration": 0.000111678, "size": 13, "status": 401, "resp_headers": {"Access-Control-Allow-Origin": ["https://stack-up.tech"], "Content-Type": ["text/plain; charset=utf-8"], "Server": ["Caddy"], "Content-Security-Policy": ["default-src 'self'"], "X-Frame-Options": ["DENY"], "X-Content-Type-Options": ["nosniff"], "X-Xss-Protection": ["1; mode=block"], "Access-Control-Allow-Credentials": ["true"]}}

Could potentially be a duplicate of: https://github.com/symfony/ux/issues/291#issue-1157676932
You've mentioned that:

The votes are not even private,

Although, turbo_stream_listenerwill not set {withCredentials: true} on the EventSource connection request, meaning any cookies will never transfer to the Mercure server, potentially resulting always in a 401.
If you don't have annoymous set in your Mercure Caddyfile, which I believe is default in the production version, then it will always return a 401.
I'm not a Symfony or UX dev and cannot provide direct support, but having a similar issue and pointing you and others to a potential root cause not yet addressed either in the code, or a warning in the documentation that turbo_stream_listener cannot be used with authenticated subscriptions via cookie.

@kieljohn Thank you for your answer. Adding anonymous true to my Mercure container config fixed the issue. However, I'm still concerned about whether private updates would work in production. The Symfony UX documentation clearly says that updates can be "private".

I'm not a Symfony core dev, just a user - like you. With the same concerns, I had to fork the repository to use authentication.
If this works for you, this ticket is a duplicate of https://github.com/symfony/ux/issues/291#issue-1157676932

Looking at the comments, it seems that withCredentials is necessary if not using the same domain for the host and Mercure. This effectively answers my question. Thank you for your help again, I'm gonna go ahead and close this one.

authors: YummYume kieljohn

repo: symfony/ux


text:
[TwigComponent][LiveComponent] Remove .github folder and line in .gitattributes

Q
A

Bug fix?
no

New feature?
no

Tickets
-

License
MIT

This was just missed in the original PR.

Thanks!

authors: kbond weaverryan


text:
[ConfigTransformer] Add MissingAutodiscoveryDirectoryTolerantYamlFileLoader to skip loaded directory if missing

Closes https://github.com/symplify/symplify/pull/4336

@alexander-schranz I'm off to cinema now. I marked this with automerge, if all tests passes, so you can test it sooner :)
Brb, 3 hours :sunglasses:

@TomasVotruba Thank you 🎉 . Wish you a good evening. Enjoy the movie! 🎥

Thanks 🙏

PS: All is is working fine 👍 .
The two repositories pull request are merged and the recipes available here:

https://github.com/alexander-schranz/symfony-recipes-php/
https://github.com/alexander-schranz/symfony-recipes-php-contrib/

Moved the script itself to an own repository here so I can use it inside both above listed repositories.
Even registered two skeleton packages using the recipes already which can be used for composer create-project starting project with php configs:

schranz/symfony-php-skeleton
schranz/symfony-php-website-skeleton

authors: TomasVotruba alexander-schranz

repo: symplify/symplify


text:
lets talk about windows + darwin

Looking into #143
This will provide more agents binaries, but I dont have the compute to test them all.  Need to look into a more robust CI pipeline to test everything.

this will add this list of binaries to the release
  • building binaries
    • building                                       binary=dist/agent_windows_arm64/nex-agent.exe
    • building                                       binary=dist/nex_linux_amd64_v1/nex
    • building                                       binary=dist/nex_linux_arm_7/nex
    • building                                       binary=dist/nex_darwin_arm64/nex
    • building                                       binary=dist/agent_darwin_amd64_v1/nex-agent
    • building                                       binary=dist/nex_windows_amd64_v1/nex.exe
    • building                                       binary=dist/agent_darwin_arm64/nex-agent
    • building                                       binary=dist/agent_linux_amd64_v1/nex-agent
    • building                                       binary=dist/nex_darwin_amd64_v1/nex
    • building                                       binary=dist/agent_linux_arm64/nex-agent
    • building                                       binary=dist/nex_linux_arm64/nex
    • building                                       binary=dist/agent_windows_amd64_v1/nex-agent.exe
    • running hook                                   hook=sudo go run ./nex/. fs --agent /home/crash/Development/synadia-io/nex/dist/agent_windows_amd64_v1/nex-agent.exe
    • running hook                                   hook=sudo go run ./nex/. fs --agent /home/crash/Development/synadia-io/nex/dist/agent_linux_arm64/nex-agent
    • running hook                                   hook=sudo go run ./nex/. fs --agent /home/crash/Development/synadia-io/nex/dist/agent_darwin_amd64_v1/nex-agent
    • running hook                                   hook=sudo go run ./nex/. fs --agent /home/crash/Development/synadia-io/nex/dist/agent_darwin_arm64/nex-agent
    • running hook                                   hook=sudo go run ./nex/. fs --agent /home/crash/Development/synadia-io/nex/dist/agent_linux_amd64_v1/nex-agent
    • running hook                                   hook=sudo go run ./nex/. fs --agent /home/crash/Development/synadia-io/nex/dist/agent_windows_arm64/nex-agent.exe

repo: synadia-io/nex


text:
[Submitter] fix bump tx behavior

Issue:
In the event the gasCeil is reached on any tx in the chainPendingQueue, the every tx bump/submit is stopped. This happened with applyGasCeil where gas fee cap %s exceeds max price %s cancelling every other tx in the queue and completely halting it
This is because the chainQueue uses an error group so any issue anywhere in the queue cancels the whole queue
e.g. (every sub bump was also cancelled)

Proposed solution:
Needs more thought, but I put together a hotfix here: #2752

Fixed in #2756

repo: synapsecns/sanguine


text:
fix: 🤔 disabled button uses wrong color

Pull Request
📖 Description

🎫 Issues
Closes #283
👩💻 Reviewer Notes

📑 Test Plan

✅ DoD

[ ] I have tested my changes manually.
[ ] I have added automatic tests for my changes (unit- and visual regression tests).
[ ] I have updated the project documentation to reflect my changes (e.g. CHANGELOG, Storybook, ...).
[ ] I have made sure to follow the projects coding and contribution guides.
[ ] I have made sure that the bundle size has changed appropriately.
[ ] I have validated that there are no accessibility errors.
[ ] I have used design tokens instead of fix css values

I don't know if this was posted somwhere already. We updated the filled disabled button color to white.

I don't know if this was posted somwhere already. We updated the filled disabled button color to white.

I have just updated the branch, please have another review and tell me if this is correct now.


text:
Microphone settings are not working

First of all, thank you for this great project!
I have this soundcard and this microphone. I was using snowbow, google and wit.ai last year but now stopped due to privacy concers. And now I want to switch to Rhasspy :).
The microphone is attached on my raspberry 3B.
I spent 3 days to figure out that the german profile leads to a performance issues (high memory and CPU) in both docker and virtual-env setup (the raspberry becomes unusable after some minutes and then crashes).
Somehow it doesn't happen wit the english profile, but that's another story (and issue which I will create later).
I followed the tutorial for the client/server setup.
However the microphone automatic selection doesn't work. For neither PyAudio nor ASLA.
When I try to record something (triggered via the webinterface) the recording in the logs looks like this:
Choosing PyAudio leads to this error:
ERROR:DialogueManager:get_microphones
Traceback (most recent call last):
  File "/usr/share/rhasspy/rhasspy/dialogue.py", line 754, in handle_forward
    mics = recorder_class.get_microphones()
  File "/usr/share/rhasspy/rhasspy/audio_recorder.py", line 261, in get_microphones
    default_name = audio.get_default_input_device_info().get("name")
  File "/usr/local/lib/python3.6/dist-packages/pyaudio.py", line 949, in get_default_input_device_info
    device_index = pa.get_default_input_device()
OSError: No Default Input Device Available
[2020-01-04 23:10:21,557] 192.168.178.21:53797 GET /api/microphones 1.1 200 2 29239
INFO:quart.serving:192.168.178.21:53797 GET /api/microphones 1.1 200 2 29239

ERROR:DialogueManager:on_receive
Traceback (most recent call last):
  File "/usr/share/rhasspy/rhasspy/actor.py", line 169, in on_receive
    self._state_method(message, sender)
  File "/usr/share/rhasspy/rhasspy/dialogue.py", line 395, in in_asleep
    self.handle_any(message, sender)
  File "/usr/share/rhasspy/rhasspy/dialogue.py", line 733, in handle_any
    self.handle_forward(message, sender)
  File "/usr/share/rhasspy/rhasspy/dialogue.py", line 771, in handle_forward
    test_mics = recorder_class.test_microphones(chunk_size)  # type: ignore
  File "/usr/share/rhasspy/rhasspy/audio_recorder.py", line 285, in test_microphones
    default_name = audio.get_default_input_device_info().get("name")
  File "/usr/local/lib/python3.6/dist-packages/pyaudio.py", line 949, in get_default_input_device_info
    device_index = pa.get_default_input_device()
OSError: No Default Input Device Available

BTW: when running rhasspy via virtualenv it even showed me one device in PyAudio which could be autoselected via the Test button, but recording was still not possible. There was also a (error) suffix after clicking on Test. When doing a recording afterwards the logs showing this:
ERROR:PyAudioRecorder:to_recording
Traceback (most recent call last):
  File "/home/pi/rhasspy/rhasspy/audio_recorder.py", line 170, in to_recording
    frames_per_buffer=self.frames_per_buffer,
  File "/home/pi/rhasspy/.venv/lib/python3.6/site-packages/pyaudio.py", line 750, in open
    stream = Stream(self, *args, **kwargs)
  File "/home/pi/rhasspy/.venv/lib/python3.6/site-packages/pyaudio.py", line 441, in __init__
    self._stream = pa.open(**arguments)
OSError: [Errno -9997] Invalid sample rate
DEBUG:PyAudioRecorder:recording -> started

Using ALSA gives this feedback:

[2020-01-04 23:11:22,581] 192.168.178.21:54172 GET / 1.1 200 1029 20816
INFO:quart.serving:192.168.178.21:54172 GET / 1.1 200 1029 20816
ERROR:__main__:api_events_log
Traceback (most recent call last):
  File "app.py", line 1123, in api_events_log
    text = await q.get()
  File "/usr/lib/python3.6/asyncio/queues.py", line 167, in get
    yield from getter
concurrent.futures._base.CancelledError
[2020-01-04 23:11:22,617] Error in ASGI Framework
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
    await asgi_instance(self.asgi_receive, self.asgi_send)
  File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
    await _cancel_tasks(pending)
  File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
    raise task.exception()
  File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
    'code': 1000,
  File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
    await self.asend(CloseConnection(code=int(message["code"])))
  File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
    self.write(self.connection.send(event))
  File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
    data += self.connection.send(event)
  File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
    "Connection cannot be closed in state %s" % self.state
wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
ERROR:quart.serving:Error in ASGI Framework
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 91, in handle_asgi_app
    await asgi_instance(self.asgi_receive, self.asgi_send)
  File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 106, in __call__
    await _cancel_tasks(pending)
  File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 189, in _cancel_tasks
    raise task.exception()
  File "/usr/local/lib/python3.6/dist-packages/quart/asgi.py", line 157, in handle_websocket
    'code': 1000,
  File "/usr/local/lib/python3.6/dist-packages/hypercorn/asgi/wsproto.py", line 149, in asgi_send
    await self.asend(CloseConnection(code=int(message["code"])))
  File "/usr/local/lib/python3.6/dist-packages/hypercorn/asyncio/wsproto.py", line 93, in asend
    self.write(self.connection.send(event))
  File "/usr/local/lib/python3.6/dist-packages/wsproto/__init__.py", line 64, in send
    data += self.connection.send(event)
  File "/usr/local/lib/python3.6/dist-packages/wsproto/connection.py", line 101, in send
    "Connection cannot be closed in state %s" % self.state
wsproto.utilities.LocalProtocolError: Connection cannot be closed in state ConnectionState.CLOSED
INFO:quart.serving:192.168.178.21:54172 GET /api/sentences 1.1 200 581 11891
[2020-01-04 23:11:22,883] 192.168.178.21:54172 GET /api/sentences 1.1 200 581 11891
[2020-01-04 23:11:22,910] 192.168.178.21:54181 GET /api/events/log 1.1 101 - 95379
INFO:quart.serving:192.168.178.21:54181 GET /api/events/log 1.1 101 - 95379
DEBUG:__main__:Loading phoneme examples from /usr/share/rhasspy/profiles/en/phoneme_examples.txt
[2020-01-04 23:11:22,988] 192.168.178.21:54182 GET /api/slots 1.1 200 2 86413
INFO:quart.serving:192.168.178.21:54182 GET /api/slots 1.1 200 2 86413
[2020-01-04 23:11:22,991] 192.168.178.21:54185 GET /api/phonemes 1.1 200 1526 89388
INFO:quart.serving:192.168.178.21:54185 GET /api/phonemes 1.1 200 1526 89388
[2020-01-04 23:11:23,014] 192.168.178.21:54172 GET /api/profiles 1.1 200 144 71627
INFO:quart.serving:192.168.178.21:54172 GET /api/profiles 1.1 200 144 71627
INFO:quart.serving:192.168.178.21:54188 GET /api/profile 1.1 200 8697 55089
[2020-01-04 23:11:23,030] 192.168.178.21:54188 GET /api/profile 1.1 200 8697 55089
[2020-01-04 23:11:23,087] 192.168.178.21:54182 GET /api/profile 1.1 200 6825 62603
INFO:quart.serving:192.168.178.21:54182 GET /api/profile 1.1 200 6825 62603
[2020-01-04 23:11:23,110] 192.168.178.21:54185 GET /api/unknown-words 1.1 200 2 84565
INFO:quart.serving:192.168.178.21:54185 GET /api/unknown-words 1.1 200 2 84565
[2020-01-04 23:11:23,137] 192.168.178.21:54186 GET /api/microphones 1.1 200 1010 233182
INFO:quart.serving:192.168.178.21:54186 GET /api/microphones 1.1 200 1010 233182
[2020-01-04 23:11:23,143] 192.168.178.21:54187 GET /api/speakers 1.1 200 2 237203
INFO:quart.serving:192.168.178.21:54187 GET /api/speakers 1.1 200 2 237203
[2020-01-04 23:11:23,155] 192.168.178.21:54172 GET /api/problems 1.1 200 271 84954
INFO:quart.serving:192.168.178.21:54172 GET /api/problems 1.1 200 271 84954
[2020-01-04 23:11:23,181] 192.168.178.21:54188 GET /img/favicon.png 1.1 200 802 99545
INFO:quart.serving:192.168.178.21:54188 GET /img/favicon.png 1.1 200 802 99545
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
arecord: main:788: audio open error: Device or resource busy
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:788: audio open error: Invalid argument
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
arecord: main:788: audio open error: Device or resource busy
arecord: main:788: audio open error: Device or resource busy
[2020-01-04 23:11:47,355] 192.168.178.21:54339 GET /api/test-microphones 1.1 200 1164 570993
INFO:quart.serving:192.168.178.21:54339 GET /api/test-microphones 1.1 200 1164 570993

But when trying to record it doesn't record anything and I even cannot stop the recording via the webinterface. The logs is showing just this, even when I click on Tap to stop recording.
[2020-01-04 23:25:45,678] 192.168.178.21:59590 POST /api/start-recording 1.1 200 2 8592
INFO:quart.serving:192.168.178.21:59590 POST /api/start-recording 1.1 200 2 8592

I know that the correct device is hw:CARD=Device,DEV=0 even if rhasspy shows (no sound) after clicking on Test. So I've just selected it and finally recording via rhasspy webinterface started to work, but:

the hotword (snowboy) doesn't work even if I set the sensitivity to 1.
it never recognize my correct speech, instead recognize always something with the light in the bedroom (but I've spoken what time is it, tell me the time, whats the temperature)

I saw this in the rhasspy logs:
DEBUG:ARecordAudioRecorder:['arecord', '-q', '-r', '16000', '-f', 'S16_LE', '-c', '1', '-t', 'raw', '-D', 'hw:CARD=Device,DEV=0']

When running this command in the host or in docker: arecord -D hw:1,0 -d 5 -f cd test.wav -c 1 the file is fine and I was even able to upload it via the rhasspy webinterface and all my 4 different examples were recognized correctly. I almost gave it up with rhasspy but this proofs it's really working.
But how can I fix it now?
Oh noo, I've just realized even with the english profile the raspberry becomes unusable after 2-4 hours. CPU is at 100% it shows me this on an attache monitor, but I cannot ssh or even do a ping.

Just restarted the raspberry. Two minutes after boot, the docker consumed the whole memory.
I guess the high CPU is because it starts using the swap file.

Can you post your profiles? I'm not seeing this behavior at all. Thanks.

Sure.
{
    "intent": {
        "remote": {
            "url": "http://192.168.178.21:12101/api/text-to-intent"
        },
        "system": "remote"
    },
    "microphone": {
        "arecord": {
            "device": "hw:CARD=Device,DEV=0"
        },
        "pyaudio": {
            "device": "2"
        },
        "system": "arecord"
    },
    "sounds": {
        "system": "dummy"
    },
    "speech_to_text": {
        "remote": {
            "url": "http://192.168.178.21:12101/api/speech-to-text"
        },
        "system": "remote"
    },
    "text_to_speech": {
        "system": "dummy"
    },
    "wake": {
        "system": "snowboy"
    }
}

Ok, thank you. This must be related to the microphone recording a bunch of fake data very quickly when the device is wrong. I protect against empty data being returned, but maybe I need to rate limit it or something.

Okay, yes so it's my fault, sorry for the confusion.
Then let's go back to the original error. I've just successfully recorded a wav in the docker container with arecord -D hw:1,0 -d 5 -f cd test.wav -c 1 and I can play it and it's correct.
but and then I did with this command: arecord -q -r 16000 -f S16_LE -c 1 -t raw -D hw:CARD=Device,DEV=0 test.wav -d 5and the result is this wav file which seems to be broken:
https://send.firefox.com/download/8ab4527d05737f61/#vLTPKDoKFgr4QmgQVYP_8A
I think it would be nice if the profile allows to control the whole record command (including all the args).

The -t raw is what's making it seem broken. Wav files have a header normally, but Rhasspy already knows the format when recording. Change this to -t wav on the command line.

You're right!
This works: arecord -r 16000 -f S16_LE -c 1 -t wav -d 3 -D hw:1,0 r16-fs16-twav.wav
I'm getting a warning that 16000 is not supported only 44100, but it still works.

Ah, I think you've missed my point that the recognition never worked via the microphone directly via rhasspy. It always recognize a totally different sentence. But when I'm uploading the wave files to the webinterface it works perfectly.

Actually this time (I think I've tried it before with an untrained model) the recognized intent is an empty string. I tried it four times with different sentences but the response is always:
DEBUG:__main__:{"entities": [], "intent": {"confidence": 0, "name": ""}, "siteId": "default", "slots": {}, "speech_confidence": 1, "text": "", "time_sec": 0.0024182796478271484, "wakeId": ""}

I will create a new issue because this got a bit messy.

authors: synesthesiam timaschew

repo: synesthesiam/rhasspy


text:
Notif user on Bitkit when he is Geoblock

Description
Our users may be Geoblocked if they are geolocated in the countries that we block according to our ToS.
Issue
Users are not aware that they are geoban. ex: https://app.asana.com/0/1189635884316057/1207371335263354/f
Solution
Notify the user when he/she is using Blocktank and is Geoban. Please note that this notification must not be used when someone is using their own node or another LSP.
ps: Sometimes these users can be geoblocked because they are using a VPN, so be careful which country they are using.

note: they can not buy channel but they can do lightning transaction.

I have never been able to do a lightning transaction with US IP. Always get 'broadcast failed' error.
This is the reason why our E2E tests must use a VPN, because all GH runners are located in the US.

I’m unclear on the specific limitations for U.S. and Canadian residents based on the above conversation. Are only channel purchases blocked (we have UI in place for this), or is Blocktank also unable to route any Lightning payments for these regions? If it’s the latter, here’s a potential toast notification.

Isnt this originally an issue with Blocktank blocking users from other things aside from buying a channel, like getting price or such? If so, the fix is isolate blocking by Blocktank to only blocking the generation of order invoices and blocking the direct opening of channels (for banned regions)

I observe that if Bitkit is launched with a European IP and then VPN switch to a US IP then lightning payments will still work but if Bitkit is launched with a US IP they do not work (unable to broadcast error) and continue to not work if then switched to European IP. It seems there is something in the LDK initialisation that determines whether payments are allowed.

This exists https://github.com/synonymdev/blocktank/issues/9

added more user feedback regarding geoblocks to prototype v52

More UI for geoblocked users has been added in https://github.com/synonymdev/bitkit/pull/2403

authors: BitcoinErrorLog JeanlChristophe aldertnl catch-21 pwltr

repo: synonymdev/bitkit


text:
EncounterType - URGENTCARE has "AMB"

Is it correct that URGENTCARE has value "AMB" not "EMER"?
WELLNESS("AMB"), AMBULATORY("AMB"), OUTPATIENT("AMB"),
INPATIENT("IMP"), EMERGENCY("EMER"), URGENTCARE("AMB");
https://github.com/synthetichealth/synthea/blob/de05456faf496c06d9be263c1c918178ad20f3fe/src/main/java/org/mitre/synthea/world/concepts/HealthRecord.java

The ValueSet comes from FHIR: http://hl7.org/fhir/R4/v3/ActEncounterCode/vs.html#expansion
There is no explicit 1:1 mapping for urgentcare... If you have a better suggestion, we'll consider it.

authors: bradanton jawalonoski

repo: synthetichealth/synthea


text:
correct Value::Equals mistake

a missing exclamation mark... ^^

Good catch! Merged!

authors: Selmar syoyo

repo: syoyo/tinygltf


text:
Apply changes failing on operational data store update

Hi,
I'm not sure if this is an issue in my implementation, sysrepo-python or sysrepo:
I am trying to update the operational data store. This is the element I am trying to update:
  list loadbalancer {     ....     list nodes {         .....         leaf reachability {             config false;             type enumeration {                 enum reachable;                 enum unreachable;             }         }         }

Hi @chaichairiko
I never tested "pushing" operational data but I read that there are some tricks. Could you share the code with which you are having a problem?

@rjarry  you replied so fast I haven't finished to write :D

The session is created with the "operational" datastore right?
@michalvasko maybe you can shine some light on this. I am not sure I understand why "create and replace operations are not valid"  https://github.com/sysrepo/sysrepo/blob/v1.4.70/src/edit_diff.c#L2082

@rjarry yes, I have changed the datastore beforehand:
sess.switch_datastore('operational')

Hi,
push operational changes have a nice API (the same as any other edits) but they are much more complex internally. If you could provide a standalone application (even in Python should be fine) to reproduce this problem, I should be able to fix this somehow.
Generally, there are 2 possibilities. Either there is something wrong happening internally resulting in this invalid operation. Or, the situation is valid (I just could not think of a use-case when writing the code) and it just needs to be properly handled. I am not able to tell which without knowing what is happening internally and to see that, I need to try the use-case locally.

Hi,
I've attached a dir with a standalone application that includes the python callback, Dockerfile, xml, yang_model etc.
sysrepo_test.zip

@chaichairiko out of curiosity, did you test with the latest version of the python bindings (0.2.0) as well ?

@rjarry We didnt have the chance since our code was already implemented

@rjarry , just tried it with sysrepo 0.3.0 that youve just pushed - same issue

Hi,
sorry it took some time, I was busy with other work. Thanks for the nice example and with that I could reproduce the problem and add it into (C) tests. There was a non-handled situation in some other code part that the internal error you saw. It should be fixed in https://github.com/sysrepo/sysrepo/commit/a2c780ca1bccdd816dc95550a763cc619f8b7025.
Your use-case is a really complex one (storing push operational data in a change callback) and I was not sure it can even be supported first. But I found no reason why it should be forbidden so you should be okay.

Thanks @michalvasko :+1:

Thanks @michalvasko !
Can I ask why is it a complex use case? Maybe I a can also optimize my code.
The app that I showed you isnt the exact use case that I have, but it does show the same issue. My exact use case, is a background task (an asyncio task thats part of the application that runs the callback as well) that once in a while changes operational data (in this case the reachability of a node).
Since operational data can change throughout the application,  I would think that its the way to go, but Im just getting the hang of sysrepo (:

Like I said, you should be fine using it this way. But, in general, changing operational data (the state of any application) directly based on a configuration change seems odd. What I would expect is that the configuration changes, which causes the application to reconfigure itself and perhaps change its state. That will, in effect, cause the operational (state) data of the application to change. And that would be seen when these data would be requested because an operational callback of the application would be called. Meaning I would expect these data to use the pull operational subscription instead of push.
sysrepo offers quite a lot of options, which is especially true for operational subscriptions so I understand it may often be quite difficult to choose the right one. It all depends on the exact use-case, the goal was to allow as many of them as possible so you can select the most straightforward one.

@michalvasko thank you for the very clear explanation.  The way asyncio allows you to run tasks it still runs in the context of the module change, although I could have sent a pull change.  Since you fixed the issue I will leave it like that, but its good to understand how I can do it differently.

@chaichairiko is your problem fixed? Can we close this issue? :)

@rjarry yes sir!

authors: chaichairiko michalvasko rjarry

repo: sysrepo/sysrepo-python


text:
Introduce VectorClockId and use it in rebaser-server

Introduce VectorClockId to separate ChangeSetPointers from VectorClocks. This will make the behavior of the rebaser-server easier to understand because, as it stands today, VectorClockIds are just ChangeSetPointerIds. They share the same ULID. That might not always be the case either, so this change has domain-driven benefits too.
Use the new VectorClockId in rebaser-server and change "updates and conflicts" detection to actually perform as intended. As a result, detection no longer requires ChangeSetPointers directly and only requires VectorClockIds.
Ensure the ChangeSetMessage reflects the new VectorClockId changes. The fields now use "to_rebase" and "onto" prefixes to help imply how to prepare the payload.
Add ChangeSetLoopError to differentiate errors in the rebaser-server outer loop to the inner loop(s).

Cherry-picking...

repo: systeminit/si


text:
Fixed test to use new syntax

Related to #5

Please rebase and squash the commits into one, then I'm good :shipit: :+1:

I thought it was good practice to make whitespace changes in a different commit, but I guess one can overdo everything...

I agree in the general case, but for a single blank line it's a bit over the top. Thanks though

repo: systemjs/system-font


text:
MastodonからDMを送るとフォロワー宛てで届く

Summary
MastodonからDMを送るとフォロワー宛てで届く
Expected Behavior
非公開で届く
Actual Behavior
フォロワー宛てで届く
Steps to Reproduce

MastodonからMisskeyユーザーにDM(ダイレクトでメンション付き)を送る

Environment
v5.22.1

Closed by
https://github.com/syuilo/misskey/pull/2172

repo: syuilo/misskey


text:
Page not found for settings api

💡 Summary
Settings not found for https://www.example.com/i/settings/api
There was no page corresponding to the specified URL.
🙂 Expected Behavior
users can view settings page in v11
☹ Actual Behavior
error: There was no page corresponding to the specified URL.
📝 Steps to Reproduce

login
go to page -> https://www.example.com/i/settings/api
error message

📌 Environment
nginx 1.17.8 - node 12.15 - npm 6.13.4 - misskey 12.6.0

Settings moved to https://www.example.com/my/settings.
I think it is necessary to redirect.

Thanks for the url
Checked https://www.example.com/my/settings and it's missing api section
Misskey v11 has the api section listed

It seems that v12 don't have api section. Do you plan to revive the section, @syuilo ?

Done

authors: cliqsocial syuilo tamaina


text:
Feature / user recommendation config in admin ui

外部ユーザーレコメンデーションの設定を、管理者画面でできるようにする。

👍👍👍

authors: hakaba-hitoyo syuilo


text:
Update ja-JP.yml (Translate new permissions)

Summary
新しいAPIパーミッション（Kinds）に対してapi-docやdev/app/newなどで使用している翻訳が追加されていなかったので追加。

FYI: 翻訳の追加を忘れていたコミット一覧

Improve API doc 1903aaf
ページにいいねできるように 3807490
ユーザーグループ c7cc3dc

❤

authors: AyaMorisawa syuilo tamaina


text:
Mark disagreements between meter and word pronunciation

Currently I’m just applying the meter directly to each word.
I should at least mark where the meter disagrees with the word’s pronunciation

Current version highlights in red when the pronunciation from CMU's dictionary and the expected stress from the meter differ too much (a "0" for a stressed syllable or a "2" for an unstressed.
This closes this feature request.

repo: syvwlch/Metroscope


text:
:bug: dates without end dates

fixes DEV-155

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#13  👈
#12
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @szamanr and the rest of your teammates on  Graphite

Merge activity

Apr 18, 3:46 PM GMT+2: @szamanr started a stack merge that includes this pull request via Graphite.

repo: szamanr/sz-count-days


text:
fix: update package name in package-lock.json

This was missed when renaming the package from musically-api to tiktok-api.

Pull Request Test Coverage Report for Build 94

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 92:
0.0%

Covered Lines:
82

Relevant Lines:
82

💛  - Coveralls

authors: coveralls szdc

repo: szdc/tiktok-api


text:
Transitioning from Node 16 to Node 20

As per https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/, github actions will need to transition to node 20. Currently, the code is set to 16:
runs:
  using: "node16"
  main: "dist/index.js"

Thank you!

Thanks @MathRobin! I switched to https://github.com/digipost/set-timezone quite a while ago but they closed issues on the repo, so maybe I should make another switch.

You're welcome ! If you have any idea of improvement, if you met any bugs, don't hesitate, we will be happy to help (me and the whole Airporting tech department).

authors: DHeyko-Akonovia MathRobin berezovskyi

repo: szenius/set-timezone