Cannot checkout worktree

Description
With telescope integration, a worktree cannot be checked out. A directory cannot be selected.
Neovim version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"
Run :checkhealth for more info
Operating system and version
macOS 14.2.1
Steps to reproduce
1.) nvim -nu minimal.lua
2.) open Neogit in a git repository
3.) w to open worktree popup
4.) w to select a branch
5.) select a branch
6.) try to type in a name for the directory and hit enter
Expected behavior
A directory is created with what was typed in in step 6. The worktree is checked out into that directory
Actual behavior
If no directory with the name you've typed in exists, it goes to the previous directory since what is left selected is "..". If there are still entries in the list (like if you wanted to checkout into a directory with the name "per", but a directory with the name "perf" exists), it will descend into that directory.
https://github.com/NeogitOrg/neogit/assets/35229419/24929c8e-2e08-455a-a5c8-52e0a460d4b1
Minimal config
-- NOTE: See the end of this file if you are reporting an issue, etc. Ignore all the "scary" functions up top, those are
-- used for setup and other operations.
local M = {}

local base_root_path = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h") .. "/.min"
function M.root(path)
  return base_root_path .. "/" .. (path or "")
end

function M.load_plugin(plugin_name, plugin_url)
  local package_root = M.root("plugins/")
  local install_destination = package_root .. plugin_name
  vim.opt.runtimepath:append(install_destination)

  if not vim.loop.fs_stat(package_root) then
    vim.fn.mkdir(package_root, "p")
  end

  if not vim.loop.fs_stat(install_destination) then
    print(string.format("> Downloading plugin '%s' to '%s'", plugin_name, install_destination))
    vim.fn.system({
      "git",
      "clone",
      "--depth=1",
      plugin_url,
      install_destination,
    })
    if vim.v.shell_error > 0 then
      error(string.format("> Failed to clone plugin: '%s' in '%s'!", plugin_name, install_destination),
        vim.log.levels.ERROR)
    end
  end
end

---@alias PluginName string The plugin name, will be used as part of the git clone destination
---@alias PluginUrl string The git url at which a plugin is located, can be a path. See https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols for details
---@alias MinPlugins table<PluginName, PluginUrl>

---Do the initial setup. Downloads plugins, ensures the minimal init does not pollute the filesystem by keeping
---everything self contained to the CWD of the minimal init file. Run prior to running tests, reproducing issues, etc.
---@param plugins? table<PluginName, PluginUrl>
function M.setup(plugins)
  vim.opt.packpath = {}                      -- Empty the package path so we use only the plugins specified
  vim.opt.runtimepath:append(M.root(".min")) -- Ensure the runtime detects the root min dir

  -- Install required plugins
  if plugins ~= nil then
    for plugin_name, plugin_url in pairs(plugins) do
      M.load_plugin(plugin_name, plugin_url)
    end
  end

  vim.env.XDG_CONFIG_HOME = M.root("xdg/config")
  vim.env.XDG_DATA_HOME = M.root("xdg/data")
  vim.env.XDG_STATE_HOME = M.root("xdg/state")
  vim.env.XDG_CACHE_HOME = M.root("xdg/cache")

  -- NOTE: Cleanup the xdg cache on exit so new runs of the minimal init doesn't share any previous state, e.g. shada
  vim.api.nvim_create_autocmd("VimLeave", {
    callback = function()
      vim.fn.system({
        "rm",
        "-r",
        "-f",
        M.root("xdg")
      })
    end
  })
end

-- NOTE: If you have additional plugins you need to install to reproduce your issue, include them in the plugins
-- table within the setup call below.
M.setup({
  plenary = "https://github.com/nvim-lua/plenary.nvim.git",
  telescope = "https://github.com/nvim-telescope/telescope.nvim",
  diffview = "https://github.com/sindrets/diffview.nvim",
  neogit = "https://github.com/NeogitOrg/neogit"
})
-- WARN: Do all plugin setup, test runs, reproductions, etc. AFTER calling setup with a list of plugins!
-- Basically, do all that stuff AFTER this line.
require("neogit").setup({}) -- For instance, setup Neogit

Oh, ok, my directory picker is definitely a "best effort" thing. I'll try to make it a bit nicer so this works right.

Ahh, I use a different sorter in telescope, so this never showed up for me:
    telescope_sorter = function()
      return require("telescope").extensions.fzf.native_fzf_sorter()
    end,

But out of the box it does.


Add Scan functionality for assets-maintenance-tool

This PR adds the functionality of scanning an input configuration. Part of #4298
Originally, I asked @benbp if I could use SQLLite for the storage medium, but I just went with json for now. If this needs to change in the future, I am ready to do so.

[x] Adds scan tool + ci + livetests.
[x] Adds set of integration tests proving out functionality
[x] Refactor all existing assets related "stuff" under this assets-automation folder.
[x] Tests exercising functionality should offer a glimpse into both what comes out of this tool as well as what goes in as an input.
[ ] Ensure solution integration tests pass

After this goes in, I'll add the a build definition that invokes this tool and actually starts scanning and backing up our assets graph nightly.

/azp run tools - assets-maintenance-tool - tests

/azp run tools - assets-maintenance-tool - tests

/azp run tools - assets-maintenance-tool - tests

/azp run tools - assets-maintenance-tool - tests

I left a bunch of nitpicky comments. I commented more than I usually do, because this is the first time I am looking into your stuff in detail. I stated bunch of my preferences and looking forward to hearing what's your take. Overall, I really appreciate the nice domain model and small, easy to follow methods!

Nice thank you for the detailed review! I've address the vast majority of them already, and am doing a slightly deeper refactor on the using suggestion + disk io comment.

/azp run tools - assets-maintenance-tool - ci

/azp run tools - assets-maintenance-tool - tests

Nice thank you for the detailed review! I've address the vast majority of them already, and am doing a slightly deeper refactor on the using suggestion + disk io comment.
Additionally I took the feedback about asset vs language repo and made it explicit literally everywhere.

Awesome, glad to hear my feedback was useful!! Can you ping me when I should have another look? (which is optional; feel free to merge without it, too)

Merged. I took most everything into account except for FileIO updates. <WarnAsErrors> will go in, I just didn't want to do yet another commit + test run before merging.


Added Homophonic cipher doc

Have you read the Contributing Guidelines on Pull Requests?
yes
(Write your answer here.)
Description
Added Homophonic cipher doc
(Write your answer here.)
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Fixed #137
(Write your answer here.)

@HarshCasper please have a look into this pr, thank you!


Improve documentation of INFINITY

Summary
Fixes #10
It now comes out as

with the linked page

It did try with autodata which brings what is in the separate page inline there on the main page. But then it has that yellow stripe across the page which changed things more. I know we have brought all methods onto the same page so maybe that is reasonable to do. But since it changed things more than simply fixing the text of what was there I left it with this more minimal change.
Either as it stands or with autodata it needs the fully qualified path to bring in the comment for the constant - otherwise you still get that Convert a string or number to a floating point number, if possible. which is what the docs currently show,
Details and comments
I labelled it backport since we publish docs off stable and maybe we want to update/re-publish the docs with this fix.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.001%) to 93.029%

Totals

Change from base Build<PHONE_NUMBER>:
0.001%

Covered Lines:
4511

Relevant Lines:
4849

💛  - Coveralls

Thank you for fixing the longstanding issue!


🐛 [Immich] version pgvecto.rs missmatch

Description
I get the following error:
The pgvecto.rs extension version is 0.1.13 instead of 0.1.11.
I have updated both Immich (1.94.1) and postgres(15.5-6) to latest version. Changelog is telling I needed to upgrade both, but it looks like pgvecto.rs in the postgres container has been downgraded afterwards, maybe that is the issue; but not sure.
Hope you can fix it.
And thanks for writing the add-ons
Reproduction steps
Starting the Immich addon gives the following error in the log
The pgvecto.rs extension version is 0.1.13 instead of 0.1.11.

