chore: vpn fix

:tada: This PR is included in version 2.40.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


python311Packages.oauthenticator: 16.0.7 -> 16.1.0

Changelog: https://github.com/jupyterhub/oauthenticator/blob/16.1.0/docs/source/reference/changelog.md
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 258242 run on x86_64-linux 1

4 packages built:

python310Packages.oauthenticator
python310Packages.oauthenticator.dist
python311Packages.oauthenticator
python311Packages.oauthenticator.dist


Create a design document of the Ospro UI

To Do:

Create a design document of the Ospro UI in Adobe XD
Within the design document, detail the layout of the application as well as the technical specifications of the design elements (component attributes like corner rounding, color, etc.)

Jan. 27, '24,

Demo'd Adobe XD and reviewed alternative design applications. Although, Adobe XD seems to be ideal for now, providing state animations, sizing and attribute parameters that can be translated directly to code.
Reviewed immediate scope and priorities,

Document the current design of the web-application frames within Adobe XD, representing them in their current state within a design document
Investigate how to define variables for colors/dimensions so that multiple elements can be updated with a single change
Publish the design document within v0.1.0

The design document can be viewed at - https://xd.adobe.com/view/4f511d09-1411-4a42-8692-a3616be853f0-1a02/grid


Write up questions and investigations for question marks in design doc

There are currently two big question marks on the logging system design internal wiki diagram. Figure out what can/should be done to answer them.

try and squeeze in for end of 0.3


Right click (block) actions sometimes cause attack stamina to drain rapidly

Sometimes, attacking immediately after pressing right click (block and dodge) the attack stamina bar will drain rapidly.
To replicate this issue, press right click (block) with any melee weapon, and immediately press left click (attack). A large chunk of attack stamina will drain.
This issue happens regardless of whether right click is tapped or held, though I find holding it down to be more consistent. The most important thing is that left click is pressed immediately after right click, with minimal time between.
Normal attacks drain only a small portion of the bar, but using this bug more than half of the bar can disappear with a single attack.

I can confirm the same thing happening, and im able to add that you can time it (by a few milliseconds)  that to lose 99% of the attack stamina. But if you wait a few more milliseconds your attack stamina drains normally.
I tried this while doing a mace with shield combo.
Its acting like a power attack for the attack stamina that takes that stamina but only does a simple attack.
I think this was a bug i had when it first came out and i was going to wait for it to be fixed but forgot all about it, many moons ago.


Update ddtrace to 2.17.3

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe/recipe.yaml) and found some lint.
Here's what I've got...
For recipe/recipe.yaml:

❌ The homepage item is expected in the about section.
❌ Non noarch packages should have python requirement without any version constraints.
❌ Non noarch packages should have python requirement without any version constraints.
❌ This recipe is using a compiler, which now requires adding a build dependence on ${{ stdlib("c") }} as well. Note that this rule applies to each output of the recipe using a compiler. For further details, please see https://github.com/conda-forge/conda-forge.github.io/issues/2102.

For recipe/recipe.yaml:

ℹ No valid build backend found for Python recipe for package ddtrace using pip. Python recipes using pip need to explicitly specify a build backend in the host section. If your recipe has built with only pip in the host section in the past, you likely should add setuptools to the host section of your recipe.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12383253935. Examine the logs at this URL for more detail.

Hi! This is the friendly automated conda-forge-webservice.
I tried to rerender for you, but it looks like there was nothing to do.
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12383271396. Examine the logs at this URL for more detail.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/recipe.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/recipe.yaml:

ℹ No valid build backend found for Python recipe for package ddtrace using pip. Python recipes using pip need to explicitly specify a build backend in the host section. If your recipe has built with only pip in the host section in the past, you likely should add setuptools to the host section of your recipe.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12383364718. Examine the logs at this URL for more detail.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/recipe.yaml) and found it was in an excellent condition.


15.3.0, bundle zeromq on Windows + py35

includes import check on Windows, which would have caught the fact that our win+py35 package doesn't import
import check was already there, so I'm not sure how any previous build on py35 ever succeeded.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

LGTM

Interesting. This failed on Windows Python 3.5 64-bit only. See this log.

Yeah, I saw that and hoped it was temporary, so poked AppVeyor but it happened again. I have no idea what could cause that. It's remarkably uninformative.

I'm also seeing the same fail locally with the vagrant box @msarahan suggested:
https://github.com/ContinuumIO/vagrant-images/pull/1
Also, isn't it a bit odd that the 3.5 builds are not pulling in vs2015_runtime?
By the by, I've found the tests can actually be (mostly) run on windows with:
commands:
    - nosetests zmq.tests  # [not win]
    - start /b /wait %comspec% /c nosetests zmq.tests -I test_win32_shim.py  # [win]

bad to be skipping win specific stuff, but good to be running the 184 tests...

You're absolutely right AFAICT, @bollwyvl. It appears to be the same with Python 3.4 as well. Not the case with Python 2.7 though. In any event, I raised this issue ( https://github.com/conda-forge/python-feedstock/issues/47 ) to see if there is a reason for these being missing. We can figure out how to go from there.

In the mean time, I think that it would be nice removing the broken windows build from the channel since pyzmq is a pretty common dependency.
Regarding the dependency to the MSVC2015 runtime, it should not be needed for versions earlier than 3.5 except if we forced the build with MSVC2015 regardless of the python version.

It works!

I couldn't get the 14.7 build to succeed on 64b Windows + cp35 for reasons I still don't understand, but after bumping to 15.3, all appears to be well.

The only backward-incompatbile change in 15.x is the fact that it will ignore system libzmq < 3 when it's deciding whether to bundle libzmq or use the one it found on the system. It isn't relevant to the conda package.

Thanks for clarifying. LGTM

Everyone else happy with this change?

Thanks all.


⚠ Spryr has degraded performance

In 1a2a312, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 5301 ms

Resolved: Spryr performance has improved in 6860090 after 16 minutes.


Custom files cause crash 10.0.*

Any replace file in the files folder cause the client to crash when trying to load into the world.

Any replace file in the files folder cause the client to crash when trying to load into the world.

Did you try the latest source? I added some fixes a while ago but didn't update the releases yet.
Would like to know if it works self compiled.

I am using the latest version, which I built myself. Although the exact same problem was also in the old release.

I am using the latest version, which I built myself. Although the exact same problem was also in the old release.

I had someone on my discord having the same issue and saying exactly the same. When I said try again it suddenly worked 😂
So I assumed that person didn't really use the latest source or so.
Can you upload the generated crash log (txt) and the launcher exe/dll you used?

2023-03-24 17.19.39 Crash - 7592.txt
Arctium WoW Launcher.zip

It looks like when I tried to compile the project into one EXE, it was going wrong. With a normal build of a project with a bunch of files, the client works

2023-03-24 17.19.39 Crash - 7592.txt Arctium WoW Launcher.zip

Why does sapi.dll has such a weird base address for you? that should not happen at all. Did you manually inject it or what 😂

files.zip
You can try the file I use.

Looks like it's my addon's bug, I just tried disabling all addons and it worked.

And so the changes will be in the code? :D

Getting crashes as well with certain enabled addons.
Narcissus & UnlimitedChatMessage for me

Did u try running as admin and reinstalling addons?

Did u try running as admin and reinstalling addons?

it does not help, plus reinstalling the addons does not change anything, as some addons have not been updated for a long time, but still work.

Just experienced this issue with the BugSack+BugGrabber addon combo.
It only happens with the "Mods" versions of the launcher, and seems to be caused specifically by the lines reading local addon files. In BugGrabber's case:
BugSack.toc:18
  ## IconTexture: Interface\AddOns\BugSack\Media\icon

core.lua:37
  media:Register("sound", "BugSack: Fatality", "Interface\\AddOns\\"..addonName.."\\Media\\error.ogg")

ldb.lua:11
  icon = "Interface\\AddOns\\"..addonName.."\\Media\\icon"

ldb.lua:36
  plugin.icon = count == 0 and "Interface\\AddOns\\"..addonName.."\\Media\\icon" or "Interface\\AddOns\\"..addonName.."\\Media\\icon_red"

I'm guessing the launcher interferes somehow with the client loading these local assets into its memory storage, or perhaps with the fdid assignment?..

I will fix it later but I have other stuff to do. It's caused by the file path based loading function that gets patched ny the launcher


Fails to build on Linux 4.11

A number of people have reported failure to build on the latest kernel, 4.11, including myself.  Here is an excerpt of the make.log file, which was posted on https://aur.archlinux.org/packages/evdi/:
https://nopaste.me/view/8b28f257

Building with kernel 4.11 was fixed in 9fe1736.
Cheers


Support typescript

Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Current code is written in javascript, however, adding support for typescript will help in gradual migration.
Describe alternatives you've considered

Hi, I can help to migrate to typescript. can you let me start this job?

finished

Is this issue resolved?

Resolved


Fix pagination

Hi I found a solution to this issue https://github.com/ErickTamayo/laravel-scout-elastic/issues/149
Checked on Laravel 8

Hello, thanks for the PR, can you make sure that the tests pass?


Yacht Filters - Front End

UI and styling of the filters.

Perhaps use select boxes as here: http://www.sothebysrealty.com/eng/sales/int/1000-2000000000-price

Hide hero image once we've searched.

Responsive View
Perhaps don't link to the search page directly - just have it so that the search link brings up a search screen / modal, like on Airbnb. Then go to the search results page.


Improve migrations compatibility workflow

The migrations compatibility workflow didn't help with the problem that happened before the 3.18 release, where it was not possible to migrate from 3.17 to 3.18. We need to look how to improve it.
Thread from the internal backend channel with more context: https://saleorcommerce.slack.com/archives/C04NWC09NE8/p1700135881396529

The main problem here is the migration tests that are checking the compatibility with main branch. It could not detect the changes, or provide a false positive result.
The proper approach would be checking the migration across feature-branch vs PR with zero downtime to the previous version.
I am not super familiar with GH workflow, but this is the at least PoC how we could handle it:
https://github.com/korycins/saleor/pull/1/files
So, the assumption here is: that we have a branch-with-feature, and we create the branch with migrations to the previous version in the declared format. For example: branch-with-feature-migration.
Then when adding the label to PR, the CI should do the same things as it currently doing (but on proper branches)


