crackmapexec rdp incorrect when spraying for RDP credentials

Describe the bug
A clear and concise description of what the bug is.
I am using CME 5.4.0 on Kali Linux 2022.04 and running crackmapexec rdp commands against known exploited systems and it is not identifying the systems credentials as valid / compromised
To Reproduce
Steps to reproduce the behavior:

run the command

crackmapexec rdp 10.11.1.x -u Administrator -H '' --local-auth
using a known good hash (I can use the same hash to logon using xfreerdp) and the command results in a negative response when it should identify the system as pwned
RDP         10.11.1.x     3389   PETER            [*] Windows 10 or Windows Server 2016 Build 17763 (name:PETER) (domain:PETER) (nla:False)
rdp+ntlm-nt://PETER\Administrator:
RDP         10.11.1.x     3389   PETER            [-] PETER\Administrator:
I have also tried the command without the --local-auth argument with the same results
crackmapexec rdp 10.11.1.x -u Administrator -H ''
I have also tried the command without the single quotes around the hash
crackmapexec rdp 10.11.1.x -u Administrator -H
I have also tried the command using the -d .
crackmapexec rdp 10.11.1.x -u Administrator -d . -H ''
All of these commands result in telling me that the credentials are incorrect when I know that the hash and the user name are correct and can be used to logon using xfreerdp.
I also added a user to the local administrators group and used the known password and got negative responses to the known user name and password
Note that these systems only have port 3389 open.
Expected behavior
A clear and concise description of what you expected to happen.
I expect CME to tell me when the credentials are correct using the rdp protocol just like it does for the smb protocol and other protocols.
Screenshots
If applicable, add screenshots to help explain your problem.
Crackmapexec info

OS: Kali 2020.04
Version of CME - 5.4.0
Installed from apt or using latest release ? Please try with latest release before openning an issue - Installed with Kali and updated with Kali

Additional context
Add any other context about the problem here.

fixed :)


Formatting does not accept nested Todos

Hello!
Love the LSP! Use it all the time for Obsidian and it works great for almost everything.
I have format on save in my Nvim config right now, and I had to disable that for markdown files because it causes my nested Todos to be broken into multiple lines.
So if I have something like this:
- [ ] Some todo
   - [ ] A nested todo

The formatting will add a line break between my todos (and even move the todo back a little, but not fully).
It will end up something like this:
- [ ] Some todo

 - [ ] A nested todo

EDIT: That will not happen if I have more todos underneath that. Or if I have multiple nested layers.
Like so:
- [ ] Some todo
   - [ ] A nested todo
- [ ] Another todo

EDIT2: What an edge case, apparently, it needs to have another todo further down to "draw" the todo from it's parent:
This will cause it to happen:
- [ ] Some todo
   - [ ] A nested todo

- [ ] Another todo

Hey! Thanks for reporting.
Unfortunately I don't think I'll be able to help with this as markdown-oxide doesn't provide any formatting features - or any special support for todos for that matter.
I hope you figure it out!
I'll close this for now too


Update version in pom.xml to 0.8.0

@tanmay-db Are there other places where the version needs to be bumped?

@tanmay-db Thanks, your suggestions sound good. Can you make sure to track it some placE?


ENYO-6067: Fix ExpandableItem to guard against undefined event handlers

Checklist

[x] I have read and understand the contribution guide

[ ] A CHANGELOG entry is included

[ ] At least one test case is included for this feature or bug fix

[ ] Documentation was added or is not needed

[ ] This is an API breaking change

Issue Resolved / Feature Added
No action is taken even if clicking or pressing any keys when there is no onClose if component in the app.
Resolution
added exception about onClose handler
Additional Considerations
Links
ENYO-6067

There isn't a change log but I think that is okay given the narrowness of the fix.


The  component does not render "avatar" type (rounded) images.

Feature Request
Problem description
The <Seach> component does not render "avatar"  type (rounded) images like the <Dropdown> does instead.
Proposed solution
Would be nice if the Search component would allow avatar type images like the Dropdown component does currently without the need to make it Custom.
Current behavior:
Dropdown:

item in options:
image: { avatar: true, src: '/images/avatar/small/jenny.jpg' },
render:

Search:

item in options:
image: { avatar: true, src: '/images/avatar/small/jenny.jpg' },
render:

anyone?

@tonnoz it is unclear what you are trying to implement here. There is no options prop for the <Search> component. Your issue has the Feature Request header... but it sounds like you might be reporting a bug?
I would suggest taking a minute to create a codesandbox that illustrates what you are trying to achieve.