Addon Logs
Error:
        The pgvecto.rs extension version is 0.1.13 instead of 0.1.11.
        Please run 'DROP EXTENSION IF EXISTS vectors' and switch to 0.1.11, such as with the docker image 'tensorchord/pgvecto-rs:pg15-v0.1.11'.
    at DatabaseService.assertVectors (/app/immich/server/dist/domain/database/database.service.js:47:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async DatabaseService.init (/app/immich/server/dist/domain/database/database.service.js:32:9)
    at async AppService.init (/app/immich/server/dist/immich/app.service.js:56:9)
    at async AppModule.onModuleInit (/app/immich/server/dist/immich/app.module.js:32:9)
    at async callModuleInitHook (/app/immich/server/node_modules/@nestjs/core/hooks/on-module-init.hook.js:51:9)
    at async NestApplication.callInitHook (/app/immich/server/node_modules/@nestjs/core/nest-application-context.js:223:13)
    at async NestApplication.init (/app/immich/server/node_modules/@nestjs/core/nest-application.js:100:9)
    at async NestApplication.listen (/app/immich/server/node_modules/@nestjs/core/nest-application.js:169:33)
    at async bootstrap (/app/immich/server/dist/immich/main.js:34:20)

Node.js v20.11.0

Architecture
No response
OS
No response

Hi, I have the same behaviour, on:
Home Assistant OS 11.4
Core 2024.1.6
Supervisor 2023.12.1
Raspberry Pi 4
I upgraded both postgres and immich, but I get the message "The pgvecto.rs extension version is 0.1.13 instead of 0.1.11."
I uninstalled, deleted all postgres files that were still in /data, reinstalled both with no success.
Everything was working before the update.

Hi, I have the same behaviour, on: Home Assistant OS 11.4 Core 2024.1.6 Supervisor 2023.12.1 Raspberry Pi 4
Edit: it's working, starting correctly now. The only thing i can see that I did, even if probably not related, is changing the "networkdisks" root of the SMB share where i store data and the path of data_location...

Hi, sorry do you mean that everything is starting as it should? so there is no more the error "The pgvecto.rs extension version is 0.1.13 instead of 0.1.11." ?

Description
I get the following error: The pgvecto.rs extension version is 0.1.13 instead of 0.1.11. I have updated both Immich (1.94.1) and postgres(15.5-6) to latest version. Changelog is telling I needed to upgrade both, but it looks like pgvecto.rs in the postgres container has been downgraded afterwards, maybe that is the issue; but not sure. Hope you can fix it. And thanks for writing the add-ons

Thanks ; actually I can't repeat this issue. Do you have portainer installed? If yes, could you please go in the postgres addon and copy paste the command :
echo "\dx
\q"> setup_postgres.sql
psql "postgres://postgres:homeassistant@localhost:5432" < setup_postgres.sql | grep vectors

Please change "homeassistant" if you have defined a different password for your database ; thanks!

Hi, sorry do you mean that everything is starting as it should? so there is no more the error "The pgvecto.rs extension version is 0.1.13 instead of 0.1.11." ?

Yes it is starting properly, no errors

like @alexh3o I also use a SMB share for the storage location; not sure what he edited; however i can not relate it to the error in the log...

I did tried a lot of things (ha su repair, host reboots, deleted residual postress files after uninstall...) which did not seem to do anything, I still had the same error than you and no server start.
Then I changed the paths in the addon UI config. Mounted the SMB share at its root instead of within the photos folder. It seems unrelated indeed so I don't know why it's working now and why it wasn't for the 24 hours after both addons update.
Everything had to be recreated from a different data path and it is currently still reindexing my collection from scratch. I also added a photos_location parameter but it's probably ignored and unrelated anyway.
Changed from
data_location: /mnt/0-Photos/
cifsdomain: WORKGROUP
networkdisks: //192.168.1xxx/SMBShare/0-Photos

to
data_location: /mnt/SMBShare/AppData/immich
photos_location: /mnt/SMBShare/0-Photos
cifsdomain: WORKGROUP
networkdisks: //192.168.1xxx/SMBShare/

Well well well so from the analysis made above you DO have version 0.1.1 installed based on your portainer check vectors | 0.1.1  so can't understand the The pgvecto.rs extension version is 0.1.13 instead of 0.1.11 error...
I think it's another of Immich fragility : it initially encountered the postgres vector extension 0.1.13 and is now blocked, even though the actual vector extension is now 0.1.1...
I would recommend to you if possible : restore postgres addon from a version prior to updating immich (which should remove the pq_vector table from postgres); then restart immich which should trigger the re-creation of the pg_vector database table. You could also try to backup the postgres addon, then go with Filebrowser in the /addon_configs/xxx-postgres folder and delete it's database, then recreate it by restarting postgres, then immich... If it fails you can always restore your postgres addon
Luckily it should be a once and for all, as Immich should not implement any other major breaking change such as this one in a too near future

I confirm : I installed from scratch postgres & immich addons and it worked straight away... So it seems this bug is due to immich having seen at one point the version 0.1.13 of the extension and keeping a memory of it somewhere... So alas it seems that due to "active development mode" of both postgres & immich the best action is either to restore an old backup and re-update to perform the migration with 0.1.1 ; or just delete the database and re-create it...

I think it's another of Immich fragility : it initially encountered the postgres vector extension 0.1.13 and is now blocked, even though the actual vector extension is now 0.1.1...

A detail that maybe helps the analysis, I did update and unsuccessfully start immich before updating postgres to the proper version. So latest immich first started with the 0.1.13 pgvector indeed.
Now all works well.

Thanks very much ; pretty sure this is the issue. Pgvector created the database but it does not support downgrading ; so every database that saw 0.1.13 are doomed... Or would need a manual modification that could be tricky

What worked for me was to manually delete vector extension with pgAdmin and then restart postgress and Immich.

@alexh3o thanks; i tried change the path; but that is not working; but i understand that you are reindexing; meaning you have a clean install (i guess). I can't find a way to reindex the default library inside immich.. and not sure if my phone gets it; that the files are already uploaded to immich.
@mihai205 ; what do you mean with "manually delete"? is that the "DROP EXTENSION vector" statement? because i have tried that already; and it looks that this statement is executed every time the immich addon is restarted.
The problem is that i do not have a backup (i only keep a backup for 3 days; and had autoupdate checked.. so i learned my leason)... therefore still trying to recover the database.
what i found was UPDATE pg_catalog.pg_extension SET extversion = '0.1.x' where extname = 'vectors';  in the upgrade guide of pgvecto.rs.. if i update this extversion cell to '0.1.11' it is no longer logging about the version missmatch... but (as expected) there are other errors to be fixed; not sure if i should dive in these errors or find another workaround.
however; this confirms that there are leftovers of a 0.1.13 version that was published

navigate with pgAdmin to your immich db, toggle the extensions to view the list and with right click on vectors, select delete. I've restarted postgres and after that restarted immich.
hope this helps

@mihai205 this was the fix; thank you!
I did not expect that this would work; because i guessed that rightclick->delete should do the same as the drop extension query...
What i did (not sure if it is imortant)
I kept both addons running; did the delete as you described; restarted the postgres addon; went to the immich addon (and saw already positive signs in the logs; just to be sure -) i restarted immich as well.. went to my immich url/webui and everything was looking as it was before.


Add survey chains

Closes https://github.com/api3dao/tasks/issues/958

[x] mode
[x] mode-sepolia-testnet
[ ] fraxtal
[ ] fraxtal-holesky-testnet
[ ] linea-sepolia-testnet

See https://github.com/api3dao/tasks/issues/958#issuecomment-2051330524 specifically

@bdrhn9 reminder to update https://github.com/api3dao/nodary-rpc-watcher after this gets released


Unexpected update of non-submitted Entry from another Section

Description
When saving an entry from the front-end, an entry with the same title has its sectionId and typeId updated in the entries database table.
Steps to reproduce

Create an Entry in a Section (sectionA), title 123-456-789.
Configure Guest Entries set to only allow guest submissions on 1 section sectionB.
The site uses Sprig to post the form via AJAX on page load.
The form uses sectionB's UID as a hardcoded value.
The form submits the following data (in addition to the section id and CSRF token):

A Url Parameter of l as the new entry's Title.
The Url Parameter of l as a plain text field activeLicenseKey.
The User's Session ID as a plain text field sessionId.

Load the page where the auto-submitting form is with a URL Parameter l=123-456-789.
Assuming this has now fired the POST request to the system, the unrelated entry in sectionA will now not be shown on the entry view in the CMS, and its row in the entries table of the database has had its original typeId and sectionId be updated to that of the entry for sectionB.

Additional info
I should say that when this occurs, there is still a new additional record in the database for the new entry that has been submitted. The new entry in sectionB is in full working order. If I manually change the typeId and sectionId back for the original entry, it sits back in the entries view in the CMS, but with a URI value that correlates to the new entry in sectionB.

Craft version: Craft Pro <IP_ADDRESS>
PHP version: 7.3.13
Database driver & version: MySQL 5.5.5
Plugins & versions:

Conditional Fields | 0.0.6
Control Panel Nav | 3.0.12
Craft Commerce | 3.1.12
Digital Products | 2.4.0
Feed Me | 4.2.3
Guest Entries | 2.3.0
Redactor | 2.6.1
Sprig | 1.0.0-beta.9
Stripe for Craft Commerce | <IP_ADDRESS>

Code and a Video of this happening are available if you require 👍

Just to add to this, since posting, I've also noticed that it doesn't seem to matter what entry was created beforehand, it seems to soft delete it anyways.
By that, I mean, I created an a new entry in sectionA (as per steps above), then afterwards I created an entry in sectionC, nothing to do with the other sections. I went to the page again and the form fired, this time, it "soft-deleted" the entry from sectionC, but the one from sectionA remained intact... this suggests to me that for some reason, it is retrieving and updating a row of the last saved entry, irrespective of the section it belongs to.

@stevenjwright Slightly unrelated but I am trying to use Sprig with the guest plugin and I cant get errors to work. Did you manage to get those working?

@stevenjwright Slightly unrelated but I am trying to use Sprig with the guest plugin and I cant get errors to work. Did you manage to get those working?

@philipboomy I've actually got this to work in the end with Sprig - what's happening for you at the moment, are you getting any errors?
Happy to help how I can 👍

@philipboomy I've actually got this to work in the end with Sprig - what's happening for you at the moment, are you getting any errors?
Happy to help how I can 👍

I can get it to post but I cant get it to show any errors if I leave out a field. I wonder if its because of the way Craft assign the new entry variable after submitting.
Did you manage to get that part working?

I can get it to post but I cant get it to show any errors if I leave out a field. I wonder if its because of the way Craft assign the new entry variable after submitting.
Did you manage to get that part working?

@philipboomy Oh I see - sorry, read your post early hours so didn't read properly.
I don't actually think I did get it to show any errors for me.
What's your use case? Are you trying to do some field validation or something, or are you needing the errors for debugging? Just trying to think of a workaround for you!

@philipboomy Oh I see - sorry, read your post early hours so didn't read properly.
I don't actually think I did get it to show any errors for me.
What's your use case? Are you trying to do some field validation or something, or are you needing the errors for debugging? Just trying to think of a workaround for you!

@stevenjwright No worries :) I would like to show errors for validations to the submitter. Might have to write a custom module or not use Sprig. I just dont want to reinvent the wheel now that we got a Guest Entry Plugin.

@stevenjwright No worries :) I would like to show errors for validations to the submitter. Might have to write a custom module or not use Sprig. I just dont want to reinvent the wheel now that we got a Guest Entry Plugin.


Temperature Converter

Prerequisites

[X] I am an Open Source Contributor
[X] I checked to make sure that this issue has not already been filed

Description
@Rakesh9100  I want to add Temperature converter that converts celcius to Fahrenheit,kelvin etc.Please assign this issue to me.
Screenshots
No response
Code of Conduct

[X] I follow Contributing Guidelines of this project.

I'm confident that I can resolve this issue. Kindly assign it to me, as I am a contributor participating in the Social Winter of Code 2024.

@Rakesh9100 Can I start working on this issue ?

Can I work on it?

Assigning you, Proceed!! @kumar007ambi

@Rakesh9100, In case this issue is not resolved on time, kindly assign it to me

@kumar007ambi Status of your PR

@Rakesh9100 I have started working on this issue


Fix Android test after rename

02:02:05 V/InstrumentationResultParser: Time: 15.727
02:02:05 V/InstrumentationResultParser:
02:02:05 V/InstrumentationResultParser: OK (12 tests)
02:02:05 V/InstrumentationResultParser:
02:02:05 V/InstrumentationResultParser:
02:02:05 V/InstrumentationResultParser: INSTRUMENTATION_CODE: -1
02:02:05 V/InstrumentationResultParser:
02:02:05 I/XmlResultReporter: XML test result file generated at /Users/yuri/workspace/okhttp/android-test/build/outputs/androidTest-results/connected/TEST-New_Device_API_29(AVD) - 10-android-test-.xml. Total tests 13, passed 11, assumption_failure 1, ignored 1,
02:02:05 V/ddms: execute 'am instrument -w -r   -e notClass org.conscrypt.KitKatPlatformOpenSSLSocketImplAdapter okhttp.android.test.test/android.support.test.runner.AndroidJUnitRunner' on 'emulator-5554' : EOF hit. Read: -1
02:02:05 V/ddms: execute: returning
02:02:05 V/ddms: execute: running pm uninstall okhttp.android.test.test
02:02:05 V/ddms: execute 'pm uninstall okhttp.android.test.test' on 'emulator-5554' : EOF hit. Read: -1
02:02:05 V/ddms: execute: returning