[19236] Fix bitmask code generation

This PR supersedes #205

Manual CI action

bitmask members should be initialized to 0. Right now, when a user creates an structure with a bitmask member, this one contains garbage.

You have just asked for an IDL-Parser v1.7.2 release! :rofl: The initial value was removed in:

eProsima/IDL-Parser#79

Manual CI action


Bizarre behavior: styles not generated, then they are, then they aren't

I'm experiencing some very bizarre behavior: styled-component classes, i.e. .fxNsrI etc., are not created for ANY components. However, if I manually add a style prop to any of the affect components, all the styles come back. Wat!? I don't know how to reproduce this yet, and I'm not clear how I got into this state. Here's what I know:

I'm using react-boilerplate, so all my webpack/babel config is straight out of that, no modifications. Everything was working as expected until the other day.
The code I was working on when this started didn't have anything to do with styling. The first time it occurred was after a minor redux reducer bug. I can't imagine how that could possibly have anything to do with styled-components though.
Traditional styles work normally (css files, inline etc)
Restarting server makes no difference
This was happening with v4 but I upgraded to v5 just to test, no difference
A fresh git clone makes no difference
Reverting to a known good commit makes no difference (!!)
Cache cleared, hard reload, delete service workers, etc. etc. all to no avail
A regular build (i.e. npm run build) works correctly.

Given those data points, this seems like some kind of configuration issue but I have no idea where to look next. Any ideas? Is there any more information I can dig up, or things I can test?
Environment
System:

OS: macOS Mojave 10.14
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 784.21 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash

Binaries:

Node: 11.14.0 - /usr/local/bin/node
npm: 6.9.0 - /usr/local/bin/npm

npmPackages:

babel-plugin-styled-components: 1.10.0 => 1.10.0
styled-components: ^5.0.0-rc.2 => 5.0.0-rc.2

Expected Behavior
styled-component custom class generated as expected

Actual Behavior
no custom class at all (for ANY components anywhere in the entire project)

Here's a video of this in action. The video starts in the 'broken' state. I add a style prop, and after rebuilding and rerendering, ALL styles are suddenly back!?
https://youtu.be/uP0H_6IkLeg

I am also experiencing this. Using version 4.3.2.

Wow, it's not just me! That's comforting, in a sense. I am still experiencing this issue but it doesn't block production. It seems that when I hard reload, styles do not render. If I change seemingly any renderable content, styles come back with the auto refresh (using React Boilerplate). Like all I have to do is add style={{}} to some component and styles come back. After that, I'm fine until the next hard reload...

Like your situation @t3db0t, this does not affect production on our app, just local development.

I am having a similar issue.
I am using it in a new react app built with create-react-app.

I'm also having this issue. Everything works in prod, in local development styles are not generated.
Using React Boilerplate,  styled-components 4.2.0

My guess is they changed something in babel-plugin-macros which is having downstream effects

Any updates on this?

@BipinBhandari We were able to solve it by upgrading to the latest version (5.0.0-rc.2 at the time; haven't yet tested with rc.3) and upgrading React to 16.12.0. Not really a solution but it got us out of the woods.

Really need a reproduction case (ideally in a codesandbox) to be able to help

@probablyup Yeah, part of the frustration is that I have zero idea how it started or how to cause it to happen. In my case, I had a redux bug crop up and then all of a sudden styles were gone. I hadn't changed any dependencies, done any upgrades, anything. I can't possibly imagine the connection :(
Does anyone else have any idea what caused or at leased preceded the appearance of the problem?

Same situation for me. Version rc.2 didin resolve

I'm seeing the same thing after updating. I had to revert to an older version.

@d640k You are a god among men and I am forever in your debt.
To everyone else, I did not try 5.0.0-rc.2 but ^5.0.0-rc.3 did the trick for me. I already had "react": "^16.12.0".
@probablyup I put together a repro repo. I tried to do so in codesandbox but I think it may not be compatible with Next.js or I'm just not familiar enough with it to get it working. But I did create a test-case repo over on gitlab for you to check out. Apologies for any extra junk not pertaining to the bug.
https://gitlab.com/morgancmartin/styled-components-bug-reproduction
Feel free to ping me with any questions about my env/setup.
And thanks for the great lib!

Having a very similar issue, on both v4.x and v5. Updating from 16.9 to 16.12 to React has not fixed anything for me. I've narrowed it down to production builds, and further noticed that on production builds, the <style /> element that SC creates is in fact completely empty:

…which is very odd because my components look styled but how are any of my components being styled?

I've further noticed that given the right random interaction with my app (specifically on iOS Safari), the app seems to lose any knowledge it had of these styles (even though they don't exist??) and multiple components lose their styling.
I wish I could provide more concrete information or a consist repro. This is too weird to believe. Will be overjoyed with any further insight!

I need to add a FAQ page for this. The style element appears to be empty but that’s just because we use a set of special, faster DOM APIs to inject the styles called CSSOM.
The browser dev tools haven’t supported showing these styles in a useful way yet for some reason. You can see them by grabbing the DOM element and using $0.sheet.cssRules though
Sent from my iPhone

On Jan 14, 2020, at 1:15 PM, Cole<EMAIL_ADDRESS>wrote:

Having a very similar issue, on both v4.x and v5. Updating from 16.9 to 16.12 to React has not fixed anything for me. I've narrowed it down to production builds, and further noticed that on production builds, the  element that SC creates is in fact completely empty:
…which is very odd because my components look styled but how are any of my components being styled?
I've further noticed that given the right random interaction with my app (specifically on iOS Safari), the app seems to lose any knowledge it had of these styles (even though they don't exist??) and multiple components lose their styling.
I wish I could provide more concrete information or a consist repro. This is too weird to believe. Will be overjoyed with any further insight!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

So I've just resolved this by removing a style import from my site's global style.
ie I removed the @import from this global style:
import modernNormalize from "styled-modern-normalize";
import { createGlobalStyle } from "styled-components";

export const GlobalStyle = createGlobalStyle`
  @import url('https://fonts.googleapis.com/css?family=Roboto:400,500,600');
  ${modernNormalize}

  html, body {
    font-family: Roboto, sans-serif;
    font-size: 10px;
    line-height: 1.5;
  }

  * {
    box-sizing: border-box;
  }
`;