[GSSOC'23] Request to add code for Measuring Internet Speed

Aim

To measure the internet speed of a network connection using "Speedtest" library.

Details

The script will have the following features:

Download Speed Measurement: The script will perform a download speed test to measure the rate at which data can be downloaded from the internet.

Upload Speed Measurement: The script will also conduct an upload speed test to measure the rate at which data can be uploaded to the internet.

Latency Measurement: The script will measure the latency or ping time, which represents the time it takes for a data packet to travel from the user's device to a server and back. This metric helps determine the responsiveness of the network connection.

@avinashkranjan  may you review and check this issue pls

I am good at machine learning and web development and had developed lots of machine learning projects, so adding this feature is not a big task for me. so please assign me this and I am also a GSSOC 2023 contributor.

Go Ahead @Abhishek-Rajput-81


Review Java Tracker's WireMock tests

A nice complement to Mountebank, plus they come with lots of helper libs to make the test asserts easier:

https://github.com/snowplow/snowplow-java-tracker/blob/master/src/test/java/com/snowplowanalytics/snowplow/tracker/EmitterTest.java
https://github.com/snowplow/snowplow-java-tracker/blob/master/src/test/java/com/snowplowanalytics/snowplow/tracker/TrackerTest.java

Didn't get a chance to look into this, will re-schedule for 0.5.0.

Following review, rename this ticket to implement some initial WireMock tests or similar...


FriendBot is not working

I test with several accounts but all failed and showed the following error.
{
  "type": "https://stellar.org/horizon-errors/server_error",
  "title": "Internal Server Error",
  "status": 500,
  "detail": "An error occurred while processing this request.  This is usually due to a bug within the server software.  Trying this request again may succeed if the bug is transient, otherwise please report this issue to the issue tracker at: https://github.com/stellar/go/issues. Please include this response in your issue."

I've got the same problem, also when posting transaction.
It seems test network has some problem?

The test network entered surge pricing mode, and friendbot's fees were insufficient for its transactions to be included in the ledger. Fixed in #1594. Longer term fix is planned: #1592.

@brabo-hi Friendbot funding is working for me. If this is still a problem for you, please raise an issue here: https://github.com/stellar/java-stellar-sdk/issues

@brabo-hi Friendbot funding is working for me. If this is still a problem for you, please raise an issue here: https://github.com/stellar/java-stellar-sdk/issues

Yes it is working when using curl


Crash when placing cart

https://gist.github.com/fi7730/a0fbea3477c0f4982549fbaeb85a22a8

https://gist.github.com/modmuss50/0899865915b64052580dd9dd299430be

Both in mulitplayer when placing a cart.

and another one when joining the world: https://gist.github.com/modmuss50/27d411e4893b8c8d97e2fc4f598dbfae


API to rename Type’s name in python.

What is the feature you'd like to have?
API to rename Type’s name in python.
Is your feature request related to a problem?
I tried .registered_name.name = “test”, but it not work. It said that AttributeError: can't set attribute 'name'.
Are any alternative solutions acceptable?
No.
Additional Information:
No.

This API already exists: it's BinaryView.rename_type. See https://api.binary.ninja/binaryninja.binaryview-module.html#binaryninja.binaryview.BinaryView.rename_type


chore(fee, concurrency): move all fee logic to fee_utils

This change is

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.45%. Comparing base (d5d87c9) to head (67ba5ba).

Additional details and impacted files
@@                 Coverage Diff                  @@
##           yoni/fee-utils/move    #2004   +/-   ##
====================================================
  Coverage                78.45%   78.45%
====================================================
  Files                       62       62
  Lines                     8970     8970
  Branches                  8970     8970
====================================================
  Hits                      7037     7037
  Misses                    1486     1486
  Partials                   447      447

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Remove i64 as Index timestamp field [W.I.P]

Forcing the index timestamp field to be of type DateTime type.
Hold this till aggregation is ready on tantivy

@evanxg852000 we had a misunderstanding about this, we really want to merge this before the release. Can you do finish your PR today?


chore(config): avoid using macro to enable formatter

Stack:

#1776 ⬅
#1775

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

This change is


the code dotnet is not working

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Did you install the SDK as instructed? If so, did you open a new command prompt after the installation?


[Feature Request] Add a current-line-change event

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[x] fish

Problem / Steps to reproduce
I'm trying to execute a custom cleaner script whenever the currently selected line changes. Missing the corrisponding event, I've sort of been able to do this with the following flags:
--bind "change:execute-silent(cleaner)" \
--bind "ctrl-k:execute-silent(cleaner)+up" \
--bind "ctrl-p:execute-silent(cleaner)+up" \
--bind "up:execute-silent(cleaner)+up" \
--bind "ctrl-j:execute-silent(cleaner)+down" \
--bind "ctrl-n:execute-silent(cleaner)+down" \
--bind "down:execute-silent(cleaner)+down" \
--bind "pgup:execute-silent(cleaner)+page-up" \
--bind "pgdn:execute-silent(cleaner)+page-down" \
--bind "enter:execute-silent(cleaner)+accept" \
--bind "double-click:execute-silent(cleaner)+accept" \
--bind "ctrl-c:execute-silent(cleaner)+abort" \
--bind "ctrl-g:execute-silent(cleaner)+abort" \
--bind "ctrl-q:execute-silent(cleaner)+abort" \
--bind "esc:execute-silent(cleaner)+abort" \

apart from being unnecessarily complex this doesn't even work 100% of the time, for example when the currently selected file is the first (last) one in the list and I press up (down), I'm still calling that script even though I shouldn't because the selected file hasn't changed.
Having something like a current-line-change event that triggers whenever the currently selected line changes would allow me to avoid all this mess.

You can use --preview for that purpose.
fzf --preview 'say hi; cat {}'

# If size is given as 0, preview window will not be visible, but fzf will still execute the command in the background.
fzf --preview 'say hi' --preview-window 0

(The initial discussion can be found in #820)


Display provider subtype when listing applications

On the Applications page, add the technology subtype column after the Provider. For example, this could be Kubernetes, app engine or other

we should also be able to remove any code similar to the below
{{if eq .ProviderName "google_cloud"}}

subtype may include app engine, kubernetes (gke, aks, eks), elastic container service
also, platform name should also be on show page

https://github.com/hexa-org/policy-orchestrator/pull/240
This PR adds specific service types for applications retrieved from the different providers. Below is a list of Providers and the supported service types.

Google Cloud Platform:

AppEngine
Kubernetes

Azure Cloud Platform:

App Service

Open Policy Agent:

Hexa OPA

Amazon Web Services:

Cognito

The service type now shows up as a column in the List Applications page and the Show Application Details page.


cookiecutter should default to current project path when entering from Add New Item

We have multiple entry points into the cookiecutter Explorer window. If you come in from the Add New Item entry point (rather than New Project), we should default to installing the template into the current project directory. We can keep installing into that directory until another entry point is used.
We probably also need to display a little note underneath the path ("We chose your current project to add new items" or something), otherwise it may not be immediately obvious where we're going to put the files.

Also, the generated files should be added to the project. I guess do it automatically when Create succeeds. Don't know how that affects Open in Solution Explorer link when we return to the home page. Doesn't make a lot of sense to have it in that scenario.

Since this isn't a modal dialog, the user can leave the tool open for a long period and forget that it was opened with a "Add From".  They may have deleted the parent folder that was there when invoked, and the project may have been closed.

We can detect that the directory is gone and reset. We can probably also handle the case where the project is closed or the workspace is changed too. But I think having an info notice next to the path is the best way to deal with this.


🐛 frame processing error frame not send to the flask server through axios

What's happening?
const sendFrameToBackend = Worklets.createRunInJsFn(async (frame) => {
console.log(Running inference on ${frame});
try {
  const response = await axios.post('http://<IP_ADDRESS>:5000/predict', {
    frame ,
  });
  console.log('Frame sent successfully:', response.data);
} catch (error) {
  console.error('Error sending frame to backend:', error);
}

})
const frameProcessor = useFrameProcessor((frame) => {
'worklet'
// console.log(Frame: ${frame.width}x${frame.height} (${frame.pixelFormat}))
// console.log(Running inference on ${frame});
// Send the frame to the backend when captured
sendFrameToBackend(frame)
})

**errors are**

 ERROR  Error sending frame to backend: [Error: Exception in HostObject::getPropertyNames: com.mrousavy.camera.core.FrameInvalidError: [capture/frame-invalid] Trying to access an already closed Frame! Are you trying to access the Image data outside of a Frame Processor's lifetime?

If you want to use console.log(frame), use console.log(frame.toString()) instead.
If you want to do async processing, use runAsync(...) instead.
If you want to use runOnJS, increment it's ref-count: frame.incrementRefCount()]

Reproduceable Code
import React, { useState, useEffect } from 'react';
import {
  StyleSheet,
  Text,
  View,
} from 'react-native';
import {
  useCameraPermission,
  useMicrophonePermission,
  useCameraDevice,
  Camera,
  useFrameProcessor,runAtTargetFps,runAsync
} from 'react-native-vision-camera';
import axios from 'axios'; // Import Axios for making HTTP requests

function App() {
  const {
    hasPermission: cameraPermission,
    requestPermission: requestCameraPermission
  } = useCameraPermission();
  const {
    hasPermission: microphonePermission,
    requestPermission: requestMicrophonePermission,
  } = useMicrophonePermission();
  const cameraDevice = useCameraDevice('back');
  const [loading, setLoading] = useState(true);

  useEffect(() => {
    if (!cameraPermission) {
      requestCameraPermission();
    }
    if (!microphonePermission) {
      requestMicrophonePermission();
    }
  }, [cameraPermission, microphonePermission]);

  useEffect(() => {
    if (cameraPermission && microphonePermission) {
      setLoading(false);
    }
  }, [cameraPermission, microphonePermission]);

  const sendFrameToBackend = Worklets.createRunInJsFn(async (frame) => {
    console.log(`Running inference on ${frame}`);
    try {

      const response = await axios.post('http://<IP_ADDRESS>:5000/predict', {
        frame ,
      });
      console.log('Frame sent successfully:', response.data);
    } catch (error) {
      console.error('Error sending frame to backend:', error);
    }

  })
  const frameProcessor = useFrameProcessor((frame) => {
    'worklet'
    // console.log(`Frame: ${frame.width}x${frame.height} (${frame.pixelFormat})`)
    // console.log(`Running inference on ${frame}`);

    // Send the frame to the backend when captured
     runAsync(frame, () => {
      'worklet'
      runAtTargetFps(5,  () => {
        'worklet'
        try {
          console.log('Frame sent successfully:', frame);

          const response =   axios.post('http://<IP_ADDRESS>:5000/predict', {
            frame
          });
          console.log('Frame sent successfully:', response.data);
        } catch (error) {
          console.error('Error sending frame to backend:', error);
        }
      })
    })

  }, []);

  return (
    <View style={styles.container}>
      {loading ? (
        <Text style={styles.text}>Loading...</Text>
      ) : !cameraPermission || !microphonePermission ? (
        <Text style={styles.text}>
          Please grant camera and microphone permissions to use the app.
        </Text>
      ) : !cameraDevice ? (
        <Text style={styles.text}>No camera device available.</Text>
      ) : (
        <Camera
          frameProcessor={frameProcessor}
          style={styles.camera}
          device={cameraDevice}
          isActive={true}
        />
      )}
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
  text: {
    fontSize: 24,
    fontWeight: 'bold',
    textAlign: 'center',
  },
  camera: {
    flex: 1,
    width: '100%',
  },
});

export default App;

Relevant log output
ERROR  Error sending frame to backend: [Error: Exception in HostObject::getPropertyNames: com.mrousavy.camera.core.FrameInvalidError: [capture/frame-invalid] Trying to access an already closed Frame! Are you trying to access the Image data outside of a Frame Processor's lifetime?
- If you want to use `console.log(frame)`, use `console.log(frame.toString())` instead.
- If you want to do async processing, use `runAsync(...)` instead.
- If you want to use runOnJS, increment it's ref-count: `frame.incrementRefCount()`]

Camera Device
<Camera
          frameProcessor={frameProcessor}
          style={styles.camera}
          device={cameraDevice}
          isActive={true}
        />

Device
samsung a10s
VisionCamera Version
"^3.9.0",
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information

[ ] I am using Expo
[X] I have enabled Frame Processors (react-native-worklets-core)
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

Yes exactly the same issue i am facing

Multiple things:

Format your code properly. It is impossible to read it this way.
The error message tells you exactly what your problem is:[capture/frame-invalid] Trying to access an already closed Frame! Are you trying to access the Image data outside of a Frame Processor's lifetime?
- If you want to use `console.log(frame)`, use `console.log(frame.toString())` instead.
- If you want to do async processing, use `runAsync(...)` instead.
- If you want to use runOnJS, increment it's ref-count: `frame.incrementRefCount()`

what is not clear about this?
Uploading a Frame like this directly doesn't just work. You'd need to properly convert it to some format before, e.g. to binary (frame.toArrayBuffer()) or encoding it to a smaller size using a native frame processor plugin (eg video encoder).

Overall, this is a pretty complex thing to do, uploading all frames to an axios backend at 30 FPS will probably explode your backend unless you do it properly.


Can't seem to use < symbol anywhere without getting an unhandled rejection

Example.md
<= 5 or <1

Unfortunately this is by design in MDX, you can test it here: https://mdxjs.com/playground.
A workaround is to explicitly make it a string:
{'<= 5 or <1'}

Ahh that makes sense. I'm using 2.0x beta with regular.md files.

@shuding Note: mdx 2 can differentiate between .md files for markdown and .mdx files for MDX.
If that’s not happening here, then that’s probably something you can add to nextra?

(and perhaps the unhandled rejection can also be cleaner?)

This would be very beneficial imo. This took a very long time to debug simply because it kept crashing.


flash attention, and a potentially better improvement

hello! sorry to bother you, but considering flash attention isnt currently compatible with relative positional embeddings - do you intend to work around that or update the codebase?
the implementation i came up with last night (before there was a git lol) turned out to be quite a bit different than this one. i wound up trying to adapt it to a t5, theres still more work to be done but there may be space in there to utilize the flash attention stuff, especially considering the alternate ways that ive got in there to adapt/simulate relative positional embeddings. figured id link it for you to look at in case something happened to be useful to you, i found your github acc last night and its going to be wildly useful to me so im just wanting to return the favor as best i can :)
https://github.com/Alignment-Lab-AI/RMT5-HYENA

@Alignment-Lab-AI oh hey! so i was planning on a rotary embedding solution, which flash attention would be compatible with. just need to make sure the memory has sufficient distance from the main sequence positions

yea i have, but i haven't seen any breakout SOTA results from the state spaces line of research yet, despite the hype. until then, i will probably stick with attention

@Alignment-Lab-AI for hyena, i will probably give it a try for genomics later this year, but if it doesn't work on the first try, just turn to hierarchical attention

i was planning on implementing it as a second head too, ill let you know if anything crazy happens!

ok rotary added! closing the issue


Added paragraph about Gifford lab at MIT CSAIL.

Added a blurb about our lab to the users page.

Hi Matt,
Thanks so much for taking the time to fix a bunch of issues lately and taking the time to write this up, we really appreciate it.


Fix typings

Closes #2
Closes #18
See #18 for context
setLocale types are missing as haven't found how it should work anywhere
I tested it locally on my project using it and seems it works. I run the demo examples and they're working too.
If you have a way to test it further on your own, please do

Done

TYSM for these changes. I'll give it a go and see if everything is working for me :)

@junedchhipa would it be possible to get this tagged please? Installing via commit is not working (probably me doing something wrong).

I will release a new version very soon (in the next 24-48 hours)

I will release a new version very soon (in the next 24-48 hours)

Smashing, glad to hear it! :)


How to enable GPU or CPU?

Hi there.
How can I define the device to use? I'm using it as a library with Python.

vc = VC()

vc.config.use_cuda()     # For GPU using CUDA
vc.config.use_cpu()      # For CPU

vc.get_vc(model_path)

I've also tested this code on AMD GPUs and it doesn't work, make sure you have an NVIDIA GPU and you have it's drivers and CUDA installed.

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

Thanks!
I also noticed that it automatically uses the GPU if Torch for CUDA is installed, I was unsure about it being installed or not in this project, that's why I was unsure about the GPU.
But your answer is very useful! :D


Added setOnTintColor: Override

Fixes the situation where theTintColor can't be changed programmatically once the switch already been drawn to the screen.

Thank you!


I get the error "task not found".

I'm currently using the ESP32-WROOM-32E to start off with a simple continuous rotation, but the following message is continually displayed on the serial monitor, and the motor shows no signs of moving at all.
「task_wdt: esp_task_wdt_reset(763): task not found」
What's wrong?

By the way, even when I tried the code from issue #289, the situation did not change.

I have seen the past issues.
Will using ”FastAccelStepper v0.31.2” solve the problem?

You can give it a try.

As this was my first time using PlatformIO, it took some time, but when I used "FastAccelStepper v0.31.2" with PlatformIO, I was able to turn the motor.
Is there a problem with the Arduino IDE that the latest version of the FastAccelStepper library does not appear in the Arduino IDE?

As written at the top of the readme:
BE AWARE: ARDUINO LIBRARY MANAGER IS BROKEN AND 0.29.x/0.30.x with x>0 do not show.
No issue with platformio. Check the related issue for the arduino library manager

I've just started using microcomputer control, so I didn't realize it and didn't know how to use it.
I'm sorry.


Support async ??

Does the load function support async and can return an task action result?

In async actions, create a Task manually:
public Task<object> Orders(DataSourceLoadOptions loadOptions) {
    return Task.FromResult<object>(DataSourceLoader.Load(_nwind.Orders, loadOptions));
}

public Task<object> Orders(DataSourceLoadOptions loadOptions) {
    return Task.Run<object>(() => DataSourceLoader.Load(_nwind.Orders, loadOptions));
}

public Task<IActionResult> Orders(DataSourceLoadOptions loadOptions) {
    return Task.Run<IActionResult>(() => Content(
        JsonConvert.SerializeObject(DataSourceLoader.Load(_nwind.Orders, loadOptions)),
        "application/json"
    ));
}

Currently, there is no built-in support for async in the library.

That is a really big issue!! Provided answer does not really help since it is an antipattern - Sync over async. This library really need async overloads. Please look into this and reopen the ticket.

Hello @MateuszBogdan
I agree that fake async is an anti-pattern.
However, to implement a generic API that is truly async down to the database, we need something like IAsyncQueryable (https://github.com/dotnet/corefx/issues/34161, https://github.com/dotnet/roslyn/issues/32569) along with proper support in LINQ providers.
Today, async query methods, such as CountAsync, are provider-specific:

EF6 QueryableExtensions
EF Core QueryableExtensions
NHibernate LinqExtensionMethods

Did you encounter a real-life case in which the lack of async becomes a bottleneck? What is the workload type (Web API, etc)?

P.S. Despite aforementioned limitations, I filed a new ticket #337.
We'll research whether it's possible to take advantage of existing async capabilities.

I am looking to switch from Telerik to DevExpress. Their ToDataSourceResult() method seems to support async. Is there a reason that they are able to do it and not DevExpress? Is it because you work with more systems or something? Maybe a review of their code to see how they do it? thank you, DevExpress is looking like a nice alternative.

@pwen090
We'll add support for async very soon. It's currently work in progress. Subscribe to #337 to be notified when it's released.
Thank you!


'Photoview'  class can not import

I added dependency  in my gradle file but still can't find the class 'uk.co.senab.photoview'
dependencies {
compile 'com.commit451:PhotoView:1.2.4'
}
Is there any change in version  or in lib?

Do you have jcenter in your outermost build.gradle?


bug/diacritics

Describe the bug
when using languages with diacritics it removes them or it changes the letter. e.g: día changes to dfa
To Reproduce
from unstructured.partition.auto import partition
elements = partition("document_in_spanish.pdf", ocr_languages="es")
for element in elements:
if isinstance(element, NarrativeText) and sentence_count(element.text) > 2:
print(element.text)
print("\n")
Expected behavior
It should not remove diacritics and recognize them
Screenshots

Desktop (please complete the following information):

macos
Python version 3.10

Besides that, save_as_jsonl neither does preserve diacritics:
def save_as_jsonl(data: List[Dict], filename: str) -> None:     with open(filename, "w+", encoding='utf-8') as output_file:         output_file.writelines(json.dumps(datum, ensure_ascii=False) + "\n" for datum in data)

@ginixsan - Thanks for flagging this issue. Is there an example document you can attach that we could use for testing?


[responsive support] Knob is displayed only after window has been resized

Hello,
I have the following issue with knobs added dynamically:
Setting a fixed width shows my knobs like it should, but setting 'width': '50%' only shows the knobs when the window is resized.
Console shows that the Knob's canvas width is set to 0px until I am resizing the windows.
FYI, I'm using twitter bootstrap and Jquery Knob is in version 1.2.11
Thanks for your help.

You can do this:
$(window).trigger('resize');

Possibly wrap it in a setTimeout:
setTimeout(function () {
    $(window).trigger('resize');
}, 100);

This is annoying, but only a little, and it works.


chore: migrate to nano-staged

Benchmarks running time for 10 file:
$ node bench/running-time/index.js
- lint-staged 1.394 ms
+ nano-staged 0.968 ms

The space in node_modules including sub-dependencies:
$ node bench/size/index.js
Data from packagephobia.com
- lint-staged   6688 kB
+ nano-staged     47 kB

Thanks, but I'm worried about the future maintenance of nano-stage. The improvement is not so critical. Let's keep using lint-staged for now.


Add extend_with_default method

Intend is to make validator set default properties on mappings; It seems like an extremely common request

I'd be happy to also write tests covering this new method, however right now I'm having some troubles setting up test pipeline locally, and also want to understand your general reaction on such method proposal
Pls contact me, if there is something I can do to enforce such helper appearing in your project

Hi! Thanks, much appreciated!
This is indeed a common request, so common it appears in jsonschema's FAQ
Just making sure you've seen it there hopefully?
In general as that answer alludes to, I haven't wanted to add this to jsonschema itself essentially for 2 reasons -- this library stays close to the specification, and this behavior isn't part of the spec's behavior, and relatedly or perhaps even because of the above, it's significantly different behavior from any other validator "built-into" jsonschema.
There also are a number of choices someone may make here in terms of how they want this to work (e.g. should the value included in default be required to validate under the schema? Should the value there be processed before/after required? etc.)
So in short I'd absolutely love to see this and other related useful things become part of some higher level libraries on top of jsonschema.
Hope that makes sense? Lemme know what you think.

Closing but happy to discuss further if you have any comments on the above!


Fix shellcheck issues

https://github.com/openxla/stablehlo/pull/1971 introduced a shellcheck lint. However, it also introduced some bugs due to adding quotes in a few places where word splitting was used.
Thanks to gleasonk@ for spotting this: https://github.com/openxla/stablehlo/pull/1976
As described in https://www.shellcheck.net/wiki/SC2086, quoting is generally preferable when expanding a variable. However, when building a command line it is better to create an array and then expand the array. When using a regular variable, quoting can actually lead to incorrect behavior: for example, given x="file1 file2", clang-format $x will correctly call clang-format on file1 and file2, however clang-format "$x" will call clang-format on a non-existent file called file1 file2.
The lint itself was actually broken because of using -printf '%P\0' with find. This produces null-delimited output, which mapfile does not expect and does not parse correctly (only the first file name will be extracted). (While implementing the check I thought I needed to use printf to remove the the ./ prefix introduced by find, but turns out that's not the case).
While investigating this change I discovered that the whitespace lint check is also subtly broken. Indeed in get_source_files xargs is used at the end of the pipeline, which puts everything on one line, which causes subsequent uses of xargs -L1 to behave incorrectly (the underlying command is executed only once with all files as arguments).

I got in the habit of writing my build scripts in Ruby lately to avoid some of this complexity.
:)


Crossing legs - no collision

I accidentally submitted this: https://www.crowdai.org/challenges/31/submissions/9380
As you can see, the right leg went through the standing left one. In (future) 3D scenarios this may become an issue and could yield unwanted results even if the reward is good (theoretically).
I know, the physics of this model is slow but is there any plan to address collision within the body?

This was a conscious choice for simplifying the model. We will design the objective in such a way that the leg-crossing will be suboptimal.
Thanks for reporting, this already raised some confusion, so we will update the docs.


Using different tables of Cassandra for sharding coordinator

Hi @krasserm,
In the latest version of Akka 2.4 we have the option to specify a journal-plugin-id and snapshot-plugin-id. With this option it might be possible to use the same Cassandra persistence plugin but using different tables. I was trying to do it by creating a similar configuration to the current cassandra-journal that it's currently using the CassandraJournal class but later I found that  it takes the configuration only for 'cassandra-journal' configuration key as you can see here and there is no way to specify another configuration file. The same is happening with CassandraSnapshotStore class.
So I forked the project and I created a solution for this that we are currently using in our project. You can take a look at the changes in this comparison.
I'm using this new feature in a demo project by extending CassandraJournal and CassandraSnapshotStore and specifying the custom trait for the plugin configuration.
If it looks good to you I can create a Pull Request for this changes.
Thanks,
Gabi.

In 2.4 the plugin may have a constructor with a Config parameter, which corresponds to the config section that the user has defined. So instead of reading config from hardcoded "cassandra-journal", you can use the config parameter. I'm not sure that will help you in any way.

Can you specify where @patriknw? The main reason I introduced this changes is because I want to use the same classes CassandraJournal and CassandraSnapshotStore but with different configurations, otherwise I have to create my own class when the only thing I need is just to specify another table name for cluster sharding.
Thanks,
Gabi.

CassandraJournal should be defined as:
class CassandraJournal(cfg: Config) extends AsyncWriteJournal with CassandraRecovery with CassandraConfigChecker with CassandraStatements {

  val config = new CassandraJournalConfig(cfg)

Same with CassandraSnapshotStore

Ok got it now. Anyway this means that we need changes in the Cassandra plugin. The only difference I see is that currently the class is using the config from the context of the Actor System of the actor AsyncWriteJournal and with this new constructor the configuration is taken from the outside, I'm not sure if this might be a problem.

I'm not sure I have understood what you are trying to solve, but the config constructor parameter makes it possible to use more than Cassandra plugin and each can have its own configuration. Sorry if you are trying to solve something else. I should probably open my own issue, and fix it.

I think that with the Config as a parameter of the class we should be able to get our stuff working (not present in version 0.4). Anyway we are good with the current changes that we introduced. They are in the fork commented above if someone is interested.
I close this issue now.
Thanks,
Gabi.

New issue: https://github.com/krasserm/akka-persistence-cassandra/issues/115


POJOs are not Beans

Please don't use them interchangeably. https://www.martinfowler.com/bliki/POJO.html

lol. not gonna argue, but will make some needed edits over your check in.
congratulations, you are now a committer on Karate :P


Cleanup values.rs trying to make the code clearer

Some NonNull usage was more a nuisance than useful, NonNull is mostly used as a field of a struct to maintain covariance, and here it doesn't really bring anything useful other than adding more lines of code.
There was also a arena alloc with 1 field less on the arrays, i tested if that fixed some stuff from the integrations currently ongoing but it didn't, nevetherless it's a fix.
The cleanup is mainly removing dirty casts and pointers to int to proper methods which maintain pointer provenance, for example instead of casting a ptr of T to a usize to add an offset, we simply use the ptr.bytes_add method, which gives us a pointer offseted by the given bytes.
Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report
Attention: Patch coverage is 65.00000% with 21 lines in your changes missing coverage. Please review.

Project coverage is 91.47%. Comparing base (6388865) to head (88312cb).

Files
Patch %
Lines

src/values.rs
65.00%
21 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #700      +/-   ##
==========================================
+ Coverage   91.42%   91.47%   +0.04%
==========================================
  Files         118      118
  Lines       32357    32348       -9
==========================================
+ Hits        29582    29589       +7
+ Misses       2775     2759      -16

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Selecting DayView Programatically

Hi Eugene,
I am implementing this calendar in my app, where a tableView shows the events of each day.
Looking at some other day planner apps , I thought it would be a good idea if i can change the dayView of the calendar (as the user scrolls down the tableView) to the appropriate day.
I tried to modify your implementation to do this, but am not able to.
It would be great if you can point me in the right direction to achieve this.

The implementation should be in your tableview, since that can hardly be added in the calendar. So if you catch the moment the calendar should switch while scrolling your tableview, just call: self.calendarView.toggleViewWithDate(newdate)
You can rewrite the extension to add month to days


ExpandoObject property doesn't exist

I'm trying something different based on something you mentioned in the last issue I posted, so I thought I'd post this in a separate thread.
I need to do some OData lookups; as a result, my Utils object is now non-static and has a constructor so I can cache some things, etc.. This object is called utils and my ExpandoObject is input1.
When I run the rules engine, my code looks like this:
foreach (var entity in entities)
{
    var serializer = new DynamicTableEntityJsonSerializer();
    var converter = new ExpandoObjectConverter();

    //serialize the entity as JSON, then deserialize as an ExpandoObject
    var data = serializer.Serialize(entity);
    dynamic input1 = JsonConvert.DeserializeObject<ExpandoObject>(data, converter);

    foreach (var rule in workflowRules)
    {
        List<RuleResultTree> results;
        try
        {
            results = engine.ExecuteRule(rule.WorkflowName, new RuleParameter("utils",utils),new RuleParameter("input1",input1));
        }
        catch (Exception e)
        {
            log.LogError($"[{tableName}] {e.GetType()}: {e.Message}\r\n{e.StackTrace}");
            throw new ApplicationException($"An exception was thrown in the rules engine at row {row} for {tableName}. Check the rules and try again.");
        }

        foreach (var result in results)
        {
            if (result.IsSuccess) continue;

            var sb = new StringBuilder();
            sb.AppendLine($"{rule.WorkflowName}.{result.Rule} encountered an error in row {row}: {result.ExceptionMessage}");
            var msg = result.GetMessages();
            foreach (var warn in msg.WarningMessages)
            {
                sb.AppendLine($"Warning: {warn}");
            }

            foreach (var errorMessage in msg.ErrorMessages)
            {
                sb.AppendLine($"Error: {errorMessage}");
            }
            log.LogError(sb.ToString());
            log.LogError($"processing for {tableName} will now stop due to errors.");
            throw new ApplicationException($"Processing for {tableName} stopped because rule {result.Rule.RuleName} failed to pass.");
        }
    }

    row++;
}

Currently, I'm getting an error that says ConsItemPricePurchEntity.RulesEngine.Models.Rule encountered an error in row 1: No property or field 'ELEMENTNAME' exists in type 'ExpandoObject'. When I look, the ELEMENTNAME` field is there with a non-null value.
So two questions:

is it allowable to pass in a utility object in this manner?
is this exception part of an error?

Thanks!

The rules:

[
  {
    "WorkflowName": "ConsItemPricePurchEntity",
    "Rules": [
      {
        "RuleName": "VendorPartyNumberExists",
        "SuccessEvent": "10",
        "WarningMessage": "Vendor party number does not exist in Dynamics",
        "ErrorType": "Warning",
        "RuleExpressionType": "LambdaExpression",
        "Expression": "utils.ElementNameExists(input1.ELEMENTNAME) == true"
      },
      {
        "RuleName": "BuildingTypeIdExists",
        "SuccessEvent": "15",
        "WarningMessage": "BuildingTypeId doesn't exist in Dynamics",
        "ErrorType": "Warning",
        "RuleExpressionType": "LambdaExpression",
        "Expression": "utils.BuildingTypeIdExists(input1.BUILDINGTYPEID) == true"
      }
    ]
  }
]

So two questions:
* is it allowable to pass in a utility object in this manner?

Yes it is fine to pass utility this way

* is this exception part of an error?

The exception was fixed as a part of v2.1.0 - https://github.com/microsoft/RulesEngine/pull/33
For version 2.0.0, you can fix it by calling our utility function while passing RuleParameter
var typedInput1 = RulesEngine.HelperFunctions.Utils.GetTypedObject(input1);
results = engine.ExecuteRule(rule.WorkflowName, new RuleParameter("utils",utils),new RuleParameter("input1",typedInput1));

When using version 2.1.0 of the library, I execute this:
results = engine.ExecuteRule(rule.WorkflowName, new RuleParameter("utils",utils),new RuleParameter("input1",input1));

I get this:
System.ArgumentNullException: Value cannot be null. (Parameter 'input')
   at System.Text.RegularExpressions.Regex.Matches(String input)
   at System.Text.RegularExpressions.Regex.Matches(String input, String pattern, RegexOptions options, TimeSpan matchTimeout)
   at System.Text.RegularExpressions.Regex.Matches(String input, String pattern)
   at RulesEngine.RulesEngine.FormatErrorMessages(IEnumerable`1 result)
   at RulesEngine.RulesEngine.ExecuteRuleByWorkflow(String workflowName, RuleParameter[] ruleParameters)
   at RulesEngine.RulesEngine.ValidateWorkflowAndExecuteRule(String workflowName, RuleParameter[] ruleParams)
   at RulesEngine.RulesEngine.ExecuteRule(String workflowName, RuleParameter[] ruleParams)
   at SM.Integration.Repos.BRE.RulesProcessor.ProcessRules() in C:\dev\sm\develop-lucas\dmvalidator-d365\SM.Integration.Repos\BRE\RulesProcessor.cs:line 92

I also tried running it without the RuleParameter wrapper for the arguments, and I get the same error.
If I roll back to version 2.0.0, I get the ExpandoObject error when I use the RuleParameter arguments; when I take them off and pass in the parameters 'raw', it complains that utils does not have a property called ELEMENTNAME.

@elvogel Can you please explain why WarningMessage is being used in your Rule instead of ErrorMessage property?

I was toying with having the rule emitting a warning instead of an error.

This issue is resolved in v2.1.1


Private leaderboard percentiles for each individual competition

Hello, thank you for your team's great work.
I'm wondering if you can provide the private leaderboard percentiles for each individual competition?
Thanks in advanced!
Boran

Yes, please can you share the scores or the private leaderboard percentile rank which were eventually used for the claimed number for outperforming 50% of humans. Are the python files in https://github.com/WecoAI/aideml/tree/main/sample_results enough to reproduce those numbers? I understand that these numbers are an average over 12 submissions.
@ZhengyaoJiang this was also requested earlier in https://github.com/WecoAI/aideml/issues/4#issuecomment-2138567087
Even sharing some raw results would be helpful to understand the performance of WecoAI. I checked OpenAI's MLE-bench but that doesn't seem to report any numbers either.

I tried submitting based on the provided code, it gets me extremely bad results.
For example for the competition https://www.kaggle.com/competitions/tabular-playground-series-apr-2021/ by using the code, I made this submission (https://www.kaggle.com/code/anirudhdagar/aide-solution-tabular-playground-series-apr-2021) only to get a private lb score of 0.70524 (which places me 1192/1250 on the leaderboard) which means only 4.64%.

I tried submitting based on the provided code

this is an example output, might be different from the final submission to Kaggle, also you can try with different large language models and other metrics in the config


Create a triangular solver

Triangular solves are a core task of many more advanced matrix algorithms. We want to implement.

A simple serial triangular solve.
A multithreaded triangular solve using a threadpool.

The multithreaded version also requires serial triangular solves. So it is natural that both needs to be done.
A precondition for this issue is a decision on the parallelization framework in #11 .

Once we have a triangular solver, I might be motivated to implement a dense LDL (https://en.wikipedia.org/wiki/Cholesky_decomposition#LDL_decomposition) decomposition, to solve linear systems Ax=b, with A being positive semi-definite.

Sounds good. My goal for Householder is that eventually we have modern task based algorithms for all decompositions. For LDL^T see for example (https://hal.inria.fr/hal-00809663/document). However,

we still want single core algorithms as well (lots of problems where you want to do small decompositions within a thread and not have your linear algebra spread out of all threads)
Also for parallel algorithms we usually need to single core versions as components.


Replace existing file(s) doesn't work

Replace existing file(s) doesn't work, every time create a new json file

Hmm. I just tried a quick export with Replace existing file(s) enabled and it seemed fine. What options are you using?

Closing the issue for now as I haven't been able to replicate it.


doc: PoC to edit smart contracts on the L1

close #1
The primary purpose of this branch is to be a place to store the changes necessary to edit the docker image zkevm-contracts. If we actually want to merge this PR into main then we should first revert changes to docker/zkevm-contracts.Dockerfile and params.yml so that future users on main branch aren't forced to rebuild zkevm-contracts.
New doc explains this PoC: https://github.com/EspressoSystems/kurtosis-cdk/blob/1ac841ac38ef899f483d22f0cf71e526fa019b79/docs/edit-contracts.md
Unsolved mystery
If I modify verifyProof so that it always returns false then I expect every batch to fail verification in the devnet. However, it seems from my local tests that batches still successfully verify. I don't know why. 😕 Perhaps this PR modifies the wrong Solidity code.

This is the error I get @ggutoski:

$ docker login ghcr.io --username philippecamacho --password xxxxx

WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/leloup/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credential-stores
Login Succeeded

$ kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always .
INFO[2024-08-16T10:00:34-04:00] Executing Starlark package at '/home/leloup/repositories/espressosys/kurtosis-cdk' as the passed argument '.' looks like a directory
INFO[2024-08-16T10:00:34-04:00] Compressing package 'github.com/0xPolygon/kurtosis-cdk' at '.' for upload
INFO[2024-08-16T10:00:34-04:00] Uploading and executing package 'github.com/0xPolygon/kurtosis-cdk'
There was an error validating Starlark code
Error while validating instruction get_services(). The instruction can be found at github.com/0xPolygon/kurtosis-cdk/observability.star[47:37]
Caused by: Service 'grafana-001' required by 'get_services' instruction doesn't exist
There was an error validating Starlark code
Error while validating instruction get_services(). The instruction can be found at github.com/0xPolygon/kurtosis-cdk/observability.star[65:37]
Caused by: Service 'grafana-001' required by 'get_services' instruction doesn't exist

Error encountered running Starlark code.
⭐ us on GitHub - https://github.com/kurtosis-tech/kurtosis
Name:            cdk-v1
UUID:            a1958b7be532
Status:          RUNNING
Creation Time:   Fri, 16 Aug 2024 09:57:01 -04
Flags:
========================================= Files Artifacts =========================================
UUID   Name
========================================== User Services ==========================================
UUID   Name   Ports   Status

This is the error I get @ggutoski:

Why did you do the docker login command? I don't recall needing it.

There was an error validating Starlark code
Error while validating instruction get_services(). The instruction can be found at github.com/0xPolygon/kurtosis-cdk/observability.star[47:37]
Caused by: Service 'grafana-001' required by 'get_services' instruction doesn't exist

Strange. I have no idea why you observe this. I investigated but can't find anything. 😕
As a workaround you could disable observability by setting deploy_observability: false in params.yml. But then you can't use the grafana dashboard to view your devnet.

This is the error I get @ggutoski:

Why did you do the docker login command? I don't recall needing it.

There was an error validating Starlark code
Error while validating instruction get_services(). The instruction can be found at github.com/0xPolygon/kurtosis-cdk/observability.star[47:37]
Caused by: Service 'grafana-001' required by 'get_services' instruction doesn't exist

Strange. I have no idea why you observe this. I investigated but can't find anything. 😕
As a workaround you could disable observability by setting deploy_observability: false in params.yml. But then you can't use the grafana dashboard to view your devnet.

Without docker login I get the following error:
leloup@leloup-Legion-7-16ITHg6:~/repositories/espressosys/kurtosis-cdk$ kurtosis clean --all
INFO[2024-08-16T16:34:39-04:00] Cleaning old Kurtosis engine containers...
INFO[2024-08-16T16:34:39-04:00] Successfully cleaned old Kurtosis engine containers
INFO[2024-08-16T16:34:39-04:00] Cleaning enclaves...
INFO[2024-08-16T16:34:41-04:00] Successfully removed the following enclaves:
2fccd1509c804b518b0e801bad01e346	cdk-v1
INFO[2024-08-16T16:34:41-04:00] Successfully cleaned enclaves
INFO[2024-08-16T16:34:41-04:00] Cleaning unused images...
INFO[2024-08-16T16:34:41-04:00] Successfully cleaned unused images
leloup@leloup-Legion-7-16ITHg6:~/repositories/espressosys/kurtosis-cdk$ kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always .
INFO[2024-08-16T16:34:44-04:00] Creating a new enclave for Starlark to run inside...
INFO[2024-08-16T16:34:46-04:00] Enclave 'cdk-v1' created successfully
INFO[2024-08-16T16:34:46-04:00] Executing Starlark package at '/home/leloup/repositories/espressosys/kurtosis-cdk' as the passed argument '.' looks like a directory
INFO[2024-08-16T16:34:46-04:00] Compressing package 'github.com/0xPolygon/kurtosis-cdk' at '.' for upload
INFO[2024-08-16T16:34:47-04:00] Uploading and executing package 'github.com/0xPolygon/kurtosis-cdk'
There was an error validating Starlark code
Error while validating final environment of script
	Caused by: Failed fetching the required image 'local/zkevm-contracts:fork9'.
	Caused by: An error occurred pulling image 'local/zkevm-contracts:fork9'
 --- at /home/circleci/project/container-engine-lib/lib/backend_impls/metrics_reporting/metrics_reporting_kurtosis_backend.go:38 (MetricsReportingKurtosisBackend.FetchImage) ---
Caused by: An error occurred fetching image 'local/zkevm-contracts:fork9'
 --- at /home/circleci/project/container-engine-lib/lib/backend_impls/docker/docker_manager/docker_manager.go:1310 (DockerManager.FetchImage) ---
Caused by: Failed to pull Docker image 'local/zkevm-contracts:fork9' from remote image repository.
 --- at /home/circleci/project/container-engine-lib/lib/backend_impls/docker/docker_manager/docker_manager.go:1288 (DockerManager.FetchLatestImage) ---
Caused by: Tried pulling image 'local/zkevm-contracts:fork9' but failed
 --- at /home/circleci/project/container-engine-lib/lib/backend_impls/docker/docker_manager/docker_manager.go:1641 (DockerManager.pullImage) ---
Caused by: Tried pulling image 'local/zkevm-contracts:fork9' with platform '' but failed
 --- at /home/circleci/project/container-engine-lib/lib/backend_impls/docker/docker_manager/docker_manager.go:2301 (pullImage) ---
Caused by: Error response from daemon: pull access denied for local/zkevm-contracts, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Container images used in this run:
> sigp/lighthouse:v5.2.0 - remotely downloaded
> grafana/grafana-enterprise:11.1.0 - remotely downloaded
> hermeznetwork/zkevm-pool-manager:v0.1.0-RC1 - remotely downloaded
> badouralix/curl-jq - remotely downloaded
> minhdvu/panoptichain:0.1.47 - remotely downloaded
> postgres:16.2 - remotely downloaded
> ghcr.io/0xpolygon/cdk:0.0.9 - remotely downloaded
> prom/prometheus:latest - remotely downloaded
> ghcr.io/agglayer/agglayer-rs:main - remotely downloaded
> hermeznetwork/zkevm-bridge-service:v0.4.2 - remotely downloaded
> python:3.11-alpine - remotely downloaded
> haproxy:2.9.9-bookworm - remotely downloaded
> local/zkevm-contracts:fork9 - locally cached
> ethereum/client-go:v1.14.0 - remotely downloaded
> 0xpolygon/cdk-data-availability:0.0.7 - remotely downloaded
> ethpandaops/ethereum-genesis-generator:3.1.0 - remotely downloaded
> protolambda/eth2-val-tools:latest - remotely downloaded
> leovct/zkevm-bridge-ui:multi-network - remotely downloaded
> hermeznetwork/cdk-erigon:2.0.0-beta15 - remotely downloaded
> hermeznetwork/zkevm-prover:v6.0.3-RC20 - remotely downloaded

Error encountered running Starlark code.

⭐ us on GitHub - https://github.com/kurtosis-tech/kurtosis

This is after successfully running kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always . on the main branch.

Without docker login I get the following error:
...
This is after successfully running kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always . on the main branch.

Thanks for following up @philippecamacho ! I suggest you wait until I've updated this PR to correct the issues you identified in our earlier discussion. Hopefully that will clear it up. 🤞
At first glance it looks like you're still trying to pull the docker image local/zkevm-contracts from a remote repository. Did you build it locally first?
	Caused by: Failed fetching the required image 'local/zkevm-contracts:fork9'.
	Caused by: An error occurred pulling image 'local/zkevm-contracts:fork9'

@philippecamacho @akonring ready for re-review.

This branch edit-contracts has been force-pushed. You need to replace your local version of this branch with what's in github. Apparently there's no idiomatic way to do this (!) but I found this method works well: https://stackoverflow.com/a/22021513
This branch now contains only the doc docs/edit-contracts.md, so everything should work fine if you checkout this branch and follow instructions in the doc.
There's a new, separate branch edit-contracts-demo that contains all changes listed in this doc. That new branch is optional: you can make the changes manually as instructed in the doc, or you can find them pre-made for you in edit-contracts-demo. There will be no PR for edit-contracts-demo.

@akonring responding to your comments:

Latest changes in 0xPolygon/kurtosis-cdk seem to introduce cdk-erigon as the default sequencer. This seems like a bigger change and we might benefit from merging those changes from upstream (syncing).

Thanks! I've synced our fork with upstream. If we continue to use this fork then we should make an effort to keep in sync with upstream.

We do have an espresso fork of the cdk-validium-contracts. We could consider adding this as git submodule if we want to make kurtosis the “integration” repo.

The preferred repo is https://github.com/0xPolygonHermez/zkevm-contracts , not cdk-validium-contracts.
For now I see no need for a git submodule, as the doc in this PR suggests only trivial changes to that repo. I agree that we might consider a git submodule in the future if we continue to use this fork of kurtosis-cdk and we make nontrivial changes to zkevm-contracts. Thanks for the suggestion!

The deploy parameters make sure that that a Verifier Mock is deployed instead of the real FflonkVerifier (see code here). The corresponding configuration for kurtosis-cdk seems to be provided here. The aggregator is set up such that it generates a fake proof which is “verified” by the mock.
Thus, we can likely observe the verification fail in test by changing the mock at docker/local-test-zkevm-contracts/contracts/mocks/VerifierRollupHelperMock.sol and let it return false.

 I noticed the mock at the very beginning but then completely ignored it. Thank you for diagnosing this issue. Indeed, the problem is now solved and I've updated the doc in this PR.

LGTM.

The preferred repo is https://github.com/0xPolygonHermez/zkevm-contracts , not cdk-validium-contracts.

Great. Good that we surfaced that.


Fix csh setup

@tudortimi does this cover all the changes in 63, 64 and 65 as well?

It does, but I think the proper way is to merge each separately. I still have to read up a bit on how such situations are best handled (multiple pull requests that build on each other).

If you pull them in order, you should get less and less diffs to review, as more stuff makes it onto master.


Acknowledgeable should be able to handle Consumers that throw

Describe the feature
There's currently several methods on Acknowledgeable for handling filtering, mapping, and consuming. One new case I've run in to is the need to consume a data item with a method that throws a checked Exception.
Rational
Rather than having to deal with wrapping/unwrapping Exceptions, it should be possible to just nacknowledge an Acknowledgeable with any thrown Throwable.
Example Scenario
I want to consume Acknowledgeable<T> with the following:
public void doSomething(T t) throws Throwable {
    throw new IOException();
}

as:
try {
    acknowledegable.throwingConsume(t -> doSomething(t), Acknowledgeable::acknowledge);
} catch (Throwable error) {
    acknowledgeable.nacknowledge(error);
}

Addressed via #52


What if new configurations aren't found in config file?

We do override files now during --testing, and there's also an --enforced option
#95


Azure pipelines tasks "AzureFunctionAppV1" not support .NET 7

Note
I like to do a feature requests for Azure pipelines tasks "AzureFunctionAppV1" to make it possible to support .NET 7. Are there any plans to do this?

Previous bug it was solved and @FinVamp1 mention this will be automatic. I think this is not yet made, so therefor I open a new ticket to update it to .net 7.

Required Information
Question, Bug, or Feature?
Type: Feature
Enter Task Name: AzureFunctionAppV1
Environment

Server - Azure Pipelines or TFS on-premises?
Azure Pipelines

Issue Description
[Include task name(s), screenshots and any other relevant details]
We are looking to support .net 7 Azure function (In-Process). But the task does not support this yet. See below.
        {
            "name": "runtimeStack",
            "type": "pickList",
            "label": "Runtime stack",
            "defaultValue": "",
            "required": false,
            "properties": {
                "EditableOptions": "True"
            },
            "options": {
                "DOTNET|2.2": "DOTNET|2.2 (functionapp v2)",
                "DOTNET|3.1": "DOTNET|3.1 (functionapp v3)",
                "DOTNET|6.0": "DOTNET|6.0 (functionapp v4)",
                "JAVA|8": "JAVA|8 (functionapp v2/v3/v4)",
                "JAVA|11": "JAVA|11  (functionapp v3/v4)",
                "NODE|8": "NODE|8 (functionapp v2)",
                "NODE|10": "NODE|10 (functionapp v2/v3)",
                "NODE|12": "NODE|12 (functionapp v3)",
                "NODE|14": "NODE|14 (functionapp v3/v4)",
                "NODE|16": "NODE|16 (functionapp v4)",
                "PYTHON|3.6": "PYTHON|3.6 (functionapp v2/v3)",
                "PYTHON|3.7": "PYTHON|3.7 (functionapp v2/v3/v4)",
                "PYTHON|3.8": "PYTHON|3.8 (functionapp v3/v4)",
                "PYTHON|3.9": "PYTHON|3.9 (functionapp v3/v4)"
            },
            "visibleRule": "appType = functionAppLinux",
            "helpMarkDown": "Refer [this doc](https://docs.microsoft.com/azure/azure-functions/functions-versions#languages) for supported runtime versions.  Old values like `DOCKER|microsoft/azure-functions-*` are deprecated, please use the new values from dropdown."
        },

Source: https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzureFunctionAppV1/task.json

Hello, we've added support for this in the v2 version of the task. https://github.com/microsoft/azure-pipelines-tasks/pull/17137 . Have you tried that?

I am closing this as we have added support in the v2 task. Please let us know if this doesn't work for you.


Regression: Intersection of array and tuple not assignable to tuple

TypeScript Version:  Nightly
Search Terms: tuple intersection array
Expected behavior:
Expected code to compile. It does compile with tsc 3.8, but does not compile with tsc 3.9 (Nightly).
Actual behavior:
In the code below, the following error is reported:
const x: [number, ...number[]]
Type 'number[] & [number, ...number[]]' is not assignable to type '[number, ...number[]]'.(2322)

Code
const y: number[] & [number, ...number[]] = [1];
const x: [number, ...number[]] = y;

Discussion
Presumably, this is related to the breaking change in 3.9 around handling of tuple types more strictly. I believe the code is correct however and should compile, because the array type number[] is a strict supertype of the tuple type [number, ...number[]] (surely?) - perhaps the special case unifying tuple types with matching element types to an array type hasn't been implemented?
Discovered by @JasonGore and @NWilson (MSFT).
Output
"use strict";
const y = [1];
const x = y;

Compiler Options
{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "useDefineForClassFields": false,
    "alwaysStrict": true,
    "allowUnreachableCode": false,
    "allowUnusedLabels": false,
    "downlevelIteration": false,
    "noEmitHelpers": false,
    "noLib": false,
    "noStrictGenericChecks": false,
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "esModuleInterop": true,
    "preserveConstEnums": false,
    "removeComments": false,
    "skipLibCheck": false,
    "checkJs": false,
    "allowJs": false,
    "declaration": true,
    "experimentalDecorators": false,
    "emitDecoratorMetadata": false,
    "target": "ES2017",
    "module": "ESNext"
  }
}

Playground Link: Provided

Also applies to 3.9.1-rc.

I believe that this is because we no longer just consider intersections to be assignable if any constituent is assignable - the type has to be compatible as a whole. @ahejlsberg made that change at https://github.com/microsoft/TypeScript/pull/37195
Is there a specific reason you had a number[] & [number, ...number[]]?

The issue here is that we lack the ability to relate a tuple type with a rest element on the target side to anything but another tuple type on the source side. In the extra check introduced by #37195, the source type is an intersection, and so the check fails. I think an easy and reasonable fix is to omit the extra check when the target is a tuple type with a rest element.

I can see it's correct that number[] won't assign to [number, ...number[]]. But the intersection checking logic should realise that the two types being interescted are not unrelated, but that the tuple is a refinement of the array.
For example, this works in Nightly:
const y: { x: 1 } & { x: number } = { x: 1 };
const x: { x: 1 } = y;

Even though { x: number } can't be assigned to { x : 1 } the checker doesn't do the thing where it requires both parts of the intersection type to be assignable to the target. So the logic is there correctly for objects; the case I ran into is the corresponding handling for an array+tuple intersection.

Is there a specific reason you had a number[] & [number, ...number[]]?

Apologies, I didn't motivate this very well! The example was perhaps too minimal.
The full code looked more like this (reworked to a vaguely minimal example). I hope you can see what was being attempted. No apologies made for the code - it is what it is - and thinking some more I can see that the types could be improved, but it's less clear what's going on in the original code which is a bit more involved.
type Checker<T> = (x: unknown) => x is T;

type NonEmptyArray<T> = [T, ...T[]];

function bothChecker<T1, T2>(c1: Checker<T1>, c2: (x: T1) => Checker<T2>): Checker<T1 & T2> {
    return (x: unknown): x is T1 & T2 => c1(x) && c2(x)(x);
}

const numChecker: Checker<number> = (x: unknown): x is number => typeof x === 'number';
function arrayChecker<T>(elt: Checker<T>): Checker<T[]> {
    return (x: unknown): x is T[] => Array.isArray(x) && x.every(i => elt(i));
}
function nonEmptyChecker<T>(): Checker<NonEmptyArray<T>> {
        return (x: unknown): x is NonEmptyArray<T> => (x as T[]).length > 0;
}

const theProblem: Checker<NonEmptyArray<number>> = bothChecker(
    arrayChecker(numChecker),
    _asArray => nonEmptyChecker()
);

Wow, thank you so much for a quick fix!


Fixed issue where the response is empty

I have an existing API which for some requests doesn't return anything in the message body.  Just sets the https status and the reason.  These cause the Http-Client to trip over and throw exceptions when trying to parse and empty string as json.
This fixes the issue here https://github.com/aurelia/http-client/issues/131

@maverix Thank you for this submission. Would you be willing to add a unit test to your PR to validate this scenario?

@EisenbergEffect no a problem, I will get around to this soon.

@maverix Just checking in to see if you would be able to add the test this week.

Closing this since it breaks existing unit tests and no new unit tests were provided to fix the problem without breaking existing scenarios.


Modified database update logic

Replacing if's with switch-case

Codecov Report

Merging #908 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #908      +/-   ##
=========================================
+ Coverage    6.36%   6.37%   +0.01%
=========================================
  Files          97      97
  Lines        5105    5096       -9
  Branches      479     477       -2
=========================================
  Hits          325     325
+ Misses       4753    4744       -9
  Partials       27      27

Impacted Files
Coverage Δ

...c/main/java/fr/free/nrw/commons/data/Category.java
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Could perhaps you provide some unit tests for the onUpdate method? It's not a must, to be sure, but it would be really nice to have when dealing with refactoring.

Will work on that.


risc0-zkp-accel 0.4.0 build failed on docs.rs

I was monitoring the docs.rs recent build failures and noticed that risc0-zkp-accel 0.4.0 is failing because it attempts to access the network in its build script: https://docs.rs/crate/risc0-zkp-accel/0.4.0
It should be sufficient to omit the network accesses when the crate is being built by docs.rs. You can check for the DOCS_RS environment variable and skip the network access, or just fail gracefully without panicking.
(In fact, it seems like a lot of your crates are failing to build, such as risc0-zkvm-host-sys, risc0-zkvm-prove, and risc0-zkvm-host.)

At least one crate (tbb) needs to download the source so it needs network access. It's also the case that pretty much all the -sys crates depend on tbb so they will all need network access?

needs to download the source

This isn't typical for Rust crates. Usually the source is included in the crate itself, and able to be redirected using environment variables. Is there any reason tbb needs to do it this way?

I think this is similar to openssl. My understanding is that there's an internal openssl-src crate that pulls down the source from some other location.
TBB is a project maintained by Intel. Currently much of our code is written in C++ with a plan to eventually port it to rust. But at the moment, TBB is a C++-only dependency. I also felt like doing it this way was better on developers than having them do apt install libtbb or whatnot.

I think this is similar to openssl. My understanding is that there's an internal openssl-src crate that pulls down the source from some other location.
TBB is a project maintained by Intel. Currently much of our code is written in C++ with a plan to eventually port it to rust. But at the moment, TBB is a C++-only dependency. I also felt like doing it this way was better on developers than having them do apt install libtbb or whatnot.

What I'm saying is that binding crates often include the library they're binding to, which they may or may not have written, in the crate itself. It's called vendoring and it allows docs.rs to generate documentation for your crate, among other things.

OK, so you're saying we should just vendor the TBB project?
If possible I'd like to try to avoid doing that. Is there no other way to make docs.rs builds work?

Is there no other way to make docs.rs builds work?

docs.rs does not give network access to any crate. If you really don't want to vendor TBB, you can precompile the bindings and make the build script use those instead of downloading the source when the crate is being built in docs.rs. But this will still make a weird user experience when a crate build script suddenly initiates a separate download that could have been included in the crate itself. I'm not sure whether it's frowned upon or not but I would assume it is.

I think the issue here is that there are no 'bindings' exposed by TBB, because it's a purely C++ dependency. In other words, it's a dependency from one C++ library to another (no rust involved at all). I'm just using the cargo system to make it much easier for developers to make use of higher level rust bindings.

The issue is that you're downloading TBB at compile time, which is wrong (TBB should be included in the cargo download). You should vendor it whether or not you use it directly from Rust, but just avoiding the download on Docs.rs would indeed fix the build.


Increasing Num Points in editor crash

Godot Engine v4.2.2.rc3.official.16a8334b8
Increasing "Num Points" (num_points) in editor crashes the editor
Might just be on my end, testing needed

This should be fixed now in the latest version 0.5.


Add Syslog_message.encode_local

When communicating with syslog locally, the syslog message should not include the hostname.
See the glibc sources and also rsyslogd imuxsock docs

Right. Travis seems to be doing better today. Thanks for your contribution.


Proxy does not work, both requests to backend and http://localhost:3000/

Describe the bug
https://github.com/vitejs/vite/issues/1014#issue-735504721
Same like this issue.
my vite.config.ts
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [reactRefresh()],
  server: {
    proxy: {
      '/api': {
        target: 'http://localhost:8000',
        changeOrigin: true
      }
    }
  }
})

and the React code
import React, { useState } from 'react'
import logo from './logo.svg'
import './App.css'

function App() {
  const [count, setCount] = useState(0)

  function request(params:any) {
    fetch('/api').then(response => response.json());
  }

  return (

        <button onClick={request}>
          Request
        </button>

  )
}

export default App

Reproduction
Create a blank project with vite, yarn create @vitejs/app
Add vite.config.ts with proxies from the doc
Issue request to/apior anything using fetch
Observe that requests are still sent to the dev server http://localhost:8000/ and http://localhost:3000/ in my case.
System Info
vite: ^2.3.0 => 2.3.2
OS: Linux 4.19 Ubuntu 20.04.2 LTS (Focal Fossa)
node: v16.0.0
yarn -v: 1.22.10
Logs
  vite v2.3.3 dev server running at:

  > Local: http://localhost:3000/
  > Network: use `--host` to expose

  ready in 223ms.

  vite:time 0ms   / +0ms
  vite:spa-fallback Rewriting GET / to /index.html +0ms
  vite:time 20ms  /index.html +38ms
  vite:resolve 1ms   /home/hz-wsl2/vite-pp/node_modules/vite/dist/client/client -> /home/hz-wsl2/vite-pp/node_modules/vite/dist/client/client.js +0ms
  vite:resolve 3ms   /@vite/client -> /home/hz-wsl2/vite-pp/node_modules/vite/dist/client/client.js +1ms
  vite:resolve 1ms   /src/main.tsx -> /home/hz-wsl2/vite-pp/src/main.tsx +3ms
  vite:load 4ms   [fs] /@vite/client +0ms
  vite:resolve 1ms   ./env -> /home/hz-wsl2/vite-pp/node_modules/vite/dist/client/env.js +17ms
  vite:resolve 0ms   /node_modules/vite/dist/client/env.js -> /home/hz-wsl2/vite-pp/node_modules/vite/dist/client/env.js +2ms
  vite:transform 16ms  /@vite/client +0ms
  vite:time 31ms  /@vite/client +70ms
  vite:load 26ms  [fs] /src/main.tsx +25ms
  vite:load 0ms   [plugin] /@react-refresh +229ms
  vite:rewrite 1ms   [no imports] /@react-refresh +0ms
  vite:transform 1ms   /@react-refresh +236ms
  vite:time 3ms   /@react-refresh +235ms
  vite:resolve 0ms   react -> /home/hz-wsl2/vite-pp/node_modules/.vite/react.js?v=18fa1454&es-interop +244ms
  vite:resolve 1ms   /node_modules/.vite/react.js?v=18fa1454&es-interop -> /home/hz-wsl2/vite-pp/node_modules/.vite/react.js?v=18fa1454&es-interop +2ms
  vite:resolve 0ms   react-dom -> /home/hz-wsl2/vite-pp/node_modules/.vite/react-dom.js?v=18fa1454&es-interop +5ms
  vite:resolve 0ms   /node_modules/.vite/react-dom.js?v=18fa1454&es-interop -> /home/hz-wsl2/vite-pp/node_modules/.vite/react-dom.js?v=18fa1454&es-interop +1ms
  vite:resolve 0ms   ./index.css -> /home/hz-wsl2/vite-pp/src/index.css +1ms
  vite:resolve 0ms   /src/index.css -> /home/hz-wsl2/vite-pp/src/index.css +1ms
  vite:resolve 1ms   ./App -> /home/hz-wsl2/vite-pp/src/App.tsx +2ms
  vite:resolve 0ms   /src/App.tsx -> /home/hz-wsl2/vite-pp/src/App.tsx +1ms
  vite:resolve 0ms   /node_modules/.vite/react.js?v=18fa1454 -> /home/hz-wsl2/vite-pp/node_modules/.vite/react.js?v=18fa1454 +1ms
  vite:resolve 0ms   /node_modules/.vite/react-dom.js?v=18fa1454 -> /home/hz-wsl2/vite-pp/node_modules/.vite/react-dom.js?v=18fa1454 +1ms
  vite:transform 243ms /src/main.tsx +21ms
  vite:time 282ms /src/main.tsx +22ms
  vite:load 3ms   [fs] /node_modules/vite/dist/client/env.js +33ms
  vite:rewrite 0ms   [no imports] node_modules/vite/dist/client/env.js +34ms
  vite:transform 2ms   /node_modules/vite/dist/client/env.js +14ms
  vite:time 10ms  /node_modules/vite/dist/client/env.js +13ms
  vite:load 3ms   [fs] /node_modules/.vite/react.js?v=18fa1454 +13ms
  vite:resolve 2ms   ./chunk-JF75KDUF.js -> /home/hz-wsl2/vite-pp/node_modules/.vite/chunk-JF75KDUF.js +28ms
  vite:resolve 0ms   /node_modules/.vite/chunk-JF75KDUF.js?v=18fa1454 -> /home/hz-wsl2/vite-pp/node_modules/.vite/chunk-JF75KDUF.js?v=18fa1454 +2ms
  vite:transform 7ms   /node_modules/.vite/react.js?v=18fa1454 +17ms
  vite:time 15ms  /node_modules/.vite/react.js?v=18fa1454 +17ms
  vite:load 18ms  [fs] /node_modules/.vite/react-dom.js?v=18fa1454 +17ms
  vite:transform 31ms  /node_modules/.vite/react-dom.js?v=18fa1454 +83ms
  vite:time 113ms /node_modules/.vite/react-dom.js?v=18fa1454 +102ms
  vite:load 4ms   [fs] /src/index.css +120ms
  vite:load 14ms  [fs] /src/App.tsx +13ms
  vite:resolve 0ms   ./App.css -> /home/hz-wsl2/vite-pp/src/App.css +204ms
  vite:resolve 0ms   /src/App.css -> /home/hz-wsl2/vite-pp/src/App.css +1ms
  vite:hmr [self-accepts] src/App.tsx +0ms
  vite:transform 67ms  /src/App.tsx +127ms
  vite:load 12ms  [fs] /node_modules/.vite/chunk-JF75KDUF.js?v=18fa1454 +70ms
  vite:rewrite 1ms   [no imports] node_modules/.vite/chunk-JF75KDUF.js?v=18fa1454 +233ms
  vite:transform 2ms   /node_modules/.vite/chunk-JF75KDUF.js?v=18fa1454 +6ms
  vite:time 18ms  /node_modules/.vite/chunk-JF75KDUF.js?v=18fa1454 +115ms
  vite:time 94ms  /src/App.tsx +3ms
  vite:hmr [self-accepts] src/index.css +21ms
  vite:transform 91ms  /src/index.css +10ms
  vite:time 106ms /src/index.css +6ms
  vite:load 0ms   [fs] /src/App.css +124ms
  vite:hmr [self-accepts] src/App.css +112ms
  vite:transform 1ms   /src/App.css +112ms
  vite:time 3ms   /src/App.css +111ms
  vite:time 4ms   /src/favicon.svg +298ms
  vite:proxy /api -> http://localhost:8000 +0ms
  vite:time 17ms  /api +10s

I'm facing the same issue. Too bad there hasn't been an appropriate answer to solve yet.

Maybe there was a misunderstanding, vite's proxy means it will route requests from a browser to the target server.
The request process is as follows:
Browser ->        Vite dev server    -> Your backend server
Browser -> http://localhost:3000 -> http://localhost:8000

The request process is as follows:
Browser ->        Vite dev server    -> Your backend server
Browser -> http://localhost:3000 -> http://localhost:8000

And my requests are never proxied from http://localhost:3000 to http://localhost:8000 as per this example.

I am facing a similar issue [vite] http proxy error:  Error: self signed certificate in certificate chain
when trying to use a proxy configuration (basically like in the docs) I know my cert is legit. It works fine in my vue-cli project. In fact I can run the UI and the backend ajax call in the browser in separate tabs but not in the single tab using the proxy. The ajax request just and stays "pending". (Note the error says "http proxy error" also, and I this is an https config)

Is there a version of Vite the proxy is working in that I can revert to in the interim?

I'm trying to do the following and am not sure what I'm doing wrong. Any help would be greatly appreciated. 😄

Have a backend that serves my login and index page. When the user logs in it redirects to the index page that serve a vite app
Serve my main.tsx file and static assets (images and such) from Vite
Proxy api requests to this backend (this I think might be working now somehow)
Vite is running on port 3000 and my server is on 8080

I followed the instructions on https://vitejs.dev/guide/backend-integration.html and have set up a config that looks like this:
export default defineConfig({
  plugins: [reactRefresh()],
  build: {
    // generate manifest.json in outDir
    manifest: true,
    rollupOptions: {
      // overwrite default .html entry
      input: "/src/main.tsx",
    },
  },
  server: {
    proxy: {
      "/src/main.tsx": {
        target: "http://localhost:3000/",
        ignorePath: true,
        changeOrigin: true,
        secure: false,
      },
      "/@react-refresh": {
        target: "http://localhost:3000/",
        ignorePath: true,
        changeOrigin: true,
        secure: false,
      },
      "/@vite/client": {
        target: "http://localhost:3000/",
        ignorePath: true,
        changeOrigin: true,
        secure: false,
      },
      "/": {
        target: "http://localhost:8080/",
        changeOrigin: true,
        secure: false,
      },
    },
  },
});

My server is rendering this html for the / index route:

                        <base href=".">
                        <meta charset="UTF-8" />
                        <meta name="viewport" content="width=device-width,initial-scale=1">
                        <link rel="icon" type="image/svg+xml" href="/assets/favicon.svg" />
                        <title>Web</title>

But when I log in and visit http://localhost:3000/ I get the following errors:

I'm evaluating Vite for a migration, and I stumbled upon the same problem, server.proxy doesn't seem to work at all.
Any updates on this?

Half later and still same issue occurs. Any idea when this will be fixed.

Half a year later and the still same issue occurs. Any idea when this will be fixed?

Contributions welcome

  vite: {     server: {       proxy: {         "/api": {           target: "http://localhost:9001",           changeOrigin: true,           secure: false,           rewrite: (path) => path.replace(/^\/api/, ""),         },       },     },   },
hello, proxy is working in dev mode, but in production doesn't work. there is no error or log output. (im newbie)

server: {
proxy: {
"/api": {
target: "http://<IP_ADDRESS>:4000",
changeOrigin: true,
secure: false,
ws: true,
},
},
},

This worked for me.

server: {
    proxy: {
        '/api/mobile/v1': {
          target: 'http://localhost:8083'
} } },

This is working for me, it will proxy:
localhost:3000/api/mobile/v1 to localhost:8083/api/mobile/v1
Vite version 2.9.9

It's difficult to solve without reproducing it and there was many updates so it might be already solved.
I'm closing this issue for now but please create a new discussion if it is still happening.


global: elastic search mappings and cli

Adds CLI for harvesting tasks.

Adds elastic search mappings.

Co-Authored-by: Krzysztof Nowak<EMAIL_ADDRESS>Signed-off-by: Krzysztof Nowak<EMAIL_ADDRESS>

As I tried to find out what was wrong with harvesting I fixed the unit tests.
Sadly authorship is not linking with github properly - feel free to pull this commit and resubmit the PR.

PR #10 has been updated.