> Task :android-test:connectedAndroidTest
> Task :android-test:connectedCheck

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 36s
64 actionable tasks: 9 executed, 55 up-to-date

The android test is fiddly because of not activating itself in Intellij.  But I think it's proven itself for changes I've been doing.


GH-Pages Error in Center

I'm trying to see if webtop fits my needs, but after cloning and running it I need to go to center because I have no apps.  When I visit center it takes me to the Github pages site at http://ozone-development.github.io/ozp-center/#/home.  I get the following screen:

When I open up the console, I can see that this is a CORS error as shown below.

Any help would be appreciated.  I'm most interested in webtop, not center but this stops me from trying it much.

The owfgoss infrastructure went down a couple of weeks ago, and since the gh-pages demos rely on a backend hosted on owfgoss, none of the gh-pages demos work at the moment. Thanks for the reminder that we need to update READMEs to indicate the issue.
The easiest way to test this out locally is to use Vagrant as per the instructions here: https://github.com/ozone-development/dev-tools/tree/master/vagrant/centos6.6/build-and-deploy-box
There are also a couple of CI servers running that you may have access to - I'll send you more details via email.

As an effect to what is mentioned above the gh-pages branch has been removed to help resolve confusion

@wski shouldn't we remove all of the demo pages as well?

@mparizernc if we are not going to support them for now I would just leave the website and disable the links to the gh-pages; I think @arw180 is planning to stand everything back up when the new backend exists so we should keep the main site.
@tonyalletag @clarkjefcoat What do you guys think?

We should remove any links to non-working pages.  Keeping main page at http://ozone-development.github.io/ is fine, but it shouldn't have bad links.

@clarkjefcoat The only links that work are the ones at the bottom of the page. None of the tools work (HUD, Webtop, Center, Metrics). Of course the sample widgets won't work if they use IWC because there is no back end.  It might make sense to just disable to page until there is a back end that can be run.

We should shutdown this page and redirect people to http://ozone-development.github.io/ozone-website/

done :+1:

GH page eliminated bad (demo) link.  LInks to URL with old (OWF) and new (OZP) data.


Broken hooks rule with registerPreviewTemplate and MDXProvider

I'm currently transferring my site from netlify-cms and I'm encountering issue with my previous setup for rendering custom markdown.
Previously my working code looked like this:
CMS.registerPreviewTemplate('blog', HOCPreview)

// ...

const HOCPreview = (props: TemplatePreviewProps) => {
    return (
        <ArticleProvider>
            <Preview {...props} />
        </ArticleProvider>
    )
}

In the above, Preview is a component that takes some data and displays it:
const Preview = (props: TemplatePreviewProps) => {
    const entry = props.entry
    const body = (entry.data as { body: string }).body

    return <>{body}</>
}

And ArticleProvider is a more complex context which adds my MDX components:
const ArticleProvider = ({ children }: { children: React.ReactNode }) => {
    return <MDXProvider components={components}>{children}</MDXProvider>
}

The idea here is to pass the Markdown through the same MDXProvider I use for my frontend and render it as it would on my site.
This worked perfectly previously, but I'm now getting:
static-cms-core.js?600c:304 Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
    at Object.throwInvalidHookError (react-dom.development.js?61bb:14906:1)
    at Object.useContext (react.development.js?72d0:1504:1)
    at useMDXComponents (index.js?8019:67:29)
    at MDXProvider (index.js?8019:89:1)
    at Sa (static-cms-core.js?600c:81:1612500)
    at kl (static-cms-core.js?600c:81:1669564)
    at bc (static-cms-core.js?600c:81:1658550)
    at vc (static-cms-core.js?600c:81:1658483)
    at gc (static-cms-core.js?600c:81:1658347)
    at ic (static-cms-core.js?600c:81:1653442)
    at x (static-cms-core.js?600c:81:1722869)
    at MessagePort.O (static-cms-core.js?600c:81:1723405)

The issue is definitely happening within MDXProvider, but all of it is definitely valid React code.
Is there anything obvious that jumps out here? Working on creating a reproduction at the moment.

I have a hunch, as part of the modernization effort the project has been updating to use React 18.2.0 (NetlifyCMS uses React 17). Currently it is not set as peer dependency (this will change before the stable release). So if you are on a version of React below 18.2.0 then both versions of react would be included in the final build. I suggest matching your React version to StaticCMS's for now IF you are bundling.

Closing this issue as stale. If you are still having this issue please feel free to comment here and I'll reopen it.

For people finding this issue: I had the exact same problem while migrating from NetlifyCMS, even when matching React and ReactDOM versions (i.e. using 18.2.0 explicitely).
I solved the issue by replacing all React.createElement by h and all React.useState by useState (not namespaced), as mentioned in the custom preview documentation.


Longer CloudFormation stack names cause errors in length of Lambda function names

Important: Bug reports submitted here should relate specifically to the open source sample amazon-transcribe-live-meeting-assistant project. Do not submit bugs related directly to any AWS service.
If your issue relates to Amazon Transcribe, Amazon Bedrock or Amazon Bedrock Knowledge Base - setup, user provisioning, document ingestion, accuracy, or other aspects of the service, then first check the service documentation, and then reproduce the problem using the relevant AWS service console before engaging AWS support directly. Thank you.
Describe the bug
When you use a longer, more descriptive CloudFormation stack name like "LiveMeetingAssistant" instead of "LMA", the stacks fail to deploy because the name of the stack is used to generate the names of the Lambda functions. The names of these Lambda functions quickly exceed the 64 character limit. See screenshot at the end.
To Reproduce
Steps to reproduce the behavior:

Go to the README and Launch Stack button to launch the CloudFormation stack
Enter LiveMeetingAssistant as the stack name instead of the default LMA
Leave all other values default and create the stack
Within 5-10 minutes, the stack will fail with an error message similar to the screenshot above

Expected behavior
It would be nice if the CloudFormation stack names can be a little longer and more descriptive, especially when multiple stacks are deployed in a single AWS account.
Screenshots

Additional context
N/A

Fix in develop branch, queued for next release. Stack Names can now be 25 characters, enforced by a custom resource check.

Fixed in v0.1.2
StackName length max is 25 characters, enforced by a custom resource in the main template.  You can now use stack name of "LiveMeetingAssistant" no problem :)


Update the plugin to work with latest version of videojs - 4.6.4

Thanks for the PR.
There's a recent discussion about the techName on the video.js repository. They'll be moving away from the closure compiler, so by then we should be able to use it with video.js (not only with video.dev.js).


gmail.js not working to create a chrome extension for gmail filter

I am creating a chrome extension to filter gmails when a new email is found but the function given below is not working.
var main = function(){
    gmail = new Gmail();
    console.log('Hello,', gmail.get.user_email())
    filterapi = new Gmail_Filter_Api();
    filterapi.set_gmail_params();
    console.log("Filters set!");
    gmail.observe.on('new_email', function(obj) {
        var data = gmail.get.email_data(email_id=obj),
            content = data['threads'][obj]['content_plain'];
            console.log(gmail.get.email_data);
        if(content.indexOf(keyword) > -1){
            filterapi.createGmailFilter({"has":keyword,
                                         "markread":true,
                                         "skipinbox":true,
                                         "labelas":labelname});
            console.log("Creating filter with id: " + filterapi.filterid);
        }
    });
}

refresh(main);

@keyur1110 "is not working" is fairly vague.  Is it not running at all? Is it throwing an error, if so what error? Have you followed the boilerplate example and got that working first?

Closing this one as invalid. It's old. Problem seems to be with third-party code.


Flatpak can't access all filesystem

Hello,
I was using gitahead as my git client, it worked quite good so I tried switching to Gittyup. Unfortunately the installation with Flatpaks in Ubuntu is not working as expected. It can not access drives mounted under /media because it does not have the proper rights. I looked for a quick solution but apparently this is an underlying issue with flatpaks.
Are you considering releasing Gittyup as a .deb package or even better through an ubuntu repository?

Hi,
this is a limitation of the flatpak package for security reasons. You can overwrite the permissions easily using Flatseal. Just give it the permission to access your drive

Unfortunately I already tried Flatseal and it did not help. I have mounted an encrypted hard drive where all the code is saved.  I tried with an older version of gitahead and it worked, but gittyup could not access it. This is the error
    [-] Unable to checkout 'my-branch' - failed remove - '/run/flatpak/doc/b10d5cbc/my-repo/.my-file.yml' is locked: Permission denied

Is it possible to make distribution through standard repositories and install it by apt?

The problem is the effort on the developer side to maintain all of those packages then. For Arch Linux we have a maintainer which is working with us to get the package running. But there is nobody for debian, ubuntu, ...

After further investigation, the problem was related to the mount options of the hard drive. If someone is willing to support the packaging that would also facilitate the updates. Thanks!

As noted above, Flatseal is perfectly capable of exposing the filesystem to a Flatpak app. If it isn't working as intended, it is due to the way it is mounted. As far as supporting anything non-Flatpak/ninja install, you're probably on your own. I'm no fan of Flatpak, so I run simple git checks for releases as a cron-job that then notifies me of updates for git-only softwares. A few simple bash scripts to grab the latest, compile, install, no need for a PPA in my case. Of course, Manjaro/Arch make it so much better with the AUR instead.

Thx @OdinVex
So what most people probably need is:
Install Flatseal: flatpak install flathub com.github.tchx84.Flatseal
Run Flatseal: flatpak run com.github.tchx84.Flatseal
Under the entry gittyup check All system files


Drop lcobucci/jwt v3 & allow v5

Humm lcobucci/jwt need php:^8; Maybe we can do this for version 3?

How hard is it to support both v3 and v5? Ideally we'd let composer do its resolution job

@chalasr Actually, no, it's okay 😅

Awesome!

Thank you @maxhelias.


Fix missing require for admin router

Development is broken without this change.
Review @vchepeli @paolobueno @emilioicai

LGTM


stop showing 'no state found' errors when a default value is specified