Before the fix only the body showed any style, the text, input elements, etc were completely unstyled. I could see rules in the style tag in head with .sheet.cssRules but they were all from this global style, none had the hash-style styled-components class names.
After removing the import the style returned to my page elements and all the rules had sc hashed class names.
This all worked in dev & prod until I upgraded to SCv5 when this issue appeared in prod builds.
Hope that helps, but if you need a repo I can provide it once I clean up my mess here and push a commit (it's way too late to do that now).

So I've just resolved this by removing a style import from my site's global style.
ie I removed the @import from this global style:
import modernNormalize from "styled-modern-normalize";
import { createGlobalStyle } from "styled-components";

export const GlobalStyle = createGlobalStyle`
  @import url('https://fonts.googleapis.com/css?family=Roboto:400,500,600');
  ${modernNormalize}

  html, body {
    font-family: Roboto, sans-serif;
    font-size: 10px;
    line-height: 1.5;
  }

  * {
    box-sizing: border-box;
  }
`;

Before the fix only the body showed any style, the text, input elements, etc were completely unstyled. I could see rules in the style tag in head with .sheet.cssRules but they were all from this global style, none had the hash-style styled-components class names.
After removing the import the style returned to my page elements and all the rules had sc hashed class names.
This all worked in dev & prod until I upgraded to SCv5 when this issue appeared in prod builds.
Hope that helps, but if you need a repo I can provide it once I clean up my mess here and push a commit (it's way too late to do that now).

So I've just resolved this by removing a style import from my site's global style.
ie I removed the @import from this global style:
import modernNormalize from "styled-modern-normalize";
import { createGlobalStyle } from "styled-components";

export const GlobalStyle = createGlobalStyle`
  @import url('https://fonts.googleapis.com/css?family=Roboto:400,500,600');
  ${modernNormalize}

  html, body {
    font-family: Roboto, sans-serif;
    font-size: 10px;
    line-height: 1.5;
  }

  * {
    box-sizing: border-box;
  }
`;

Before the fix only the body showed any style, the text, input elements, etc were completely unstyled. I could see rules in the style tag in head with .sheet.cssRules but they were all from this global style, none had the hash-style styled-components class names.
After removing the import the style returned to my page elements and all the rules had sc hashed class names.
This all worked in dev & prod until I upgraded to SCv5 when this issue appeared in prod builds.
Hope that helps, but if you need a repo I can provide it once I clean up my mess here and push a commit (it's way too late to do that now).

Wow this is just really bizarre. I was having the same issue, started debugging like 2 hours ago and now I ran on this comment that actually solved my issue.

Have the same issue, seems removing @import from globalStyles is the way to go.

Same.... if u are using globalStyles and have @import i, it doesnt inject the styles in production.

Thank you, removing @imports fixes it. However, I'd like to know what a good alternative to set font-family at the global level is.

Thank you, removing @imports fixes it. However, I'd like to know what a good alternative to set font-family at the global level is.

import './styles/global.css';

i am having same issue today, using 5.2.0, not using globalStyle.

Same problem, and I am using styled components 5.2.1 and not using globalStyle.
Working fine for NextJS 10.x app in production.
However, I am also creating browser extension with the same codebase where I do not have full control over the HTML document. So it makes it difficult to inject font without using @import.

Same problem, and I am using styled components 5.2.1 and not using globalStyle.
Working fine for NextJS 10.x app in production.
However, I am also creating browser extension with the same codebase where I do not have full control over the HTML document. So it makes it difficult to inject font without using @import.

Me too. What I have seen is that for the problematic styles I only have something like this in the sourcecode:
data-styled.g186[id="sc-ehsPrw"]{content:"conNwD,"}/!sc/
I have no @import in the globalStyles.
Also REACT_APP_SC_DISABLE_SPEEDY=true in.env makes no difference, or I don't know where to put it. (Windows/NextJs/Docker)

Seems that "data-styled." is now in the sourcecode for every class. But my behaviour is very strange. Sometimes the styles are in the sourcecode sometimes not. Sometimes it looks like the styles get lost after the hydration.

It seems that I fixed it. I had to downgrade the "babel-plugin-styled-components" to 1.10.2 and in my babel config I had to add it with "styled-components" and not "babel-plugin-styled-components".

Same problem I think (I'm new to React), and I was unable to fix.  I did not have success uninstalling styled-components, but was able to get style-components version 4.2.0 working.
npm i<EMAIL_ADDRESS>

Same problem here.
Not using globalStyle.
Downgrading to 4.2.0 does nothing.
Just suddenly started to appear. Prod builds work fine...

Closing due to age of issue, lack of addressability, or lack of reproduction.


Custom output

The custom output command is added.
The reservoir command is modified to simulate the Lake in HBV-EC model.
The LakeStorage is modified from Slow_Reservoir to use Lake_Storage compartment to have consistency with HBV-EC model.
The :WriteForcingFunctions is added to .rvi.
The soil profiles are modified for the SLSO region.
The .rvc file is modified to create an empty file, due to issues related to the Raven Warnings.

The custom output command is added.
The reservoir command is modified to simulate the Lake in HBV-EC model.
The LakeStorage is modified from Slow_Reservoir to use Lake_Storage compartment to have consistency with HBV-EC model.
The :WriteForcingFunctions is added to .rvi.
The soil profiles are modified for the SLSO region.
The .rvc file is modified to create an empty file, due to issues related to the Raven Warnings.

@Idajab There are two version of hbvecmod in this pr. Which one do you use?

@Idajab There are two version of hbvecmod in this pr. Which one do you use?

I use the hbvecmod in RavenPy-aida-famine/ravenpy/models/emulators/.

Integrated in the wider refactoring.


MetaGPT ollama configuration new parameter request

Some of the new llama3 models have extended rope max token size limits that have to be sent with the original http request to adjust.

would it be possible to add to the configfile a new parameter to set the max token to a integer value?
for example something like this:
llm:
  api_type: "ollama"  # or azure / ollama / open_llm etc. Check LLMType for more options
  model: "dolphin-llama3:8b-256k-v2.9-q4_0"  # or gpt-3.5-turbo-1106 / gpt-4-1106-preview
  base_url: "http://snabox:11434/api"  # or forward url / other llm url
  num_token: 64000 # <--- new setting that gets sent with the HTTP request so ollama knows the max token size possible

@better629 Could you take a look at this?

@snapo


Cause: no such class: com.example.hiltexample2.MainControllerHiltInterface

Here is the project where you can see this exception https://github.com/TikTak123/Hilt-Playground

Can you say please, when you can fixed it?

Have you tried the 0.4.3 version?

tried, same

I have seen the repository you linked here, but isn't it my example app ? i will try next days to take a look

Yes, this is your example code. I first tried it on my project and after it didn't work. I thought maybe I'm doing something wrong and then I decided to run it on a small project and result was same.

Sorry, it was my fault: i removed the "injection" from the MainController and, without it, the HiltInterface is not created
So, add the field to be injected as this one
@ConductorEntryPoint
class MainController(args: Bundle?) : Controller(args) {

    @Inject
    @Named("first")
    lateinit var text: String

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedViewState: Bundle?): View {
        return inflater.inflate(R.layout.controller_main, container, false)
    }
}

thanks, everything works great.


MAINT: update notebooks

Update notebooks to account for package refactoring.

from conjugate_map.conjCalcFunctions import * seems to work in my local copy. Is that syntax correct?


[3373] lead school page

Context
https://trello.com/c/W41YJZPI/3373-s-lead-school-page
Depends on:
https://github.com/DFE-Digital/register-trainee-teachers/pull/1848
Changes proposed in this pull request

Show page added for lead school

Guidance to review

Login as admin, go to system admin, click on "Lead school" and click into a lead school.

Important business

Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?
Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?

 [S] Lead school page


Serializing DateTime objects?

How do I serialize a DateTime property? When I do so from a Doctrine entity, I get the following:
Notice: Undefined index: DateTime (500 Internal Server Error)

Actually this is a bug. I just wrote the fix for it at: https://github.com/nilportugues/jsonapi-transformer/commit/16cc089912153af22450344953357067d995a1b2
Let me create a release for this fix and I'll close the issue.

OK release is ready!
make sure to use composer require nilportugues/json-api:1.0.23
Thanks for reporting :+1: !

:+1: Thanks, I'll look into testing it tomorrow.

FYI, the name of the attribute stays camelCased instead of dasherized.
Example from actual output:
"modifiedAt": {
          "date": "2011-09-07 00:00:00.000000",
          "timezone_type": 3,
          "timezone": "GMT"
        },
        "created_by_user": 0,
        "modified_by_user": 0

hmm this needs fixing and it's easy to fix. Let me do it!

@drewclauson fix included in nilportugues/json-api:1.0.25
Thanks again for spotting this tiny things! :)


Color manipulator documentation and improvements

Hello,
I was wondering if the color manipulator shipped in with material-ui fits my needs, but I didn't find any documentation about it.
So inspecting the object, I see that we currently have just light and fade manipulation.
For a reasonable color manipulation library, we would need at least two more functionalities, spinning (hue) and saturation.
Also, with those improvements (and even without), the API could be documented on the website.
By now, I am adding https://github.com/bgrins/TinyColor to my project for the spinning functionality.
I don't know if it worth for this project to extend the library, but I am reporting my experience with this issue!
Thanks!

@TCMiranda colorManipulator is really intended for internal use by Material-UI components, and does what we need. You're right to use something intended for general use like TinyColor.


Unable to play rendering on iphone13 google chrome in exported html with 3rd SH cofficients in version v1.11.2

Hi, I've tried your newest compressing scheme, which was awesome. I can render the exported html on my desktop very well. But had trouble when rendering on my iphone 13 with google chrome. The webpage was stuck here:

I was using your latest v1.11.2 editor.

Hi @LaFeuilleMorte,
How big is your html file? Safari places limits on maximum size it will allow. If you can send us the file we can check this is the case.
If that is the issue we will release an update today which gives you the option of downloading a .zip file with external compressed.ply file. You must serve these files for it to work, but it doesn't have the same memory issue.
Thanks!

(And just to clarify, you said chrome on iOS, but chrome is just a skin over Safari on all iOS devices).

Hi @LaFeuilleMorte,
How big is your html file? Safari places limits on maximum size it will allow. If you can send us the file we can check this is the case.
If that is the issue we will release an update today which gives you the option of downloading a .zip file with external compressed.ply file. You must serve these files for it to work, but it doesn't have the same memory issue.
Thanks!

It's about 250 MB. That makes sense. In the previous versions. I exported html with no SH data. So the size would be only 65MB. But now it has SH data so it's much bigger and could possible cause this issue. I'll try smaller html with the same order of SH data to see if your conclusion is right.

Hi @LaFeuilleMorte,
How big is your html file? Safari places limits on maximum size it will allow. If you can send us the file we can check this is the case.
If that is the issue we will release an update today which gives you the option of downloading a .zip file with external compressed.ply file. You must serve these files for it to work, but it doesn't have the same memory issue.
Thanks!

It's about 250 MB. That makes sense. In the previous versions. I exported html with no SH data. So the size would be only 65MB. But now it has SH data so it's much bigger and could possible cause this issue. I'll try smaller html with the same order of SH data to see if your conclusion is right.

Emm..., After some tests, I think this problem was caused by the size of the exported html. I got it worked at a much smaller size (50 MB).

BTW we've released an update to SuperSplat (v1.11.3) which supports .zip export of the html viewer.
The zip contains the HTML file and a separate compressed.ply model.
This version won't have the HTML size restriction, but it will require you run a server to access the files.


[Feature/Plugin Request] JavaDocs integration

As the title says, the possibility to add javadocs documentations from only a URL/Search term. Som you would time something like:
jdocs Spigot - and it would bring out every docs find to the term Spigot
jdosc https://hub.spigotmc.org/javadocs/spigot/ - It would find, download, and save the docs
jdocs spigot getInventory() - It would bring out all finds, and you could select, and in a short view, there would be come sort text to the find, and on clicking a button it would open the webpage for it

There's already pretty great offline doc viewers for every major platform, it's probably be saner to integrate with them as opposed to re-inventing the wheel here....

Looks like you can integrate docs only for third-party java libraries, since core javadocs are restricted to distribute:

This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means.

Very good!
you can add the idea in this issue, at the moment we will try to solve some problems, but then we will create some plugins


Remove slash after imageBaseUrl

imageBaseUrl already contains a trailing slash.
Now all the template assets URLs look like this https://google.github.io/web-stories-wp/plugin-assets//images/templates/beauty/beauty_page1_bg.png

@swissspidy this breaks all the template images on my local. I'm guessing that there's some discrepancy between trailing slashes on local vs prod for the base url.
Maybe we should just make a util that adds a trailing slash if there isn't one for imageBaseUrl.
What are your thoughts?

Ugh, I just double checked. Indeed on local there's no slash, but the CDN URL does have one.
Your suggestion makes sense. I'll add this.

@littlemilkstudio can you check again now?

@littlemilkstudio can you check again now?
Yup. pulling latest


Fix muscle innervation test in the README doc tests

This test was taken out of the readme to get a build to work, but needs to be put back in

See what neurons innervate a muscle::
>>> mdr21 = P.Muscle('MDR21')
>>> innervates_mdr21 = mdr21.innervatedBy()
>>> len(innervates_mdr21)
4

To do this as written, requires to

add muscle.neurons (aliased to innervatedBy) relationships in addition to the existing Connections with muscle termination, or
write a property that does the query on Connections. This is essentially Neighbor in PyOpenWorm.neuron. Could even move neighbor up into cell.


Popper is broken

What package has an issue
@svelteuidev/core
A clear and concise description of what the bug is
Uncaught (in promise) TypeError: X.arrow is undefined error from Popper.svelte
In which browser(s) did the problem occur?
Firefox
Steps To Reproduce

Copy code from https://github.com/svelteuidev/svelteui/blob/main/packages/svelteui-demos/src/lib/demos/core/AppShell/_HeadContent.svelte#L31-L37=
Remove the use={[[hotkey, ... prop
Hover over the theme switcher

Do you know how to fix the issue
No
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Relevant Assets
Error in development mode:

Error when built and optimized:

Issue fixed in PR (#118)


build problem

Hello Alexandros,
I try to use your dockerimage "docker-postgres-bdr". If I start to build with "docker build .", i Run into this error message:
[...]
Setting up libcurl3:amd64 (7.38.0-4+deb8u3) ...
Setting up krb5-locales (1.12.1+dfsg-19+deb8u2) ...
Setting up openssl (1.0.1k-3+deb8u2) ...
Setting up ca-certificates (20141019+deb8u1) ...
Setting up curl (7.38.0-4+deb8u3) ...
Setting up libsasl2-modules:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u3) ...
Processing triggers for ca-certificates (20141019+deb8u1) ...
Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   583    0   583    0     0   1433      0 --:--:-- --:--:-- --:--:--  1435
100 2091k  100 2091k    0     0   848k      0  0:00:02  0:00:02 --:--:-- 1137k
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   591    0   591    0     0   1402      0 --:--:-- --:--:-- --:--:--  1400
100   543  100   543    0     0    497      0  0:00:01  0:00:01 --:--:--   497
gpg: directory /root/.gnupg' created gpg: new configuration file /root/.gnupg/gpg.conf' created
gpg: WARNING: options in /root/.gnupg/gpg.conf' are not yet active during this run gpg: keyring /root/.gnupg/pubring.gpg' created
gpg: assuming signed data in `/usr/local/bin/gosu'
gpg: Signature made Wed Nov 19 07:57:11 2014 UTC using RSA key ID BF357DD4
gpg: Can't check signature: public key not found
INFO[0020] The command [/bin/sh -c apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*   && curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)"   && curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc"   && gpg --verify /usr/local/bin/gosu.asc   && rm /usr/local/bin/gosu.asc   && chmod +x /usr/local/bin/gosu   && apt-get purge -y --auto-remove curl] returned a non-zero code: 2
Hope you can help or have an idea in context of this problem...
Thanks and best regards,
Patrick

Hi @volands
I cannot see your whole run, but I suspect something went wrong in Step 4, which should have downloaded the key reported missing in your message in Step 5...
Another thing that would need changing is to update to the latest BDR release, just commited it, so try pulling the latest version too.

Thank you for your reply! I think the problem was on my side - after a new pull and build I now can run your image. In actual fact this issue can be closed.
Perhabs I can use this occasion to ask a second question: I now try to use SSL for the Postgres/BDR port (to encrypt the transfer/connection). On the basis of this script:
https://github.com/aptible/docker-postgresql/blob/master/bin/run-database.sh
I have added the certificate generation and the change of pg_hba.conf and postgresql.conf (overall only three little changes). On run (also after a complete new build) I stuck on this message - which is not yet completely clear to me.
$ docker run -e POSTGRES_PASSWORD=lassmichrein aa164d89deb0
Generating a 2048 bit RSA private key
...................+++
.....+++
writing new private key to 'server.key'
postgres cannot access the server configuration file "/var/lib/postgresql/data/postgresql.conf": No such file or directory
Here is my actual version - I try to continue to solve the problem:
https://github.com/volands/docker-postgres-bdr/blob/master/docker-entrypoint.sh
Maybe you have an idea or have already carried out this procedure in the past...

Hi @agios
I could now create a first SSL-configuration example - it is very q&d, but perhabs you can use this for your branch:
https://github.com/volands/docker-postgres-bdr/
Thanks and best regards!


Serialize object keys

@ranikay just a FYI, had to make these changes to load the fixtures properly


What is the meaning of parent_message_id?

Hi,  given the current message, parent_message_id is the id of the last message. The reason why we kept this is because the message history is a tree structure rather than linear.


[WIP] Support for required fasm features

This is a draft PR for adding support of required fasm features that has to be set for a given part.
The idea is to add a JSON file describing them to the prjxray db root directory. The Database class of the prjxray API would provide the method get_required_fasm_features(part) which would return a set of fasm lines that need to be always appended to a fasm file for the given part.
The structure of the JSON file might look like this:
{
  "all": [
    "FEATURE_A",
    "FEATURE_B",
    "FEATURE_C"
  ],
  "xc7zXXXX": [
    "-FEATURE_A",
    "FEATURE_D"
  ],
  "xc7zYYYY": [
    "-FEATURE_B",
    "-FEATURE_C",
    "FEATURE_E"
  ],
}

The root element is a dict indexed by part names. Under each part name there is a list of fasm lines that need to be appended. The one special list all contains features common to all parts. Then, for each part there is a list of additional features to be appended (along with the all ones). If a feature name starts with the - sign then this one should be removed from the all set for that part.

@litghost I have some questions:

How do we include a hand-written JSON file into the prjxray db?
Is it assumed that the database "root" folder contains data for a single part only?

I suggest we just have FASM files that can be merged?

structure of the JSON

Rather that have a special key in the parts dict, make a root dictionary, with a key parts and a key always_required.

* How do we include a hand-written JSON file into the prjxray db?

Make a fuzzer that writes a JSON to the database folder, leave the JSON empty for parts that don't require anything?

* Is it assumed that the database "root" folder contains data for a single part only?

What do you mean by root?  database/artix7?  Or database?

@litghost

What do you mean by root? database/artix7? Or database?

I mean database/artix7, database/zynq7 etc. Could you write an example skeleton structure of the JSON that you are proposing?

Could you write an example skeleton structure of the JSON that you are proposing?

Rather than:
{
  "all": [
    "FEATURE_A",
    "FEATURE_B",
    "FEATURE_C"
  ],
  "xc7zXXXX": [
    "-FEATURE_A",
    "FEATURE_D"
  ],
  "xc7zYYYY": [
    "-FEATURE_B",
    "-FEATURE_C",
    "FEATURE_E"
  ],
}

do:
{
  "always_required": [
    "FEATURE_A",
    "FEATURE_B",
    "FEATURE_C"
  ],
  "per_part_required": {
    "xc7zXXXX": [
      "-FEATURE_A",
      "FEATURE_D"
    ],
    "xc7zYYYY": [
      "-FEATURE_B",
      "-FEATURE_C",
      "FEATURE_E"
    ]
  }
}

Is it assumed that the database "root" folder contains data for a single part only?

No.  In fact something we want to do soon is start to emit tilegrid/tileconn for multiple parts in the same family.

I changed the approach a little bit. Instead of a JSON file for all parts there is one file per part named {PART_NAME}_required_features.fasm.
I also added the --part parameter to fasm2frames which value defaults to XRAY_PART. I'm not sure though whether any common required features should be emitted when the --part is not given.

Looks like Vivado crash on 045 for Kintex7:
...
pure virtual method called
terminate called without an active exception
make[3]: *** [vivado.ok] Error 134
make[2]: *** [build/7/specimen_015/OK] Error 2
make[2]: *** Waiting for unfinished jobs....
Parent process (pid 62143) has died. This helper process will now exit
make[1]: *** [run] Error 2


[JENKINS-28264] Git SCM "Recursively update submodules" additional beh

JENKINS-28264

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests


feat: windows commands for copy

:tada: This PR is included in version 1.6.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Unable to resolve snapshots from artifactory (nexus works fine)

What works

final versions from nexus and artifactory
snapshots from nexus

What doesn't work

snapshots from artifactory

Context
Artifactory stores snapshots differently than nexus, but the maven-metadata.xml is equivalent.
This works just fine in sbt-coursier and others, so I wonder what I'm doing wrong.
Sample code to reproduce
project setup:
echo 'libraryDependencies ++= Seq("io.get-coursier" %% "coursier" % "1.0.1", \
"io.get-coursier" %% "coursier-cache" % "1.0.1")' > build.sbt
mkdir project
echo 'sbt.version=1.1.0' > project/build.properties

sbt console
import coursier._
import java.io.File
import scalaz.\/
import scalaz.concurrent.Task

def testResolve(module: Module, version: String, repo: MavenRepository)
  : Seq[FileError \/ File] = {
  val dependency = Dependency(module, version, transitive = false)
  val start = Resolution(Set(dependency))
  val logger = new TermDisplay(new java.io.OutputStreamWriter(System.err))
  logger.init
  val fetch = Fetch.from(Seq(repo), Cache.fetch(logger = Some(logger)))
  val resolution = start.process.run(fetch).unsafePerformSync
  resolution.metadataErrors.foreach { err => println(s"error: $err")} // no errors

  Task.gatherUnordered(
    resolution.artifacts.map(Cache.file(_).run)
  ).unsafePerformSync
}

//works
testResolve(Module("com.michaelpollmeier", "colordiff_2.12"),
            "0.3-SNAPSHOT",
            MavenRepository("https://oss.sonatype.org/content/repositories/snapshots"))

// empty list :(
testResolve(Module("co.freeside.betamax", "betamax-core"),
            "2.0-SNAPSHOT",
            MavenRepository("https://oss.jfrog.org/oss-snapshot-local"))

I picked two arbitrary artifacts, colordiff_2.12 is served by nexus, betamax-core is served by artifactory.
For reference: here's their respective urls in the repos:

https://oss.sonatype.org/content/repositories/snapshots/com/michaelpollmeier/colordiff_2.12/0.3-SNAPSHOT/
https://oss.jfrog.org/artifactory/oss-snapshot-local/co/freeside/betamax/betamax-core/2.0-SNAPSHOT/

Any pointers greatly appreciated!

In case anyone else has the same problem: I ended up using coursier-cli as a workaround. The below works fine:
import coursier.cli.Helper
import coursier.cli.options.CommonOptions

val helper = new Helper(
  CommonOptions(repository = List("https://oss.jfrog.org/oss-snapshot-local")),
  List("co.freeside.betamax:betamax-core:2.0-SNAPSHOT"))

val files0 = helper.fetch(sources = false, javadoc = false, artifactTypes = Set("jar"))

@mpollmeier Sorry this issue slipped my attention. The problem here originates from the "optional" artifacts. This is the same kind of issue as https://github.com/lihaoyi/Ammonite/pull/713, which shows how to address that. (The optional artifacts API isn't too visible for now, as it was added while retaining binary compatibility, hopefully that can be changed in the future…)

That works, thank you!
For completeness, here's the complete snippet again, this time everything works. It might make sense to leave a note about this problem in the readme, maybe with a link to this ticket. I'm happy to create a PR for that, just let me know.
import coursier._
import java.io.File
import scalaz.\/
import scalaz.concurrent.Task

def testResolve(module: Module, version: String, repo: MavenRepository)
  : Seq[FileError \/ File] = {
  val dependency = Dependency(module, version, transitive = false)
  val start = Resolution(Set(dependency))
  val logger = new TermDisplay(new java.io.OutputStreamWriter(System.err))
  logger.init
  val fetch = Fetch.from(Seq(repo), Cache.fetch(logger = Some(logger)))
  val resolution = start.process.run(fetch).unsafePerformSync
  resolution.metadataErrors.foreach { err => println(s"error: $err")} // no errors

  Task.gatherUnordered(
    resolution.artifacts(withOptional = true).map(Cache.file(_).run)
  ).unsafePerformSync
}

//works
testResolve(Module("com.michaelpollmeier", "colordiff_2.12"),
            "0.3-SNAPSHOT",
            MavenRepository("https://oss.sonatype.org/content/repositories/snapshots"))

// works as well now :)
testResolve(Module("co.freeside.betamax", "betamax-core"),
            "2.0-SNAPSHOT",
            MavenRepository("https://oss.jfrog.org/oss-snapshot-local"))


[RFR] Add link aor-feathers-client in doc

Signed-off-by: José Luis Di Biase<EMAIL_ADDRESS>

Thanks! :)


[ALLUXIO-2815] Update AlluxioTException and preserve FS API

Moved from https://github.com/Alluxio/alluxio/pull/5172
https://alluxio.atlassian.net/browse/ALLUXIO-2815
Staged atop #5169
The commits after "Remove usages of ThriftIOException" can be reviewed individually
This PR updates AlluxioTException to use a grpc-style status code and updates FileSystem to preserve compatibility. Tests are added for all exceptions thrown by FileSystem.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14566/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14572/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14619/
Test PASSed.

Merged build finished. Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14622/
Test PASSed.


Feature Request: Add Blog/Success Stories Section

Hey @GarimaSingh0109
Feature Request: Add Blog/Success Stories Section
Description:
I propose adding a new section "Blogs" (in navbar) to the website dedicated to blogs or success stories related to waste management. This section will feature articles, stories, and updates that can engage users and provide valuable insights into effective waste management practices.
Proposed Features:

Blog Section:

Regular blog posts on topics such as recycling tips, waste reduction strategies, and environmental impact.
Categories for different types of content (e.g., tutorials, news, community initiatives).
Author profiles and publication dates.

Success Stories Section:

Highlight success stories from individuals, communities, or organizations that have made significant strides in waste management.
Include testimonials, case studies, and detailed narratives.
Feature images and videos to make the stories more engaging.

Benefits:

Increased user engagement through regular content updates.
Provides a platform for users to share their experiences and achievements in waste management.

Please assign this issue to me under gssoc'24 extended with label gssoc'24 and hacktoberfest along with level. Thanks!!

you can assign that task to me under gssoc-ext and hacktoberfest label..


Use golang 1.18

Description
Update golang to v1.18 in the root Dockerfile
Related Issue

Fixes #4370

How Has This Been Tested?

manually

Screenshots (if appropriate):
docker build -t ocis .
 COPY ./ /ocis/
 WORKDIR /ocis/ocis
 RUN make ci-node-generate

-FROM owncloudci/golang:1.17 as build
+FROM owncloudci/golang:1.18 as build

 COPY --from=generate /ocis /ocis

 WORKDIR /ocis/ocis
 RUN make ci-go-generate build

-FROM alpine:3.13
+FROM alpine:3.15

 RUN apk update && \
        apk upgrade && \
...skipping...
[+] Building 431.1s (18/18) FINISHED
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 1.24kB                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 34B                                                                                0.0s
 => [internal] load metadata for docker.io/library/alpine:3.15                                                                                1.2s
 => [internal] load metadata for docker.io/owncloudci/nodejs:14                                                                                0.6s
 => [internal] load metadata for docker.io/owncloudci/golang:1.18                                                                                2.1s
 => [internal] load build context                                                                                0.1s
 => => transferring context: 152.35kB                                                                                0.1s
 => [stage-2 1/3] FROM docker.io/library/alpine:3.15@sha256:69463fdff1f025c908939e86d4714b4d5518776954ca627cbeff4c74bcea5b22                                                                                3.2s
 => => resolve docker.io/library/alpine:3.15@sha256:69463fdff1f025c908939e86d4714b4d5518776954ca627cbeff4c74bcea5b22                                                                                0.0s
 => => sha256:69463fdff1f025c908939e86d4714b4d5518776954ca627cbeff4c74bcea5b22 1.64kB / 1.64kB                                                                                0.0s
 => => sha256:7a38a4540724813e4190d086e955a8e757a7302551cc7555012fa63b57f1cf87 528B / 528B                                                                                0.0s
 => => sha256:c4fc938168588a0ba6178945c3d9047f27101eb3a420d9b758295e9ef8df3dc0 1.47kB / 1.47kB                                                                                0.0s
 => => sha256:9621f1afde84053b2f9b6ff34fc7f7460712247c01cbab483c5fa7132cf782ca 2.82MB / 2.82MB                                                                                3.0s
 => => extracting sha256:9621f1afde84053b2f9b6ff34fc7f7460712247c01cbab483c5fa7132cf782ca                                                                                0.2s
 => CACHED [generate 1/4] FROM docker.io/owncloudci/nodejs:14@sha256:471ade88fc5a73189e56997661c772bb1c6abf348555c7f36e441a9711cb386d                                                                                0.0s
 => [build 1/4] FROM docker.io/owncloudci/golang:1.18@sha256:9cd11b3146a101a46d27ac7c4cf1028ca25300ee003b5c7469e79fdb9d30573b                                                                                55.5s
 => => resolve docker.io/owncloudci/golang:1.18@sha256:9cd11b3146a101a46d27ac7c4cf1028ca25300ee003b5c7469e79fdb9d30573b                                                                                0.0s
 => => sha256:9cd11b3146a101a46d27ac7c4cf1028ca25300ee003b5c7469e79fdb9d30573b 1.11kB / 1.11kB                                                                                0.0s
 => => sha256:5ed2db52ff3ef243e33ad641b6a7d844b43e25f0756322028f41cc34d2d17585 1.58kB / 1.58kB                                                                                0.0s
 => => sha256:6c9156526933ec20627065a67a5c9aa60b80fc8099d8f0cfea852dcf5a1f5bdb 8.52kB / 8.52kB                                                                                0.0s
 => => sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49 2.81MB / 2.81MB                                                                                1.8s
 => => sha256:5299e6f7860564fd4df7e9a224f3d05dc26d0e855fb26ac7e9d9e156cf1422b2 284.73kB / 284.73kB                                                                                0.2s
 => => sha256:1cab0e43db0af1d30e55de347bd78df438344691f8fb379f631a07e2c8a80f0a 155B / 155B                                                                                0.3s
 => => sha256:af72e8bb74dba7b7a51456e414ac4999ff55a6a68e532a7cd1b6f32707be625f 115.31MB / 115.31MB                                                                                43.5s
 => => sha256:3a421caacf35538ce671745cb9396eea38bf42cd3093eaf78dbcbe8bf5f83f82 156B / 156B                                                                                0.8s
 => => sha256:1e9520d370f2b6b5948aca2dad6fc570b7feaf223970002047abda22b948cf91 55.62MB / 55.62MB                                                                                35.5s
 => => extracting sha256:213ec9aee27d8be045c6a92b7eac22c9a64b44558193775a1a7f626352392b49                                                                                0.2s
 => => extracting sha256:5299e6f7860564fd4df7e9a224f3d05dc26d0e855fb26ac7e9d9e156cf1422b2                                                                                0.1s
 => => extracting sha256:1cab0e43db0af1d30e55de347bd78df438344691f8fb379f631a07e2c8a80f0a                                                                                0.0s
 => => extracting sha256:af72e8bb74dba7b7a51456e414ac4999ff55a6a68e532a7cd1b6f32707be625f                                                                                8.3s
 => => extracting sha256:3a421caacf35538ce671745cb9396eea38bf42cd3093eaf78dbcbe8bf5f83f82                                                                                0.1s
 => => extracting sha256:1e9520d370f2b6b5948aca2dad6fc570b7feaf223970002047abda22b948cf91                                                                                2.7s
 => [generate 2/4] COPY ./ /ocis/                                                                                1.7s
 => [generate 3/4] WORKDIR /ocis/ocis                                                                                0.0s
 => [generate 4/4] RUN make ci-node-generate                                                                                184.2s
 => [stage-2 2/3] RUN apk update &&  apk upgrade &&  apk add ca-certificates mailcap &&  rm -rf /var/cache/apk/* &&  echo 'hosts: files dns' >| /etc/nsswitch.conf                                                       3.0s
 => [build 2/4] COPY --from=generate /ocis /ocis                                                                                36.4s
 => [build 3/4] WORKDIR /ocis/ocis                                                                                0.0s
 => [build 4/4] RUN make ci-go-generate build                                                                                172.1s
 => [stage-2 3/3] COPY --from=build /ocis/ocis/bin/ocis /usr/bin/ocis                                                                                0.3s
 => exporting to image                                                                                0.4s
 => => exporting layers                                                                                0.4s
 => => writing image sha256:a481b843d9319880b7571fc54d9580278419dc719aaabf1414a95176db336d17                                                                                0.0s
 => => naming to docker.io/library/ocis                                                                                0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Technical debt
[ ] Tests only (no source changes)

Checklist:

[ ] Code changes
[ ] Unit tests added
[ ] Acceptance tests added
[ ] Documentation ticket raised:

@robertomassabr Please try again with this fix.


Replace _BV with bit

Replace the _BV macro with the bit macro.

Thanks @asukiaaa for the contribution! I did not realize _BV was only defined on the AVR Arduinos.

I did not know it also.
Thank you for updating the library.


fix misplaced entry when opening day at end of month

When opening the journal at the end of the month, the timestamp is incorrectly placed at the end of the journal file rather than under the corresponding date.
The issue is caused by an incorrectly formatted time object. In order to find the location to place the time stamp the program finds the date immediately after the desired date, and places the timestamp just before this header. It finds the date immediately after the desired date by adding one to the days component of the date. When at the end of the month this results in an illogical state for the date, which causes the finding of the header to fail.
This is resolved by using mktime to adjust the values to represent a valid date.

Looks good.


[lang/javascript] Add prefix names to JavaScript bindings

These provide useful hints for js2-refactor's deeply nested bindings.
tide-rename-symbol is remapped to SPC r r s to de-conflict with js2-refactor's r s mapping.

Great. Thanks for your help!


Running scripts\npm.bah install on Ubuntu fails

VSCode Version: a89447cca9ef71b5a4c0f974ad61b09cf46fa6f2
OS Version: Ubuntu 16.04 LTS \n \l

Steps to Reproduce:

run ./scripts/npm.sh install

$ ./scripts/npm.sh install

><EMAIL_ADDRESS>preinstall /home/zjk/dev/github/vscode
> node build/npm/preinstall.js

npm WARN optional dep failed, continuing<EMAIL_ADDRESS>npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/opt/software/node-v4.4.5-linux-x64/bin/node" "/opt/software/node-v4.4.5-linux-x64/bin/npm" "install"
npm ERR! node v4.4.5
npm ERR! npm  v2.15.5
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture<EMAIL_ADDRESS>npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     /home/zjk/dev/github/vscode/npm-debug.log

Here is a gist of the npm-debug.log

Sorry for my carelessness. It seems that using node v5.10.1 solves the issue.


remove information about squads

Might be as simple as reverting https://github.com/18F/cg-product/commit/6a4acf23133822765f4b41c0d3932c800daec290 ...?

I think they just need a rename... Tried that and a little more in https://github.com/18F/cg-product/pull/289

I promise I'm not trolling, but if themes and squads have a one-to-one relationship, what's the value of holding on to both concepts?

I want to hold out for a while longer, just until we're sure that AgentQ and Atlas are not just separate themes, but separate squads... I want to see what the steady state looks like with Coresphere out, Dan and Chris on, and the current all-hands-on-HighBar-and-Atlas situation behind us.

Closing... Readily apparent now that AgentQ is not a separate squad at this team size!


spring-security.xsd removed

Context

MapFish print version: Docker image 3.29
Java version: ?
OS: ?

Describe the bug

How to reproduce
Here is my docker-compose.yml
---
  version: "2.4"
  services:
    print01:
      image: camptocamp/mapfish_print:3.29
      restart: always

Actual results
The container can not start.
11:27:28.510 [localhost-startStop-1] WARN  o.s.b.f.xml.XmlBeanDefinitionReader - Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/security/spring-security.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
[…]
11:27:28.614 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 15 in XML document from class path resource [mapfish-spring-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 40; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http-firewall'.

Workaround
I just found that http://www.springframework.org/schema/security/spring-security.xsd does not exists anymore.
C.F. https://web.archive.org/web/20230218090058/http://www.springframework.org/schema/security/
It existed on 2023-02-18 and was at that time identical to spring-security-5.7.xsd
But on startup, it failed, asking for 5.2.
My solution was to mount a modified version of /mapfish-spring-security.xml to point to an existing xsd version :
---
  version: "2.4"
  services:
    print01:
      image: camptocamp/mapfish_print:3.29
      restart: always
    volumes:
        - ./mapfish-spring-security.xml:/usr/local/tomcat/webapps/ROOT/WEB-INF/classes/mapfish-spring-security.xml:ro

And the mapfish-spring-security.xml I put is identical to core/src/main/resources/mapfish-spring-security.xml with the version set to 5.2 :
<?xml version="1.0" encoding="UTF-8"?>

<beans:beans xmlns:beans="http://www.springframework.org/schema/beans"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns="http://www.springframework.org/schema/security"
             xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-5.2.xsd">

    <!-- needed to allow double slashes in the URLs -->
    <beans:bean id="httpFirewall" class="org.springframework.security.web.firewall.DefaultHttpFirewall">
        <beans:property name="allowUrlEncodedSlash" value="true"/>
    </beans:bean>

    <http-firewall ref="httpFirewall"/>

    <http use-expressions="true">
        <!-- in order to get a challenge (for capabilities for example) you need to use the print/sec/* urls -->
        <csrf disabled="true"/>
        <intercept-url pattern="/sec/print/**" requires-channel="https" access="isAuthenticated()"/>
        <intercept-url pattern="/**" access="permitAll()"/>
        <http-basic/>
        <anonymous/>
    </http>

    <!--
        This authentication manager is not authenticating anything.
        See https://docs.spring.io/spring-security/site/docs/5.1.3.RELEASE/reference/htmlsingle/#ns-config
        for some help
    -->
    <beans:bean name="org.springframework.security.authenticationManager"
                class="org.mapfish.print.servlet.NoOpAuthenticationManager"/>
</beans:beans>

Maybe instead of pointing on distant files, those xsd files could be integrated in the solution.

I succeeded in reproducing only with the relay old 3.22 version :-(
Did I miss something?

We were indeed in 3.22 but upgraded to 3.29 for our tests and to be able to open a ticker up to date.
We still have the problem with the latest docker image.
I have not validated the version of mapfish print used in the image, but the image was that one : https://hub.docker.com/layers/camptocamp/mapfish_print/3.29/images/sha256-64f57772e48915437e1525b462cadd9faf39fe5f2d111dc327aa31ea40462c2b?context=explore
Note : if I pass the latest mapfish-spring-security.xml in any XML validator tool, it fails too, for example I used this one : https://www.freeformatter.com/xml-validator-xsd.html


Auto scroll to the end of a RichTextBlock after update

A RichTextBlock Component is used to present important information. After adding additional content, the RichTextBlock should scroll down to the lowest possible position, to show the user the latest updates.
For Scrolling the RichTextBlock is child of a ScrollViewer:
<ScrollViewer Grid.Row="1" Name="Scroller">
   <RichTextBlock Name="Console" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Padding="10"/>
</ScrollViewer>

code behind
Paragraph paragraph = new Paragraph() { Margin = new Thickness(0) };
Run run = new Run();
run.Text = $"SUPERIMPORTANTSTUFF\n";
paragraph.Inlines.Add(run);
Console.Blocks.Add(paragraph);

Scroller.ScrollToVerticalOffset(Scroller.ScrollableHeight);

In this situation the scrollbar scrolls to the position where the new content starts, not at the end of the new content.
I did not find an event that i can use to implement the ScrollToVerticalOffset command.
ugly workaround
Paragraph paragraph = new Paragraph() { Margin = new Thickness(0) };
Run run = new Run();
run.Text = $"SUPERIMPORTANTSTUFF\n";
paragraph.Inlines.Add(run);
Console.Blocks.Add(paragraph);

Debug.WriteLine("1 " + Scroller.ExtentHeight + ", " + Scroller.ScrollableHeight + ", " + Scroller.VerticalOffset);
await Task.Delay(300);
Debug.WriteLine("2 " + Scroller.ExtentHeight + ", " + Scroller.ScrollableHeight + ", " + Scroller.VerticalOffset);
Scroller.ScrollToVerticalOffset(Scroller.ScrollableHeight);
Debug.WriteLine("3 " + Scroller.ExtentHeight + ", " + Scroller.ScrollableHeight + ", " + Scroller.VerticalOffset);

output
1 39, 0, 0
2 113, 14, 0
3 113, 14, 14

What's the way to implement this feature without adding a delay which could add some other problems on different clients?

I think that the delay is helping you because layout hasn't run yet, so there is no new extent for the scrollviewer to scroll into.  I think a better workaround would be to post this to the UI thread using dispatcher runAsync for winui2 or tryEnqueue for winui3.  Here on Winui2 (https://docs.microsoft.com/en-us/uwp/api/windows.ui.core.coredispatcher.runasync?view=winrt-19041#Windows_UI_Core_CoreDispatcher_RunAsync_Windows_UI_Core_CoreDispatcherPriority_Windows_UI_Core_DispatchedHandler_) or here on Winui3 https://docs.microsoft.com/en-us/windows/winui/api/microsoft.system.dispatcherqueue.tryenqueue?view=winui-3.0-preview#Microsoft_System_DispatcherQueue_TryEnqueue_Microsoft_System_DispatcherQueueHandler_ ( @RBrid can you weigh in?

@StephenLPeters
to post to the UI thread using dispatcher like this
DispatcherQueue.TryEnqueue(() =>
{
    Scroller.ScrollToVerticalOffset(Scroller.ScrollableHeight);
});

only change you will not have an error message because you are trying to update the UI from a different thread
the delay is still required in that case
what i need, is an event, that informs me, when the content update is finished

@AndreMarschalek On my end I had a RichTextBlock as the content of a ScrollViewer, and listening to SizeChanged events from the RichTextBlock (upon addition/removal of content) did the trick. On the event handler I scroll to the scrollable height, which is then resolved to reflect the content's new size.
private void OutputRichTextBlock_SizeChanged(object sender, SizeChangedEventArgs e)
{
    if (AutoScrollToggle.IsChecked.GetValueOrDefault(false))
    {
        MainScrollViewer.ScrollToVerticalOffset(MainScrollViewer.ScrollableHeight);
    }
}


Error Analyzing Angular App + node-gyp dependency

Describe the bug
Dependency check operation breaks when run in an Angular app with node-gyp dependency installed
Version of dependency-check used
The problem occurs using version 10.0.2
Log file
Dependency-Check is an open source tool performing a best effort analysis of 3rd party dependencies; false positives and false negatives may exist in the analysis performed by the tool. Use of the tool and the reporting provided constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to the analysis or its use. Any use of the tool and the reporting provided is at the user's risk. In no event shall the copyright holder or OWASP be held liable for any damages whatsoever arising out of or in connection with the use of this tool, the analysis performed, or the resulting report.

   About ODC: https://jeremylong.github.io/DependencyCheck/general/internals.html
   False Positives: https://jeremylong.github.io/DependencyCheck/general/suppression.html

💖 Sponsor: https://github.com/sponsors/jeremylong

[INFO] Analysis Started
[INFO] Finished Archive Analyzer (5 seconds)
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Jar Analyzer (2 seconds)
[INFO] Finished Central Analyzer (10 seconds)
[ERROR] ----------------------------------------------------
[ERROR] .NET Assembly Analyzer could not be initialized and at least one 'exe' or 'dll' was scanned. The 'dotnet' executable could not be found on the path; either disable the Assembly Analyzer or add the path to dotnet core in the configuration.
[ERROR] The dotnet 8.0 core runtime or SDK is required to analyze assemblies
[ERROR] ----------------------------------------------------
[INFO] Finished Python Distribution Analyzer (0 seconds)
[INFO] Finished Python Package Analyzer (0 seconds)
[WARN] An unexpected error occurred during analysis of '/home/jtorres/experiments/base/demo-project/node_modules/node-gyp/gyp/pyproject.toml' (Poetry Analyzer): java.lang.IllegalStateException: Invalid key on line 41: lint.select
[ERROR]
java.lang.RuntimeException: java.lang.IllegalStateException: Invalid key on line 41: lint.select
        at com.moandjiezana.toml.Toml.read(Toml.java:74)
        at org.owasp.dependencycheck.analyzer.PoetryAnalyzer.analyzeDependency(PoetryAnalyzer.java:150)
        at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze(AbstractAnalyzer.java:131)
        at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:88)
        at org.owasp.dependencycheck.AnalysisTask.call(AnalysisTask.java:37)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.IllegalStateException: Invalid key on line 41: lint.select
        at com.moandjiezana.toml.Toml.read(Toml.java:140)
        at com.moandjiezana.toml.Toml.read(Toml.java:107)
        at com.moandjiezana.toml.Toml.read(Toml.java:72)
        ... 8 common frames omitted
[INFO] Finished Poetry Analyzer (0 seconds)
[WARN] dependency skipped: node module @esbuild/aix-ppc64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/android-arm seems optional and not installed
[WARN] dependency skipped: node module @esbuild/android-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/android-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/darwin-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/darwin-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/freebsd-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/freebsd-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-arm seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-ia32 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-loong64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-mips64el seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-ppc64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-riscv64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-s390x seems optional and not installed
[WARN] dependency skipped: node module @esbuild/netbsd-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/openbsd-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/sunos-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/win32-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/win32-ia32 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/win32-x64 seems optional and not installed
[WARN] dependency skipped: package.json contain an alias for string-width-cjs =><EMAIL_ADDRESS>npm audit doesn't support aliases
[WARN] dependency skipped: package.json contain an alias for strip-ansi-cjs =><EMAIL_ADDRESS>npm audit doesn't support aliases
[WARN] dependency skipped: package.json contain an alias for wrap-ansi-cjs =><EMAIL_ADDRESS>npm audit doesn't support aliases
[WARN] dependency skipped: node module @rollup/rollup-android-arm-eabi seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-android-arm64 seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-darwin-arm64 seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-darwin-x64 seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-linux-arm-gnueabihf seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-linux-arm-musleabihf seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-linux-arm64-gnu seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-linux-arm64-musl seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-linux-powerpc64le-gnu seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-linux-riscv64-gnu seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-linux-s390x-gnu seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-win32-arm64-msvc seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-win32-ia32-msvc seems optional and not installed
[WARN] dependency skipped: node module @rollup/rollup-win32-x64-msvc seems optional and not installed
[WARN] dependency skipped: node module fsevents seems optional and not installed
[WARN] dependency skipped: node module @esbuild/aix-ppc64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/android-arm seems optional and not installed
[WARN] dependency skipped: node module @esbuild/android-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/android-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/darwin-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/darwin-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/freebsd-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/freebsd-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-arm seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-ia32 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-loong64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-mips64el seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-ppc64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-riscv64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/linux-s390x seems optional and not installed
[WARN] dependency skipped: node module @esbuild/netbsd-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/openbsd-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/sunos-x64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/win32-arm64 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/win32-ia32 seems optional and not installed
[WARN] dependency skipped: node module @esbuild/win32-x64 seems optional and not installed
[INFO] Finished Node.js Package Analyzer (7 seconds)
[INFO] Finished PE Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (1 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Created CPE Index (3 seconds)
[INFO] Finished NPM CPE Analyzer (3 seconds)
[INFO] Created CPE Index (3 seconds)
[INFO] Finished CPE Analyzer (21 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
[WARN] dependency skipped: package.json contain an alias for string-width-cjs =><EMAIL_ADDRESS>npm audit doesn't support aliases
[WARN] dependency skipped: package.json contain an alias for strip-ansi-cjs =><EMAIL_ADDRESS>npm audit doesn't support aliases
[WARN] dependency skipped: package.json contain an alias for wrap-ansi-cjs =><EMAIL_ADDRESS>npm audit doesn't support aliases
[INFO] Finished Node Audit Analyzer (1 seconds)
[WARN] The Yarn Audit Analyzer has been disabled. Yarn executable was not found.
[ERROR] Exception occurred initializing Yarn Audit Analyzer.
[INFO] Finished RetireJS Analyzer (102 seconds)
[INFO] Finished Sonatype OSS Index Analyzer (8 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Known Exploited Vulnerability Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (19 seconds)
[INFO] Finished Unused Suppression Rule Analyzer (0 seconds)
[INFO] Analysis Complete (185 seconds)
[INFO] Writing XML report to: /home/jtorres/experiments/base/demo-project/./dependency-check-report.xml
[INFO] Writing HTML report to: /home/jtorres/experiments/base/demo-project/./dependency-check-report.html
[INFO] Writing JSON report to: /home/jtorres/experiments/base/demo-project/./dependency-check-report.json
[INFO] Writing CSV report to: /home/jtorres/experiments/base/demo-project/./dependency-check-report.csv
[INFO] Writing SARIF report to: /home/jtorres/experiments/base/demo-project/./dependency-check-report.sarif
[INFO] Writing JENKINS report to: /home/jtorres/experiments/base/demo-project/./dependency-check-jenkins.html
[INFO] Writing JUNIT report to: /home/jtorres/experiments/base/demo-project/./dependency-check-junit.xml
[INFO] Writing GITLAB report to: /home/jtorres/experiments/base/demo-project/./dependency-check-gitlab.json
[ERROR] java.lang.IllegalStateException: Invalid key on line 41: lint.select
[ERROR] Unable to read yarn audit output.

To Reproduce
Steps to reproduce the behavior:

ng new demo-project
cd demo-project
npm install node-gyp
$ VERSION=$(curl -s https://jeremylong.github.io/DependencyCheck/current.txt)
$ curl -Ls "https://github.com/jeremylong/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip" --output dependency-check.zip
unzip dependency-check.zip
./dependency-check/bin/dependency-check.sh --format ALL --out . --scan . --enableExperimental --prettyPrint

Expected behavior
successful finish
Additional context
The reports are successfully written to the directory, but the command execution fails which breaks my CICD process, my current workaround is to add || true at the end of dependency-check.sh command

Maybe use:
./dependency-check/bin/dependency-check.sh --format ALL --out . --scan . --enableExperimental --prettyPrint --exclude "node_modules/**/*"

Hi Jeremy thanks for the response, thinking in your response 'node_modules' contains all the dependencies of the project and the purpose of the Dependency Check is precisely to analyze those dependencies to identify possible vulnerabilities, if i don't include 'node_modules' what is the idea of the vulnerability checks?
I suppose maybe with package.json and package-lock.json is enough for some dependencies, maybe just check if some versions have vulnerabilities on a database, something like "package foo on version 1.0.0 have that list of vulnerabilities", but node-gyp compile and run binaries, would those vulnerabilities be detected?


Fine-tune Llama 3 with ORPO HuggigFace Hub Push Issue

Greetings! In your Fine-tune Llama 3 with ORPO tutorial, I am receiving an error when I try to push to the Hub:
...

trainer.train()
trainer.save_model(new_model)

del trainer, model
gc.collect()
torch.cuda.empty_cache()

tokenizer = AutoTokenizer.from_pretrained(base_model)
fp16_model = AutoModelForCausalLM.from_pretrained(
    base_model,
    low_cpu_mem_usage=True,
    return_dict=True,
    torch_dtype=torch.float16,
    device_map="auto",
)
fp16_model, tokenizer = setup_chat_format(fp16_model, tokenizer)

model = PeftModel.from_pretrained(fp16_model, new_model)
model = model.merge_and_unload()

model.push_to_hub(new_model, use_temp_dir=False)
tokenizer.push_to_hub(new_model, use_temp_dir=False)

---------------------------------------------------------------------------

IsADirectoryError                         Traceback (most recent call last)

[<ipython-input-29-aa0cf4290d65>](https://localhost:8080/#) in <cell line: 1>()
----> 1 model.push_to_hub(new_model, use_temp_dir=False)
      2 tokenizer.push_to_hub(new_model, use_temp_dir=False)

4 frames

[/usr/lib/python3.10/pathlib.py](https://localhost:8080/#) in open(self, mode, buffering, encoding, errors, newline)
   1117         if "b" not in mode:
   1118             encoding = io.text_encoding(encoding)
-> 1119         return self._accessor.open(self, mode, buffering, encoding, errors,
   1120                                    newline)
   1121

IsADirectoryError: [Errno 21] Is a directory: 'claytoncohn/TEST_ORPO_LLaMA3'

When I make call push_to_hub, a model repo is created on my HF account and a .gitattributes file is created for the initial commit, but then the error is thrown.
There is a similar issue addressed on huggingface (https://github.com/huggingface/transformers/issues/28543), but I can't seem to figure out what I am doing wrong.
EDIT: Pursuant to the above huggingface GitHub issue, I tried removing the local Colab directory claytoncohn/TEST_ORPO_LLaMA3 to avoid the conflict; however, I then received a file not found error. It seems that even though the base model is merged with the adapters in the Colab environment, the call to model.push_to_hub attempts to retrieve the model locally (i.e., from the folder w/ the saved trained adapters) from the same path as the repo that I am trying to push to on HuggingFace Hub.
Thanks!

Hey, indeed your error is due to the fact you currently have a directory claytoncohn/TEST_ORPO_LLaMA3. Regarding the second error, I'd need the traceback to help you.

Sure! The folder creating the conflict, claytoncohn/TEST_ORPO_LLaMA3, initially contained the trained adapters (as a result of the call to trainer.save_model(new_model)). However, when I removed the items in this folder and replaced them with the merged model, I still have the same issue due to the conflict.
If I remove the local directory to resolve the conflict, I receive an error that the the directory can't be found:
...

new_model = "claytoncohn/TEST_ORPO_LLaMA3"

...

delete_folder(pathlib.Path(new_model.split("/")[0]))
!ls

#Confirmed that the claytoncohn/TEST_ORPO_LLaMA3 directory is gone
results  sample_data  wandb

model.push_to_hub(new_model, use_temp_dir=False)
tokenizer.push_to_hub(new_model, use_temp_dir=False)

FileNotFoundError                         Traceback (most recent call last)

[<ipython-input-24-aa0cf4290d65>](https://localhost:8080/#) in <cell line: 1>()
----> 1 model.push_to_hub(new_model, use_temp_dir=False)
      2 tokenizer.push_to_hub(new_model, use_temp_dir=False)

2 frames

[/usr/local/lib/python3.10/dist-packages/transformers/modeling_utils.py](https://localhost:8080/#) in push_to_hub(self, *args, **kwargs)
   2661         if tags:
   2662             kwargs["tags"] = tags
-> 2663         return super().push_to_hub(*args, **kwargs)
   2664
   2665     def get_memory_footprint(self, return_buffers=True):

[/usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py](https://localhost:8080/#) in push_to_hub(self, repo_id, use_temp_dir, commit_message, private, token, max_shard_size, create_pr, safe_serialization, revision, commit_description, tags, **deprecated_kwargs)
    886
    887         with working_or_temp_dir(working_dir=working_dir, use_temp_dir=use_temp_dir) as work_dir:
--> 888             files_timestamps = self._get_files_timestamps(work_dir)
    889
    890             # Save all files.

[/usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py](https://localhost:8080/#) in _get_files_timestamps(self, working_dir)
    696         Returns the list of files with their last modification timestamp.
    697         """
--> 698         return {f: os.path.getmtime(os.path.join(working_dir, f)) for f in os.listdir(working_dir)}
    699
    700     def _upload_modified_files(

FileNotFoundError: [Errno 2] No such file or directory: 'TEST_ORPO_LLaMA3'

Sorry for the late reply. I think you need a temp folder to store the files that are uploaded to the HF Hub. It doesn't look necessary indeed, but I don't think I can change it in the code since it relies on HF's implementation.

No worries, I appreciate the response! I'll continue using temp folder going forward and will close the issue. Thanks again!

No worries, I appreciate the response! I'll continue using temp folder going forward and will close the issue. Thanks again!


Output decompilation results in JSON format (#676)

Easy to parse output format will be very useful for integration with not java programs (like radare2, see #676)
JSON output can be enabled using --output-format json cli argument.
Jadx will output json file for every class and also common mapping.json to allow search by names or offset and links to class individual json with full methods code.
Example:

Sample java class (click to expand)
package jadx.example;

import java.util.List;

public class TestCls {
	private final String prefix = "list: ";

	static {
		System.out.println("test");
	}

	public void test(boolean b, List<String> list) {
		if (b) {
			System.out.println(prefix + list);
		}
	}

	public static class Inner implements Runnable {
		@Override
		public void run() {
			System.out.println("run");
		}
	}
}

command line:
jadx --output-dir-src src --no-res --output-format json test.dex

will produce:

src/mapping.json
{
"classes": [
  {
    "name": "jadx.example.TestCls",
    "alias": "jadx.example.TestCls",
    "json": "jadx/example/TestCls.json",
    "inner": false,
    "fields": [
      {
        "name": "prefix",
        "alias": "prefix"
      }
    ],
    "methods": [
      {
        "signature": "<clinit>()V",
        "name": "<clinit>",
        "alias": "<clinit>",
        "offset": "0x288"
      },
      {
        "signature": "<init>()V",
        "name": "<init>",
        "alias": "<init>",
        "offset": "0x2a8"
      },
      {
        "signature": "test(ZLjava/util/List;)V",
        "name": "test",
        "alias": "test",
        "offset": "0x2c8"
      }
    ]
  },
  {
    "name": "jadx.example.TestCls$Inner",
    "alias": "jadx.example.TestCls.Inner",
    "json": "jadx/example/TestCls.json",
    "inner": true,
    "top-class": "jadx.example.TestCls",
    "methods": [
      {
        "signature": "<init>()V",
        "name": "<init>",
        "alias": "<init>",
        "offset": "0x250"
      },
      {
        "signature": "run()V",
        "name": "run",
        "alias": "run",
        "offset": "0x268"
      }
    ]
  }
]
}

src/jadx/example/TestCls.json
{
"package": "jadx.example",
"type": "class",
"dex": "test.dex",
"fields": [
  {
    "name": "prefix",
    "declaration": "private final String prefix = \"list: \";",
    "access-flags": 18
  }
],
"methods": [
  {
    "signature": "<clinit>()V",
    "return-type": "void",
    "arguments": [],
    "lines": [
      {
        "code": "System.out.println(\"test\");",
        "offset": "0x28c",
        "source-line": 9
      }
    ],
    "offset": "0x288",
    "name": "<clinit>",
    "declaration": "static",
    "access-flags": 65544
  },
  {
    "signature": "test(ZLjava/util/List;)V",
    "return-type": "void",
    "arguments": [
      "boolean",
      "java.util.List"
    ],
    "lines": [
      {
        "code": "if (z) {",
        "offset": "0x2c8",
        "source-line": 13
      },
      {
        "code": "    System.out.println(\"list: \" + list);",
        "offset": "0x2df",
        "source-line": 14
      },
      {
        "code": "}"
      }
    ],
    "offset": "0x2c8",
    "name": "test",
    "declaration": "public void test(boolean z, List<String> list)",
    "access-flags": 1
  }
],
"inner-classes": [
  {
    "package": "jadx.example",
    "type": "class",
    "implements": [
      "java.lang.Runnable"
    ],
    "dex": "test.dex",
    "fields": [],
    "methods": [
      {
        "signature": "run()V",
        "return-type": "void",
        "arguments": [],
        "lines": [
          {
            "code": "System.out.println(\"run\");",
            "offset": "0x26c",
            "source-line": 21
          }
        ],
        "offset": "0x268",
        "name": "run",
        "declaration": "public void run()",
        "access-flags": 1
      }
    ],
    "name": "jadx.example.TestCls.Inner",
    "declaration": "public static class Inner implements Runnable ",
    "access-flags": 9
  }
],
"imports": [
  "java.util.List"
],
"name": "jadx.example.TestCls",
"declaration": "public class TestCls ",
"access-flags": 1
}

Notes:

offset is a bytes offset from begging of input dex, used in methods and code lines
declaration is code declaration of class, field of method. Can be used to recreate decompiled code.

i tried the branch but the offset doesnt seems to match, check this screenshot, it is me or you who are hving that shihfting?

@radare sorry about that, I made a fix for instructions offset calculation.
Also I notice that radare try to represent method header as instructions which is misleading :(
For example in your screenshot area from 0x17bac8 to 0x17bad8 (excluding) is just method header and don't contain any instructions only information about method, you can check method code format here.
Or this was made with purpose?

Yes i know that this method header is displayed as code and it shouldnt, it's in my list of things to improve in r2 for dex. the RBin plugin is parsing that header in parse_dex_class_method function, so i have this info, but im not exporting that into r2 for the disassembler yet. its easy to fix :) but thanks for spotting it
I think this PR can be merged into master. and it would be good to have a new release of jadx, so i can finish the initial plugin from the PoC i wrote and we can later improve in other info that jadx can expose in those JSONs.
From what i have in mind, the only thing missing is that control-flow information on the optimized decompiler output, so i can graph the optimized decompilation it inside r2 properly. But for now the current features in r2 will be:

disasm + decompilation side by side (sync offset + srcline)
pick low level/optimized decompilation from jadx
get decompilation
create a graph of the decompiler output

Yay! thanks! looking forward the release

@radare I made a release v1.0.0 :tada:

yayy!! i have improved a bit my r2jadx poc and now its somewhat more usable :)
r2pm -i jadx # installs jadx-1.0 in r2pm's path in user's home
r2pm -i r2jadx # install r2 plugin to integrate jadx into r2
How to use it:

!*r2jadx

this program can be also used from the shell:
$ r2pm -r r2jadx /tmp/classes.dex -r2 > /tmp/classes.r2
Thanks! i will come back here when i get more things fixed in my side and a cleaner decompiler interface to support other decompilers in a better way. I know a couple of people who will enjoy this plugin :)

On 20 Jun 2019, at 11:35, skylot<EMAIL_ADDRESS>wrote:
@radare https://github.com/radare I made a release v1.0.0 https://github.com/skylot/jadx/releases/tag/v1.0.0 🎉
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/skylot/jadx/pull/690?email_source=notifications&email_token=AAG75FUNJZXPUP4JV5MAT7DP3NFNDA5CNFSM4HYO4VL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYE3ZTQ#issuecomment-503954638, or mute the thread https://github.com/notifications/unsubscribe-auth/AAG75FTYZWXHM5WGTSACKTLP3NFNDANCNFSM4HYO4VLQ.