Proposal
When specifying a value for the default property in the state template helper, we expect logs like ERROR: No state for context my_context, property my_property found not to show up or show up as an INFO level log because everything's fine.
References
No response

that was actually a bug. Optional.orElse should have been Optional.orElseGet

merged


I2C transaction_iter should take an iterator of mutable references

I was recently porting an I2C controller device to 1.0.0-alpha.7 which forced me to implement transaction and transaction_iter for the first time. I initially tried to implement transaction as follows:
fn transaction<'a>(
    &mut self,
    address: u8,
    operations: &mut [Operation<'a>],
) -> Result<(), Self::Error> {
    self.transaction_iter(address, operations)
}

This, of course, did not work as &mut [Operation<'a>] produces an iterator with Item = &mut Operation<'a> rather than the Item = Operation<'a> that transaction_iter requires.
fn transaction_iter<'a, O>(&mut self, address: u8, operations: O) -> Result<(), Self::Error>
where
    O: IntoIterator<Item = Operation<'a>>,

In my opinion, transaction_iter's signature should be this instead:
fn transaction_iter<'a, 'b: 'a, O>(&mut self, address: u8, operations: O) -> Result<(), Self::Error>
where
    O: IntoIterator<Item = &'a Operation<'b>>,

This signature mainly allows the implementation of transaction that I wrote above. By changing this signature almost all functions of I2C can be implemented as calls to transaction_iter even on systems without alloc support, with write_iter and write_iter_read being the exceptions. This would allow de-duplication of logic, which is rarely a bad thing. Additionally, I see no reason that transaction_iter needs an iterator over owned Operations in the first place.
Thoughts?

If the iterator yields owned Operations, it can generate them on the fly and return them. If it yields references, it has to allocate all the operations upfront and keep them alive throughout the entire transaction_iter call, as all the yielded references must live for 'a.
However, even with the current "yields owned Operations", the same problem applies to the buffers, they must still be all allocated upfront. Given this I'm not sure transaction_iter has any benefits at all over transaction in the first place... Maybe we should remove it completely.
Also, the whole problem disappears if we change i2c to use a transaction closure like in #351...

You make a good point about needing a way of yielding generated operations. You also make a good point that transaction_iter doesn't really meet this need at the moment.
I'll look at putting together a PR adding something like a what is seen in #351.

As can be expected, while I was far too busy to actually work on this other's have worked at a solution. I think something like https://github.com/rust-embedded/embedded-hal/pull/392 is the right path forward.

It would be nice to have a default implementation for some of these trait items. If write and read could have default implementations calling write_iter and read_iter, it would nicely reduce the overhead of what somebody needs to write.
Also, what is the reasoning behind keeping the transaction methods within the main I2c trait, rather than  something like I2cTransactional? It seems to me like the way it currently is for v2 makes it tougher to write a minimal i2c implementation (without using unimplemented!).

Thank you everybody for the discussion.
This method has been removed in #440. Closing.


Url is not redirecting

Actually iam having issue trying from past one week i dint got solution
First iam having url like www.example.com\search?q=test after hitting that url it redirect some results page or if any results are not there it will redirect another page like www.example.com\noresults page
Now the problem statement is if we request the url  like below url redirection is not happening if there are no results. Is this a Bug? or is there any way to check.
Connection.Response loginForm = Jsoup.connect("https://www.example.com\search?q=test").method(Connection.Method.GET)
.ignoreContentType(true)
.userAgent(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36")
.followRedirects(true).execute();

Can you provide the real code (including the site)? It looks like a server specific issue, so that's needed to debug.


Change the name of dlang-ci

The action's ownership was transfered.

https://github.com/dlang-community/setup-dlang


Add address processing queues

add two new queues for batch-address.file (submit and complete)
add function to send contents to batch-address.file.submit
consume from batch-address.file.complete and log for now

Pivotal Card

👍🏻😎


[✨] Serialize Set & Map

Is your feature request related to a problem?
I use Set & Map a instead of Array & Object as more and more developers are doing these days (even recommended by Steve from builder.io: https://www.youtube.com/watch?v=hubQQ3F337A)
But in Qwik I stopped using it as it required a lot of back and forth between Set & Array and Map and Object to store the state.
It would be a great developer experience improvement to serialize these primitives.
Describe the solution you'd like
Currently qwik serialize some JS primitives like BigInt & Date. I think Set & Map should be serialized too as they are very useful to manage state.
Maybe the { deep: true } option in useStore might be an issue, but I think it could be ignored for Set & Map (if this is an issue)
Describe alternatives you've considered
Use Object & Array
Additional context
No response

Yeah, this would be great!

Love it so much!

I will look into it! Should not be hard

I just look into this feature and notice that it does not work when I use empty set just when I add into a set some data then it not error.
another thing this is updating but it not reactive for some reason:

in the photo you can see the number 1 this is because I use new Set([""]) so the size is start.
this is the code I use on empty index.tsx:
import { component$, useComputed$, useSignal } from<EMAIL_ADDRESS>
export default component$(() => {
    const signalSet = useSignal(new Set<string>([""]));
    const computeSize = useComputed$(() => signalSet.value.size);

    return

            {computeSize.value}

        <button onClick$={() => {
            signalSet.value.add(Math.random().toString());
            console.log(signalSet.value);
            }} class={'p-3 rounded-md bg-sky-800 m-2 text-sky-50'}>Add</button>

});

Hey, i'm facing the same problem. Set's are not reactive?

Unfortunately, they are not. Not much we can do about that.


No such file or directory: "VILA1.5-13b-AWQ/llm/model-00001-of-00006.safetensors"

I've done the following:

Alternatively, one may also skip the quantization process and directy download the quantized VILA-1.5 checkpoints from here. Take VILA-1.5-13B as an example, after running:

cd tinychat
git clone https://huggingface.co/Efficient-Large-Model/VILA1.5-13b-AWQ
One may run:

python vlm_demo_new.py \
    --model-path VILA1.5-13b-AWQ \
    --quant-path VILA1.5-13b-AWQ/llm \
    --precision W4A16 \
    --image-file /PATH/TO/INPUT/IMAGE \

from the docs. Then for some reason the model_path looks for the non-quantized safetensors file:
(base) ~/llm-awq/tinychat$ CUDA_VISIBLE_DEVICES=0 python vlm_demo_new.py --model-path VILA1.5-13b-AWQ --quant-path VILA1.5-13b-AWQ/llm --precision W4A16 --image-file ../../docs-fuji-red.jpg
/home/ray/anaconda3/lib/python3.10/site-packages/transformers/utils/generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  _torch_pytree._register_pytree_node(
/home/ray/anaconda3/lib/python3.10/site-packages/transformers/utils/generic.py:309: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  _torch_pytree._register_pytree_node(
/home/ray/anaconda3/lib/python3.10/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: '/home/ray/anaconda3/lib/python3.10/site-packages/torchvision/image.so: undefined symbol: _ZN3c1017RegisterOperatorsD1Ev'If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?
  warn(
/home/ray/llm-awq/tinychat/models/vila_llama.py:31: UserWarning: model_dtype not found in config, defaulting to torch.float16.
  warnings.warn("model_dtype not found in config, defaulting to torch.float16.")
real weight quantization...(init only): 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 40/40 [00:01<00:00, 26.14it/s]

[Warning] The awq quantized checkpoint seems to be in v1 format.
If the model cannot be loaded successfully, please use the latest awq library to re-quantized the model, or repack the current checkpoint with tinychat/offline-weight-repacker.py

Loading checkpoint:   0%|                                                                                | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/ray/llm-awq/tinychat/vlm_demo_new.py", line 238, in <module>
    main(args)
  File "/home/ray/llm-awq/tinychat/vlm_demo_new.py", line 93, in main
    model.llm = load_awq_model(model.llm, args.quant_path, 4, 128, args.device)
  File "/home/ray/llm-awq/tinychat/utils/load_quant.py", line 82, in load_awq_model
    model = load_checkpoint_and_dispatch(
  File "/home/ray/anaconda3/lib/python3.10/site-packages/accelerate/big_modeling.py", line 579, in load_checkpoint_and_dispatch
    load_checkpoint_in_model(
  File "/home/ray/anaconda3/lib/python3.10/site-packages/accelerate/utils/modeling.py", line 1568, in load_checkpoint_in_model
    checkpoint = load_state_dict(checkpoint_file, device_map=device_map)
  File "/home/ray/anaconda3/lib/python3.10/site-packages/accelerate/utils/modeling.py", line 1313, in load_state_dict
    with safe_open(checkpoint_file, framework="pt") as f:
FileNotFoundError: No such file or directory: "VILA1.5-13b-AWQ/llm/model-00001-of-00006.safetensors"

I got a little farther by specifying the actual .pt file:
(base) ray@6c663dea2a49:~/llm-awq/tinychat$ CUDA_VISIBLE_DEVICES=0 python vlm_demo_new.py --model-path VILA1.5-13b-AWQ/ --quant-path VILA1.5-13b-AWQ/llm/vila-1.5-13b-w4-g128-awq-v2.pt --image-file https://media.substrate.run/docs-fuji-red.jpg
/home/ray/anaconda3/lib/python3.10/site-packages/transformers/utils/generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  _torch_pytree._register_pytree_node(
/home/ray/anaconda3/lib/python3.10/site-packages/transformers/utils/generic.py:309: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
  _torch_pytree._register_pytree_node(
/home/ray/anaconda3/lib/python3.10/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: '/home/ray/anaconda3/lib/python3.10/site-packages/torchvision/image.so: undefined symbol: _ZN3c1017RegisterOperatorsD1Ev'If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?
  warn(
/home/ray/llm-awq/tinychat/models/vila_llama.py:31: UserWarning: model_dtype not found in config, defaulting to torch.float16.
  warnings.warn("model_dtype not found in config, defaulting to torch.float16.")
real weight quantization...(init only): 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 40/40 [00:01<00:00, 27.16it/s]
Loading checkpoint: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00,  5.93s/it]
==================================================
USER: what is this
--------------------------------------------------
ASSISTANT: Traceback (most recent call last):
  File "/home/ray/llm-awq/tinychat/vlm_demo_new.py", line 238, in <module>
    main(args)
  File "/home/ray/llm-awq/tinychat/vlm_demo_new.py", line 184, in main
    outputs = stream_output(output_stream, time_stats)
  File "/home/ray/llm-awq/tinychat/utils/conversation_utils.py", line 83, in stream_output
    for outputs in output_stream:
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 56, in generator_context
    response = gen.send(request)
  File "/home/ray/llm-awq/tinychat/stream_generators/llava_stream_gen.py", line 177, in LlavaStreamGenerator
    out = model(
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ray/llm-awq/tinychat/models/vila_llama.py", line 91, in forward
    outputs = self.llm.forward(
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/ray/llm-awq/tinychat/models/llama.py", line 332, in forward
    h = self.model(tokens, start_pos, inputs_embeds)
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/ray/llm-awq/tinychat/models/llama.py", line 316, in forward
    h = layer(h, start_pos, freqs_cis, mask)
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ray/anaconda3/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ray/llm-awq/tinychat/models/llama.py", line 263, in forward
    h = x + self.self_attn.forward(
RuntimeError: CUDA error: an illegal memory access was encountered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

@kousun12, There may be issues with your environment. You can use the following dockerfile to setup an environment with llm-awq and VILA.
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04

RUN apt-get update && \
    apt-get install -y openssh-server python3-pip vim git tmux

# Install VILA firstly
RUN git clone https://github.com/Efficient-Large-Model/VILA.git /root/VILA
WORKDIR /root/VILA
RUN pip install --upgrade pip
RUN pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118
RUN wget https://github.com/Dao-AILab/flash-attention/releases/download/v2.4.2/flash_attn-2.4.2+cu118torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
RUN pip install flash_attn-2.4.2+cu118torch2.0cxx11abiFALSE-cp310-cp310-linux_x86_64.whl --extra-index-url https://download.pytorch.org/whl/cu118

RUN pip install setuptools_scm --index-url=https://pypi.org/simple
RUN pip install -e . && pip install -e ".[train]"

RUN pip install<EMAIL_ADDRESS>RUN site_pkg_path=$(python3 -c 'import site; print(site.getsitepackages()[0])')
RUN cp -rv ./llava/train/transformers_replace/* $site_pkg_path/transformers/

# Then install llm-awq
RUN git clone https://github.com/mit-han-lab/llm-awq /root/llm-awq
WORKDIR /root/llm-awq
RUN pip install -e .
WORKDIR /root/llm-awq/awq/kernels
# https://github.com/pytorch/extension-cpp/issues/71#issuecomment-1183674660
# TORCH_CUDA_ARCH_LIST=$(python3 -c 'import torch; print(".".join(map(str, torch.cuda.get_device_capability(0))))')
# TORCH_CUDA_ARCH_LIST="8.0+PTX" for A100
RUN export TORCH_CUDA_ARCH_LIST="8.0+PTX"
RUN python3 setup.py install

RUN pip install opencv-python-headless

RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /root/.cache

I'm also running on H100s and have seen issues in the log console around TORCH_CUDA_ARCH_LIST -- Should I be setting that to 9.0?

I'm also running on H100s and have seen issues in the log console around TORCH_CUDA_ARCH_LIST -- Should I be setting that to 9.0?

I think so.

I'm also running on H100s and have seen issues in the log console around TORCH_CUDA_ARCH_LIST -- Should I be setting that to 9.0?
Should be setting it as:

TORCH_CUDA_ARCH_LIST="9.0+PTX"

Based on the OP's suggestion, I was able to resolve exactly the same issue by specifying the vila-1.5-13b-w4-g128-awq-v2.pt file location (not just the llm/ directory) directly in the --quant-path param. After this, the demo worked as expected.
python vlm_demo_new.py --model-path ../VILA1.5-13b-AWQ --quant-path ../VILA1.5-13b-AWQ/llm/vila-1.5-13b-w4-g128-awq-v2.pt --precision W4A16 --image-file ../VILA/demo_images/av.png

Thanks @cktlco . I also stumbled on the same issue. Using the exact file location path in --quant-path, I was able to get a bit further. However then this issue came up.
GPU: RTX A6000
python vlm_demo_new.py --model-path /root/llm-awq/tinychat/VILA1.5-13b-AWQ --quant-path /root/llm-awq/tinychat/VILA1.5-13b-AWQ/llm/vila-1.5-13b-w4-g128-awq-v2.pt --precision W4A16 --image-file /root/VILA/demo_images/av.png

Error
/root/llm-awq/tinychat/models/vila_llama.py:31: UserWarning: model_dtype not found in config, defaulting to torch.float16.
  warnings.warn("model_dtype not found in config, defaulting to torch.float16.")
real weight quantization...(init only): 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████| 40/40 [00:03<00:00, 10.02it/s]
Loading checkpoint:   0%|                                                                                | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/root/llm-awq/tinychat/vlm_demo_new.py", line 238, in <module>
    main(args)
  File "/root/llm-awq/tinychat/vlm_demo_new.py", line 93, in main
    model.llm = load_awq_model(model.llm, args.quant_path, 4, 128, args.device)
  File "/root/llm-awq/tinychat/utils/load_quant.py", line 82, in load_awq_model
    model = load_checkpoint_and_dispatch(
  File "/usr/local/lib/python3.10/dist-packages/accelerate/big_modeling.py", line 579, in load_checkpoint_and_dispatch
    load_checkpoint_in_model(
  File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/modeling.py", line 1568, in load_checkpoint_in_model
    checkpoint = load_state_dict(checkpoint_file, device_map=device_map)
  File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/modeling.py", line 1391, in load_state_dict
    return torch.load(checkpoint_file, map_location=torch.device("cpu"))
  File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 797, in load
    with _open_zipfile_reader(opened_file) as opened_zipfile:
  File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 283, in __init__
    super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory


Reuben not detecting when Firework used on him

Example code:

# Sneak whilst holding any firework
on sneak toggle:
    if player's held item is firework:
        send "*** Holding firework"

Result: Skript does not appear to detect held firework

Fixed; use firework rocket instead


[Feature Request]: Add button dropdown (similar to the one in bootstrap)

Requirements before reporting

[X] No duplicated issue reported
[X] I have read the contribution guidelines
[X] I have checked the lastest version if the feature exist there

Type of feature request
Functionality
What is your feature request?
As we have a limited ammount of types of buttons, when we have components that work as a dashboard and allow the user to take many actions, with just primary/secondary/ghost options, the experience is very poor.
Background
The need for organizing similar actions into groups and simplify the user interface.
Idea
No response
Goals and objectives
No response
Timeline
No response
Resources
No response
Contact information
No response
AB#2320

This feature request is noted and added to our backlog, will need both design investigation and development work.


Create SVF Plugin

Unable to convert to SVF with the given code in CreateSvfAutomation.cs. Getting the error " The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))". Is there any update with the code?

Do I understand it right, it works with demo data, but is not working with your custom data?

I didn't try to run this. I just used the code to create a SVF of a larger assembly.

Ok, there are 2 options:

You made somewhere mistake
It is something special with your dataset

We can figure it out by running this whole application while using your dataset in there. You can give it a try and let us know. If it is not going to work out for your dataset but for the preprepared demo dataset it will, then we need your dataset to do further investigation.


OAuth2 autentication is not working

As i commented  on issue #904 , in an Ionic project, I upgraded the version from 0.14.2 to 0.15.1 (and after that i upgraded to the current release version 0.15.4) and the same Ionic configuration that my project had is not working.
Besides that, in a Web API I'm developing, it also fails to autenthicate as the provider returns that the redirect_uri is not valid.
In both situations, the satellizer $authProvider is the same i used with version 0.14 and it was working just fine.
The docs doesnt say anything about changes in the use of the library, so i assume its something else. Can you help providing information about this issue?
Thanks

same happened to me  $auth.isAuthenticated(); method always return false


wr.s3.store_parquet_metadata reading category dtype as null string

Hi - wr.s3.store_parquet_metadata is not correctly converting a category column to string.
The parquet files have this column ticker as a category:

The Glue table that gets written using wr.s3.store_parquet_metadata writes correctly, but the 'ticker' field gets converted to string and is null.

I tried setting dtype={'ticker':'string'} but still null.  Any thoughts?

Hi @melvinev how can you see that this column has this "category[know]" type in the parquet file? And how this parquet file was written?

Hi @igorborgest I'm using dd.read_parquet() (Dask).
Dummy example (change the S3 path):
    .to_parquet(f"s3://bucket/cartest", engine="pyarrow", write_index=False, compression="snappy", partition_on=['Car'])

wr.s3.store_parquet_metadata(
    path='s3://bucket/cartest',
    database="database",
    table="cartest",
    dataset=True,
    mode="overwrite",
    compression="snappy",
    use_threads=True
)

Confirmed that by looking at a single parquet file, the 'Car' column is not in there, yet wr is adding it as a second colum:

And when I read the full parquet folder, Pandas correctly creates a column for Car derived from the folder partitions:

@melvinev thanks for more details, we will investigate it.
One last question, are you sure that you don't have this column materialized in some file?
You can run this snippet to check:
wr.s3.read_parquet(
    path="...",
    dataset=True,
    validate_schema=True
)

It will throw an exception if there is some mismatching schema in your files.

Hi @igorborgest really appreciate you looking into this!
The schema does not pass - do you think it has to do w/ how Dask is writing the parquet partitions? Any thoughts here?

Okay so I tried deleting the _metadata file that Dask creates and it works now... I can tell Dask to not write the metadata file, but do you know why this is happening?

The wr.s3.store_parquet_metadata takes a very long time to run with not a ton of files - is the metadata file supposed to help speed this up given it knows the parquet structure?

Also I deleted the "_common_metadata" file and reran and it was successful so maybe these 2 metadata files together are causing the problem?

Wrangler will ignore this metadata file.
Are you sure this issue has some relation with this metadata file? It seems that you had files mixed from two different "writes" and with different schemas. Maybe just the clean up would solved it.
About the wr.s3.store_parquet_metadata() speed.

How much files do you have?
How much time it takes?
Are you running from inside AWS?

By default this function will check the footer of all your files, so it is I/O intense. If you are running it from a high latency environment (e.g. distant s3 region) is expected that it will take some time.
In addition to that we also have the sampling argument. So if you have a uniform schema you can pass sampling=0.1 to scan only 10% of the files for example.

@igorborgest yeah I tested the metadata a few times and deleting it makes it work... I'll try again.
re: speed:

400 partition folders with 1 partition file of about 10mb in each
Never finishes, > 10 minutes and I cancel
yes in AWS running in same region as the S3 bucket (us east 1)

Does it help to prepopulate the names of the files like this?
path = ['s3://' + s for s in s3fs.S3FileSystem().glob('s3://bucket/partitions)]

When I use s3.store_parquet_metadata with dataset=True on a folder of parquet files (non partitioned) its very quick.

I think the original issue stands, if delete the "common_metadata" file it actually works properly and finishes in 1.5 minutes and does not have duplicates.

I get this I leave both meta data files in:
HIVE_INVALID_METADATA: Hive metadata for table cartest is invalid: Table descriptor contains duplicate columns

Adding write_metadata_file=False, fixes it, so it's either something weird with how Dask writes metadata files or AWS Wrangler reads them:
.to_parquet(f"s3://bucket/cartest", engine="pyarrow", write_index=False, write_metadata_file=False, compression="snappy", partition_on=['Car']

So if the problem is this metadata file, you can use the path_suffix=["parquet"] OR path_ignore_suffix=["_medadata"] arguments to ignore it.
This way you can keep using these files to read with Dask.

Ah clever... thank you! Beats deleting the files.

Thanks again @igorborgest

Also, it is totally off-topic, but we are stating a "Who uses AWS Data Wrangler?" section. So feel free to add yourself if you want.


Create new_dining_accessory.js

Optimized logging. Removed double call of connect in discover event. Added display of actual rssi in log.

I couldn't uploud the file directly, so I pulled a request.


Improve the document (not adding content)

Fixes #142 and do somethings else.
Related PR: #178 and #172
This PR will improve something except the content of the document itself
This PR does not enhance the translation too much
I hope to complete this PR in two days.

@GreasySlug If you are interested in this PR. You can fix all linked and proofread Japanese and English documents (PS: remember updata commit hash)

I'm sorry
I noticed this but couldn't use my pc till right now.
Is there anything I can help you with?

I'm sorry I noticed this but couldn't use my pc till right now. Is there anything I can help you with?

I have completed the content of this PR plan, but if you are interested, you can open a PR to examination Japanese and English documents, and remember to updata commit hash in Chinese and Japanese documents(We need to improve language specific expression, You can try to improve English and Japanese documents. I can improve Chinese documents PS: There are still many problems with Chinese documents) @GreasySlug


No module named 'graphxai.utils'

Thanks for the great work. I have installed graphxai using github. It shows errors when I try to import graphxai in python. Please check details below:
  File "<ipython-input-328-53dd77503f89>", line 1, in <module>
    import graphxai

  File "/opt/anaconda3/lib/python3.8/site-packages/graphxai/__init__.py", line 1, in <module>
    from graphxai.utils.explanation import Explanation

ModuleNotFoundError: No module named 'graphxai.utils'

Thank you for your interest in our work. Please find below the exact steps you can try to install the package cleanly.

git clone https://github.com/mims-harvard/GraphXAI.git
cd GraphXAI
pip install -e .

Output:
Preparing metadata (setup.py) ... done
Installing collected packages: graphxai
Running setup.py develop for graphxai
Successfully installed graphxai-0.1
Check:
python
Python 3.11.3 (main, Apr  7 2023, 21:05:46) [Clang 14.0.0 (clang-14<IP_ADDRESS>)] on darwin

import graphxai
from graphxai.utils.explanation import Explanation

Runs successfully!
Please let me know if this help.s


Allow option to skip evicted

I have to deal here with a depenency tree of 38K lines. It would be a lot more manageable if the evicted parts could be excluded. Please add a switch for that.

skip skip lines: "|        "
skip dependency if its already mentioned above

currently it's unreadable mess in comparison to maven's dependency:tree clean output


fix VM pinning missing host attribute

In existing create_vms.yml, host attribute was missing, which is required if you need to use cpu_host mode pinned

Hello contributor, thanks for submitting a PR for this project!
I am the bot who triggers "standard-CI" builds for this project.
As a security measure, I will not run automated tests on PRs that are not from white-listed contributors.
In order to allow automated tests to run, please ask one of the project maintainers to review the code and then do one of the following:

Type ci test please on this PR to trigger automated tests for it.
Type ci add to whitelist on this PR to trigger automated tests for it and also add you to the contributor white-list so that your future PRs will be tested automatically. ( keep in mind this list might be overwritten if the job XML is refreshed, for permanent whitelisting, please follow #3 option )
If you are planning to contribute to more than one project, maybe it's better to ask them to add you to the project organization, so you'll be able to run tests for all the organization's projects.

ci test please

@machacekondra @mnecas  kindly review. I tested it to deploy Host Pinned VMs with Passthrough.


Shield spell displays info for Shield item

Maybe some sort of parsing conflict due to them having the same name?

Yeah, you're right. See, I'm bad at programming and the system would just return the first result using the name that you chose in the autocomplete dropdown. Since I'm a self-confessed bad programmer, I'll just append (Item) to the item one, since the spell one is probably more searched anyway.


neurosift connection problem

Connection issue when trying to open an nwb in neurosift on the dandi website. This happens when I open the dandi site from my office computer, but not when I open it from my home computer.
Both firefox and chrome complain;
firefox; neurosift.app has a security policy called HTTP Strict Transport Security (HSTS), which means that Firefox Developer Edition can only connect to it securely. You can’t add an exception to visit this site.
However, this is not consistent. Because when I tried this later a second time, neurosift opened an nwb file without errors.
I'm not sure this is a real issue, rather a warning.

Strange. Is this reproducible? If so, could you please provide the link (or is it for all files?)?

It was for all files, but seems to randomly occur.

Interestingly, if this happens when I try to open an nwb file online, I also cannot open nwb files locally with neurosift in Guide.

That's very strange. So this happens randomly? I don't know why it wouldn't be connecting via https. I haven't heard this problem from anyone else. Does it not load https://neurosift.app at all... even the landing page?

Hi Jeremy,
So when I locally try to open an nwb file with neurosift in guide, nothing happens. If I check the online version through dandy, I get the connection error.
At some time later, both work for me without errors.
Are you using a Secure WebSocket protocol in the backend. Could it have something to do with this?
Best,
Chris

Dr. C. van der Togt
Data manager
Netherlands Institute for Neuroscience
Meibergdreef 47
1105BA Amsterdam
The Netherlands
From: Jeremy Magland @.>
Sent: Thursday, June 27, 2024 3:39 PM
To: flatironinstitute/neurosift @.>
Cc: Chris van der Togt @.>; Author @.>
Subject: Re: [flatironinstitute/neurosift] neurosift connection problem (Issue #182)
That's very strange. So this happens randomly? I don't know why it wouldn't be connecting via https. I haven't heard this problem from anyone else. Does it not load https://neurosift.apphttps://neurosift.app/ at all... even the landing page?

Reply to this email directly, view it on GitHubhttps://github.com/flatironinstitute/neurosift/issues/182#issuecomment-2194716142, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABIQZHBB2E5LPSD66MRW7R3ZJQIVXAVCNFSM6AAAAABJZ5UC2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJUG4YTMMJUGI.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>


CMAKE_C_COMPILER not set error

Hi when I attempt to generate an FMU, I get the following error:
CMAKE_C_COMPILER not set, after EnableLanguage\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\n'nmake' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n
What should I do?

edited the file build_VC_x64.bat as described in readme now it works.


User Systemd Unit

Creation of a systemd folder
User systemd unit named convos_user.service
Detailed instructions on README.md

I'm not sure if this belongs in this repo. I think it makes more sense to add this to https://github.com/convos-chat/www.convos.chat.
Please modify https://github.com/convos-chat/www.convos.chat/blob/2382c4d8871f126d0c3fc63f9772a2b0acee0cbe/doc/config.md#automatic-startup-with-systemd instead.


Updating installation instructions

Clarification on how to update and install geocat packages in a pre-existing environment was requested in this issue https://github.com/NCAR/GeoCAT/issues/43. After speaking with the user who suggested these changes, it was determined that she was looking at the geocat-comp documentation. These instructions are being added to the contributor's guide https://github.com/NCAR/GeoCAT/pull/47, but also should be added to each GeoCAT repository.
This PR updates the installation instructions so that INSTALLATION.md links to installation.rst for easier maintenance. It also adds instructions for how to ensure the environment is up to date.

FYI I just re-ran the builds and they are still failing. There are some issues in geocat-viz that may be causing this. I'll try to run the checks again tomorrow

FYI I just re-ran the builds and they are still failing. There are some issues in geocat-viz that may be causing this. I'll try to run the checks again tomorrow

I just checked the logs, and it seems that it was pulling the newest newest version of -viz, which this repo is not set up to handle yet. We pinned the version in main, I just merged that in and that may solve the failures now


Remove dependency on zip

Currently unzip is required in order to install x11docker:
# curl -fsSL https://raw.githubusercontent.com/mviereck/x11docker/master/x11docker | bash -s -- --update-master
main: line 5149: ip: command not found
main: line 5150: ip: command not found
x11docker note: Failed to check for sshd. ps -p not supported.

main: line 5181: ps: command not found
x11docker note: Your terminal seems to be not POSIX compliant.
  Command 'logname' does not return a value.
  Consider to use another terminal emulator.
  Fallback: Will try to check $SUDO_USER and $PKEXEC_UID.

x11docker note: Will use $(id -un) = root as host user.

x11docker WARNING: Running as user root.
  Maybe $(logname) did not provide an unprivileged user.
  Please use option --hostuser=USER to specify an unprivileged user.
  Otherwise, new X server runs as root, and container user will be root.

Failed to connect to bus: No such file or directory
x11docker note: Current installed version: x11docker GNU bash, version 5.0.0(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

x11docker ERROR: Can not unpack archive. Please install 'unzip'.

  Type 'x11docker --help' for usage information
  Debug options: '--verbose' (full log) or '--debug' (log excerpt).
  Logfile will be: /root/.cache/x11docker/x11docker.log
  Please report issues at https://github.com/mviereck/x11docker

The check is done in https://github.com/mviereck/x11docker/blob/master/x11docker#L1084, and unzip is used in https://github.com/mviereck/x11docker/blob/master/x11docker#L1100. In between, the repo is downloaded in zip format.
There are two issues here:

It is surprising that https://codeload.github.com/mviereck/x11docker/zip/master is used to download --update-master, but https://github.com/mviereck/x11docker/archive/$Releaseversion.zip is used for --update. Why not use the same for both? According to adobe/git-server#5, I'd suggest codeload.github.com.
tar.gz archives are also available in the same location (e.g. https://codeload.github.com/mviereck/x11docker/tar.gz/master or https://codeload.github.com/mviereck/x11docker/tar.gz/v5.3.3). Since tar is more common than unzip in GNU/Linux environments, I suggest supporting it. Furthermore, I'd try tar by default and fall back to zip if not found.

I just want to note that this is a good suggestion and I still have it in mind. Thank you!
I am still hesitating because it is more work than it looks on the first glance.
It changes an essential functionality that must work reliable in any case.
I often have hassle with common linux commands that behave different on different systems. So I have to check out the behaviour tar on many linux systems first before implementing it in the update routine.

I am still hesitating because it is more work than it looks on the first glance.
It changes an essential functionality that must work reliable in any case.

Is it 'more work' because many things need to be changed or just because of the effects it might have?

I often have hassle with common linux commands that behave different on different systems. So I have to check out the behaviour of tar on many linux systems first before implementing it in the update routine.

Did you find any particular issue with tar? I found the following to be quite portable:
mkdir $TARGET_PATH
curl -fsSL https://codeload.github.com/mviereck/x11docker/tar.gz/master | tar xzf - --strip-components=1 -C $TARGET_PATH

Is it 'more work' because many things need to be changed or just because of the effects it might have?

The installer() function is rather short and simple.
The work is to check its functionality on several different linux systems.
If an option like e.g. --clipboard would fail somewhere, it is a minor issue and does not affect core x11docker functionality.
If --update fails, it breaks x11docker entirely. So I hesitate to touch it.

Did you find any particular issue with tar?

I rarely used tar at all. I just found that I can't rely on the same syntax or same result of many common linux commands on several systems. I even found one POSIX command that does not work everywhere (logname).
I could create a bunch of different containers based on as much different systems as possible and check tar in them. Some day.

I have included tar support now. I did some tests on some systems, and its syntax has been the same on all of them. The download pathes are changed to codeload.github.com.
Thanks for your suggestion!

I just tested it and it works great. Thanks!

Thanks for the feedback!


Updated validations.py python script

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py. Fixed Starting letter bug in the code
Closes: #1
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py. Fixed Starting letter bug in the code
Closes: https://github.com/google/it-cert-automation-practice/issues/1
Fixes #<issue_number_goes_here>


Can not get caret to show with custom tooltips or change tooltips position

First off want to say that I love chart.js and it has great documentation. The only problems I have had so far is trying to figure out how to get the caret for the tooltips to show when using custom tooltips and also being able to change the position of the tooltips area. When using caret size and other related things to the caret I can never get a change.

try this
.bottom:after {
bottom: 100%;
left: 17px;
border: solid #e20074;
content: " ";
position: absolute;
pointer-events: none;
border-color: rgba(255, 255, 255, 0);
border-bottom-color: #ffffff;
border-width: 12px;
margin-left: -15px;
}
for custom caret css you can get from here . http://www.cssarrowplease.com/

The above solution is correct. The caret settings wont apply with a custom tooltip since it is all HTML so you'll need to style your HTML div accordingly to get the arrow.

can you provide please the full code ? still not able to make the caret displayed

@etimberg
Could u share the complete code? We couldn't achieve the desired result. Kindly help on this


Subscription map and retained map move only value types

This PR includes the added tests

And what retained_map

I've studied again about perfect forwarding.
Forwarding reference (T&& : T is a function template parameter) and std::forward<T>(t) combination can switch copy/move operation depends on what the caller passed (const reference, r-value reference, value).
It works well for T. But not a member of T. For example, if T is std::pair<a_t,b_t>, we cannot perfect forward only b_t (typename T::second_type).
In this case, passed by value is good choice.
You can always move as follows:
    template<typename V>
    size_t insert_or_update(MQTT_NS::string_view topic, V value) {
    ... = std::move(value);

A caller (user) can pass m.insert_or_update("ABC", MQTT_NS::force_move(v)) if the caller expects move operation.
One additional move constructor call is required but it is the best choice on partial(a part of members) move, I believe.
Note that MQTT_NS::force_move() enforces move operation. If V is not movable, then compile error. On the other hand, std::move() is if T supports move operation, then use it, otherwise fallback to copy operation.
Sometimes I experienced unintentional copy operation.
See https://stackoverflow.com/questions/57105812/how-to-detect-unexpected-copy-in-move-expected-case
It frequently happens when I forgot adding mutable keyword to a lambda expression.
So I introduces MQTT_NS::force_move.
Which one should be used in subscription_map ? I think that std::move() is right one. Because, subscription_map should support copyable but not movable types.

@redboltz
Perfect forwarding works with member variables the way you would expect.
https://stackoverflow.com/a/54709497/3307840

@redboltz
Perfect forwarding works with member variables the way you would expect.
https://stackoverflow.com/a/54709497/3307840

Thank you very much!
I've checked it on my example code.
https://wandbox.org/permlink/p632Ez8oqY2rlNeN


Update api.md

what's this doc taking about ?
I was just confused about it !
why didn't show some demos of usage codes ?

the error codes created by docs!
'console.log([1, 2, 3].map(n = + 1)); '

'{ "presets": ["es2015"] }'

After I modify the code, like this:
let n = 3;
console.log([1, 2, 3].map(n = + 1));

{
    "presets": ["es2015", { "loose": true }]
}

That's really werid.. it shouldn't error since you don't need options. Can you try reinstalling and rm -rf node_modules?

anyway, it works!


Complete videos are not downloaded, only a picture of it

Hello, I have a large amount of videos which are not downloaded, they are replaced by a frame of the video.

Duplicate of #7


Getting "Given client ID does not match authenticated client"

2017/10/04 10:16:43 E1004 10:16:43.328759 89978 main.go:600] Unable to initialize cf-mgmt. Error : cannot get UAAC token, error 401: {"error":"invalid_client","error_description":"Given client ID does not match authenticated client"}
cannot get UAAC token, error 401: {"error":"invalid_client","error_description":"Given client ID does not match authenticated client"}

Any ideas?
When I login with uaac token client get id -s secret, I get back Successfully fetched token via client credentials grant.. Therefore, both id and secret must be ok.

@naruraghavan What are you using for authentication?  UserId/password/client secret or following the latest guide
uaac client add cf-mgmt \
  --name cf-mgmt \
  --secret cf-mgmt-secret \
  --authorized_grant_types client_credentials,refresh_token \
  --authorities cloud_controller.admin,scim.read,scim.write

Also what version of cf-mgmt are you running?

I did the following:
uaac client add blahblah --secret "blahblah"  --no-interactive --scope oauth.approvals,openid,scim.me,scim.userids,cloud_controller.read,cloud_controller.admin --authorities scim.me,oauth.login,scim.userids,cloud_controller.admin,uaa.admin,scim.read,scim.write --authorized_grant_types authorization_code,client_credentials,refresh_token

I cloned yesterday and built cf-mgmt.

I tried creating a cf-mgmt id as you mentioned, but that one failed with the error message as well.

@naruraghavan Let me try to recreate.
LOG_LEVEL=debug ./cf-mgmt export-config --system-domain blah --user-id cf-mgmt  --client-secret blah

with debug turned on:
cannot get UAAC token, error 401: {"error":"invalid_client","error_description":"Given client ID does not match authenticated client"}```

I re-ran the integration tests and export-config works just fine with my CF installation.  Which version of CF are you running?  UAA version?  This error is coming from UAA so need to validate the correct client/client secret are being passed.  Also, ensure you don't have any of the environment variables set.  SYSTEM_DOMAIN, USER_ID, PASSWORD, CLIENT_SECRET

UAA client 4.0.0
cf version 6.32.0+0191c33d9.2017-09-26
I don't see any env vars (printenv | grep ...).

± |master ✓| → go run main.go export-config --system-domain local.pcfdev.io --user-id cf-mgmt --client-secret cf-mgmt-secret --config-dir test-export
2017/10/10 08:46:36 I1010 08:46:36.769248 3997 main.go:592] Orgs excluded from export by default: [system]
2017/10/10 08:46:36 I1010 08:46:36.769294 3997 main.go:593] Orgs excluded from export by user:  []
2017/10/10 08:46:36 I1010 08:46:36.769313 3997 main.go:594] Spaces excluded from export by user:  []
2017/10/10 08:46:36 I1010 08:46:36.769322 3997 uaac.go:64] Getting users from Cloud Foundry
2017/10/10 08:46:36 I1010 08:46:36.817919 3997 uaac.go:70] Found 2 users in the CF instance
2017/10/10 08:46:36 I1010 08:46:36.965316 3997 cloudcontroller.go:213] Total orgs returned : 2
2017/10/10 08:46:36 I1010 08:46:36.965352 3997 exportconfig.go:40] Trying to delete existing config directory
2017/10/10 08:46:36 I1010 08:46:36.96559 3997 config.go:206] test-export doesn't exists, nothing to delete
2017/10/10 08:46:36 I1010 08:46:36.965608 3997 exportconfig.go:47] Trying to create new config folder
2017/10/10 08:46:36 I1010 08:46:36.965615 3997 exportconfig.go:56] Using UAA user origin: uaa
2017/10/10 08:46:36 I1010 08:46:36.965888 3997 config.go:188] Config directory test-export created
2017/10/10 08:46:36 I1010 08:46:36.967228 3997 exportconfig.go:65] Skipping org: system as it is ignored from import
2017/10/10 08:46:36 I1010 08:46:36.967247 3997 exportconfig.go:68] Processing org: pcfdev-org
2017/10/10 08:46:37 I1010 08:46:37.206596 3997 cloudcontroller.go:281] Total users returned : 1
2017/10/10 08:46:37 I1010 08:46:37.225275 3997 cloudcontroller.go:281] Total users returned : 0
2017/10/10 08:46:37 I1010 08:46:37.240706 3997 cloudcontroller.go:281] Total users returned : 0
2017/10/10 08:46:37 I1010 08:46:37.257586 3997 config.go:93] Adding org: pcfdev-org
2017/10/10 08:46:37 I1010 08:46:37.258242 3997 exportconfig.go:78] Done creating org pcfdev-org
2017/10/10 08:46:37 I1010 08:46:37.258261 3997 exportconfig.go:79] Listing spaces for org pcfdev-org
2017/10/10 08:46:37 I1010 08:46:37.279545 3997 cloudcontroller.go:35] Total spaces returned : 1
2017/10/10 08:46:37 I1010 08:46:37.279585 3997 exportconfig.go:81] Found 1 Spaces for org pcfdev-org
2017/10/10 08:46:37 I1010 08:46:37.279605 3997 exportconfig.go:87] Processing space: pcfdev-space
2017/10/10 08:46:37 I1010 08:46:37.500857 3997 cloudcontroller.go:281] Total users returned : 2
2017/10/10 08:46:37 I1010 08:46:37.687977 3997 cloudcontroller.go:281] Total users returned : 2
2017/10/10 08:46:37 I1010 08:46:37.846599 3997 cloudcontroller.go:281] Total users returned : 1
2017/10/10 08:46:37 I1010 08:46:37.846729 3997 config.go:149] Adding space: pcfdev-space

Closing this issue, if there are more details please reopen


added notebooks to template

I fired off another build of the lab notebook on the summit2018 tag.  When that finishes, we can update this template.


bug: [Help] Failed to rename buffer

Describe the bug
I asked the assistant to refactor my code but i can't apply the suggestions
i'm really new into nvim and using astronvim, maybe i'm doing something wrong?

basically everytime i press 'a' or 'A' gives me this error

To reproduce
My current config file
return {
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this if you want to always pull the latest change
  opts = {
    provider = "openai"
  },
  -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
  build = "make",
  -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
  dependencies = {
    "nvim-treesitter/nvim-treesitter",
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
    --- The below dependencies are optional,
    "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
    "zbirenbaum/copilot.lua", -- for providers='copilot'
    {
      -- support for image pasting
      "HakonHarnes/img-clip.nvim",
      event = "VeryLazy",
      opts = {
        -- recommended settings
        default = {
          embed_image_as_base64 = false,
          prompt_for_file_name = false,
          drag_and_drop = {
            insert_mode = true,
          },
          -- required for Windows users
          use_absolute_path = true,
        },
      },
    },
    {
      -- Make sure to set this up properly if you have lazy=true
      'MeanderingProgrammer/render-markdown.nvim',
      opts = {
        file_types = { "markdown", "Avante" },
      },
      ft = { "markdown", "Avante" },
    },
  },
}

Expected behavior
expecting to see the changes applied.
Installation method
Use lazy.nvim:
{
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this if you want to always pull the latest change
  opts = {
    -- add any opts here
  },
  -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
  build = "make",
  -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
  dependencies = {
    "nvim-treesitter/nvim-treesitter",
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
  },
}

Environment
NVIM v0.11.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Run "nvim -V1 -v" for more info
Linux Igor <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    -- add any other plugins here
  },
})

Looks like it's broken by https://github.com/yetone/avante.nvim/commit/b19573cb2a8e30662e2245c3bfbb6e22d09d0905 and I can get it working by checking out the previous commit.

Same error message here.
Looks like it's broken by b19573c and I can get it working by checking out the previous commit.

I tried a simpler prompt, and it seems to be working now, but I’m not sure what I did differently.

i tried again and didnt worked, this time i record
https://github.com/user-attachments/assets/bef14a15-8942-41b7-9006-333a8dd65081

Same here ! It seems that i can apply the suggestions only once per file ! The second time (even if i close nvim) I face the issue

i can it to work by passing in the full file path when opening neovim

opening nvim to specific file?

opening nvim to an specific file?

Yeah exactly
Recording 2024-10-16 090931.webm

It did fixed it 🎊  Thx @yetone

@yetone still getting the same error on windows
heres my config, basically default options except for the build command https://github.com/adilahmeddev/nvim/blob/3923bf44c1a2d49c81698d6ac86ff2f66d8ef99c/init.lua#L258-L302

@yetone i'm still getting the same error either

@yetone i'm still getting the same error either

Because I couldn't reproduce it, I covered my eyes and made a fix. Is the latest version okay now?

https://github.com/user-attachments/assets/bd552b7f-b3fc-479b-8407-2353c716b258

Gravando.2024-10-16.130630.mp4
the new untitled buffer

Can you help run this command in nvim?
:lua vim.iter(vim.api.nvim_list_bufs()):each(function(bufnr) print(vim.fn.bufname(bufnr)) end)

lua vim.iter(vim.api.nvim_list_bufs()):each(function(bufnr) print(vim.fn.bufname(bufnr)) end)

with relative path

vs opening a file using complete path in neovim

So interesting, I think I have a rough idea of what the problem is.

You can try the latest version again.

it works! Thank you @yetone

works great, too.
Good job!

it's working now thanks @yetone


Project: Use Twinkles Postage Stamps to run Scarlet

I have two goals in this project:

Show how to load up truth information in the Twinkles data folder and use it to find strongly lensed systems in the Twinkles data.
Following the already existing blueprint for running scarlet in scarlet_tutorial.ipynb use it on postage stamps from Twinkles.

Sounds good to me! The scarlet tutorials have exercises in them, for the
user to fiddle with the configurations, constraints etc. You could do
likewise, but don't feel you have to! I'm guessing that you would like to
know how best to set up Scarlet to deblend lensed quasars in coadd
images, so you could either tune the notebook yourself and present it like
this, or set an exercise but provide a hidden answer in a small external
python file and a #%load cell. This is going to be fun, @jbkalmbach :-)

Update on this project: @fred3m is updating the 2 Scarlet tutorial notebooks, and then recommends that for the Twinkles objects we consider running the MultibandCoaddMeasurementTask (or somesuch) to see what it produces, using Scarlet under the hood. We'll still need a list of lenses and non-lenses to explore, but once we have them, its this task that will carry out the deblending of the DRP Objects. The scarlet tutorial to jump off from is Deblending/lsst_stack_deblender.ipynb.

@drphilmarshall Sounds good. I will look at the tutorial notebooks and get back up to speed. I'm back to learn about deblending now that I've passed my defense (yay!).

Congratulations on passing your defense! At the end of this week the LSST stack will be updated with the new scarlet API, as well as the stack club notebooks. So it might be best to wait a week, and take a look at the updated version next Monday.

@fred3m are there updated notebooks available? It seems that the current scarlet notebooks are failing.

Unfortunately not yet. I'll try to get them done at some point this week at the DESC meeting.

The scarlet and stack deblending notebooks should all be up to date, but I'm not sure if this project is still relevant, especially given that all notebooks are DC2-focused now. What do you think @jbkalmbach, should we close it?

Yeah, I think this can be closed since we've moved on to other data. Closing it now. Hopefully we can get run3.1 data in here at some point and try this.


Export nothing.

@racinmat  what do you think of not exporting things? Truncated in itself is not very telling, LoggingFormats.Truncated looks better IMO. And in particular for JSON that is a pretty common variable name so I didn't export that from #2. Thoughts? Can of course export some and some not as is the case now.

I agree, that's good idea, let's export nothing and people would use the full name. Will you incorporate it to the #2  or will it be separate PR?


chore(playwrighttesting): rest-core client retries and timeout tuning

Packages impacted by this PR
@azure/microsoft-playwright-testing
Issues associated with this PR
REST calls getting stuck due to high retries and no timeouts.
Describe the problem that is addressed by this PR
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists

[ ] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[ ] Added a changelog (if necessary)

API change check
API changes are not detected in this pull request.


examples: explicitly set language to C

As per subject.
This is a follow-up to #256.
If no language is specified in project(..) calls, CMake will (try to) enable C and C++ by default.
As Micro-XRCE-DDS-Client is purely C, there is no need for that.
As the examples are plain C, there should be no need for that (the test directory contains some tests which are implemented in C++, so if tests are enabled, the C++ compiler will still be enabled by CMake).

Build status:

Linux
Windows

Thanks a lot @gavanderhoorn


Create Pages “test-page”

Automatically generated by Netlify CMS

👷 Deploy Preview for upbeat-ritchie-37b80b processing.
🔨 Explore the source changes: af1d37edc8c7679c848c62403074d1064b655638
🔍 Inspect the deploy log: https://app.netlify.com/sites/upbeat-ritchie-37b80b/deploys/61f776a00aae9600088a9e0d


start-remote: No tasks start for 8 GiB home

Current memory requirements:

start-remote.js 2.60GiB
purchase-servers.js 7.15GiB
deploy-hack.js 5.80GiB

As start-remote.js is still running, the most memory that another task can use would be 5.4 GiB. Probably the best option would be to check the result of the ns.run and provide some manual steps for the user to run instead.

#15 addressed this by using ns.tprint() to notify the user that some of the scripts failed to run.


version bump to 0.1.9

Please don't create the v0.1.9. I found a bug as described here: AssertionError: block_width must be between 2 and 16

Please don't create the v0.1.9. I found a bug as described here: AssertionError: block_width must be between 2 and 16

This PR https://github.com/nerfstudio-project/nerfstudio/pull/3019 will shift to 0.1.9


Bug: Links don't follow Link style if text formatting is applied

Lexical version: 0.14.3
Steps To Reproduce
Type any text, add a link, select the text and the link, change the color to 'red'. The link also changes color, rather than keep the 'link' styling defined in the theme object. Reason is, the 'span' inside the anchor tag takes the applied color and overrides the link style CSS.
Expected behaviour
Despite the applied styling, for the link to keep the defined link theme style.

Can be achieved by overriding the CSS class directly. Closing.

Hi @ivailop7, I am facing to this issue. Can you show me how to solve this in detail?

Just add a CSS class matching your link class name:
.yourLinkClassName span {
color:....
}

Just add a CSS class matching your link class name:
.yourLinkClassName span { color:.... }

That's really simple! Thank you @ivailop7


Installation failed - sra toolkit permanently moved

I tried to install bionode-sra and the installation failed when it tried to download sra toolkit (sratoolkit.2.3.5-2-mac64.tar.gz). What it downloads is this html file:

<title>301 Moved Permanently</title>

Moved Permanently

The document has moved here.

For now, i'll manually download the toolkit from the new location and try to continue the installation process from there.

That error means that you (bionode-sra, actually) are trying to download via the old unsecure (http) url. This was fixed via a PR. https://github.com/bionode/bionode-sra/blob/master/sra/Makefile#L31
It could be that you are using an older version of this package or I think @bmpvieira needs to release a newer version?

I installed from npm today, and the version is 1.0.2. The Makefile that was downloaded still uses http.
Thanks for the quick response!

No worries! :-)
I will let @bmpvieira respond.

Sorry for taking so long to reply. The latest changes just needed to be published on npm. It should be working now. FYI, you can also install the latest development version by doing:
git clone git@github.com:bionode/bionode-sra.git
cd bionode-sra
npm link


Improve Date.parse

Improve Date.parse

rewrite Date.parse() with separate parsers for ISO and other formats
return NaN for out of bounds field values as specified
accept up to 9 decimals for millisecond fraction but truncate at 3
accept many more alternative date/time formats
add test cases in tests/test_builtin.js
fix most v8 test cases

@chqrlie is this ready to go?
I'm planning on cutting a 0.4.0 release once this lands.

Yes.  just waiting for Ben's final approval

@chqrlie is this ready to go?
I'm planning on cutting a 0.4.0 release once this lands.

Yes. just waiting for Ben's final approval