Allow playing transitions on initial render

Describe the problem
In Svelte, you can play transitions on initial render by setting intro: true in the component constructor. There doesn't seem to be a way to do this in SvelteKit.
Describe the proposed solution
Add a setting in svelte.config.js that will set intro: true in the component constructor. This would only apply during the initial render. After client-side navigation, transitions should play automatically as components are mounted.
Alternatives considered
No response
Importance
nice to have
Additional Information
No response

This has come up in Sapper (https://github.com/sveltejs/sapper/issues/1106) and I don't think the question of what this would mean for SvelteKit is any clearer.

Also interested in using this. I think it makes sense to implement with a browser check since the transitions wouldn't need to play in SSR.

I am wondering if I am actually also running into this issue at the moment.
I have a page, which has a date as URL parameter. If I switch to another page (actually just navigating to a route with a different date), a new view is created and each cell (in a month view) is animated.
However: when firing up the page directly via URL, it shows the first a loading animation and then instead of playing transitions as expected (e.g. in:fade), it just draws everything in a finished state. When moving, the animation is performed as expected.
Is it perhaps this limitation?

It's the same problem, yes. This library provides a hacky workaround you can use for now: https://fractils.fractal-hq.com/#OnMount

It might also be a good idea to be able to enable this functionality per-component or per-page. I really need this feature in my own project and it would be very nice to have.

It's the same problem, yes. This library provides a hacky workaround you can use for now: https://fractils.fractal-hq.com/#OnMount

This works, but it prevents SSR. I get similar results by:
{#if someVar}
    <Component transition:someAnimation/>
{if}

What's the status of this?

is it possible to revert back to svelte 3 until this is resolved? or is it going to break more things by doing so?
I'm on a completely empty sveltekit skeleton project. I'm starting fresh, but it comes with svelte 4.

What's the status on this feature?

Any update? 👀

There's still no way to do this after 3 years since this issue was opened? 😖

I just ran into this after trying to update my svelte site, originally when clicking between links it seems like transitions were played per component being swapped in and out, allowing a pretty interesting visual when updating between pages. I'd really like to achieve the same effect with as minimal a code change as possible, I really like how it worked previously.

Is this still being considered or is there a potential workaround?


Error when entering .html buffers

Description
Since 3d9a958, on BufEnter for .html files, the following error occurs:
Error detected while processing BufEnter Autocommands for "*":
E5108: Error executing lua .../start/navigator.lua/lua/navigator/lspclient/clients.lua:875: attempt to compare number with boolean
stack traceback:
        .../start/navigator.lua/lua/navigator/lspclient/clients.lua:875: in function 'on_filetype'
        [string ":lua"]:1: in main chunk

To Reproduce
Any of the following:

From terminal, nvim *.html
:e *.html
Move into an existing .html window (e.g. <c-w>j from current window into window below with html file)

Config
require'navigator'.setup()

return require("packer").startup {
  function(use)
    use {
        'wbthomason/packer.nvim',
        }
    use({
        'ray-x/navigator.lua',
        requires = {
            { 'ray-x/guihua.lua', run = 'cd lua/fzy && make' },
            { 'neovim/nvim-lspconfig' },
        },
        })
  end
}

The issue is the same with this setup or with my usual plugin setup.
What I've Tried

Combinations of uninstalling, reinstalling, updating language servers
Rebuilding the config from scratch, including deleting all plugin files in ~/.local/.../packer/start/
Checking other file types to confirm that it's only .html files

Thanks!

Forgot to mention, I'm on nightly, and also that the error doesn't occur on branch neovim_0.6.

I have the same issue.
 Any commit after that has the bug.
Afaik, the commit after the one I mentioned above introduced the bug (that is https://github.com/ray-x/navigator.lua/commit/05dfed9ed964a7f186941f85a435a185e1ffa700).

Thanks for filing the issue.
It was caused by HTML LSP server. The name of LSP server is html which is same as filetype. I did not expect that lsp and file type to be same name.
It should be fixed by 49c3e5cd4d6b24067b9ca24f0b046a646fdee270

Thanks, the fix worked! Appreciate your work, I really admire this plugin.


Create community.rst for sharing community docs and software for Rasa NLU

Proposed changes:

Adding a page to the docs for sharing customer written documentation

Status (please check what you already did):

[ ] made PR ready for code review
[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog

I added a note to the top and moved the page to a different section - the resources are good but I don't want to drive people away from the documentation right away


Blank I2C output ESP32 simple program

Chip type:         esp32 (revision v1.0)
Crystal frequency: 40MHz
Flash size:        4MB
Peripheral:        MLX90614
VCC:               3V3
GND:               GND
SDA:               GPIO 21
SCL:               GPIO 22

Thank you for the awesome library. I am having issues connecting a MLX90614 (on a breakout board with 4.7K pull-up resistors on sda and scl) to my ESP32.
I've been able to validate that the device works via the Ardunio IDE using this library and this program.
#include <Adafruit_MLX90614.h>

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() {
  Serial.begin(115200);
  while (!Serial);

  if (!mlx.begin()) {
    Serial.println("Error connecting to MLX sensor. Check wiring.");
    while (1);
  };
}

void loop() {
  Serial.print("Ambient temperature = ");
  Serial.print(mlx.readAmbientTempC());
  Serial.print("°C");
  Serial.print("   ");
  Serial.print("Object temperature = ");
  Serial.print(mlx.readObjectTempC());
  Serial.println("°C");

  Serial.println("-----------------------------------------------------------------");
  delay(500);
}

However I cannot seem to get a useful response when trying to communicate with the I2C bus via esp-hal
I've tried to manually write_read at the address 0x5A and always get a response of [ff, ff, ff].
Additionally I've attempted to scan for all I2C devices and send all 1 byte messages and always get a response of [00, 00, 00] or [ff, ff, ff]. Please see the example code below.
I am an embedded newbie so its very likely I'm doing something (or everything) completely wrong. Is there a better/correct way to read data from an I2C bus?
#![no_std]
#![no_main]

use esp32_hal::{
    clock::{ClockControl, Clocks},
    entry,
    gpio::{Gpio6, GpioPin, Output, PushPull, Unknown, IO},
    i2c::I2C,
    interrupt,
    peripherals::{Peripherals, I2C0, I2C1, RTC_I2C},
    prelude::*,
    Delay,
};
use esp_backtrace as _;
use esp_println::println;

#[entry]
fn main() -> ! {
    let peripherals = Peripherals::take();
    let system = peripherals.SYSTEM.split();
    let clocks = ClockControl::boot_defaults(system.clock_control).freeze();
    let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);

    let sda = io.pins.gpio21;
    let scl = io.pins.gpio22;

    let mut i2c = I2C::new(peripherals.I2C0, sda, scl, 100u32.kHz(), &clocks);

    for addr in 0..=127 {
        if let Ok(_) = i2c.write(addr, &[0x07]) {
            println!("Found device at address: 0x{:02X}", addr);
            for msg in 0..=255 {
                let to_send: [u8; 1] = [msg];
                let mut data = [0u8; 3];
                i2c.write_read(addr, &to_send, &mut data).ok();
                println!("Sent: 0x{:02X}, Received: {:02x?}", msg, data);
            }
        }
    }

    loop {}
}

Code looks fine. Worth to try is using the pins we use in the examples (32,33). If that changes things for you it's probably a bug on our side (since 21,22 are the default pins, they should also work)
If that doesn't work you might want to use a logic analyzer (for the clock speeds of I2C a very cheap one is more than enough) and see what is happening on the wires

@bjoernQ I'm also experiencing issues with I2C async version.
After running a simple task for reading out the humidity and temp. from the Rust ESP32-C3 board I start getting ack. checks errors:
Combined: 27.001 °C / 77.862 %RH
Combined: 26.94 °C / 77.856 %RH
Combined: 26.98 °C / 77.891 %RH
Combined: 26.972 °C / 77.868 %RH
Combined: 26.969 °C / 77.871 %RH
Combined: 27.001 °C / 77.862 %RH
Combined: 26.988 °C / 77.865 %RH
Combined: 26.98 °C / 77.853 %RH
Combined: 26.969 °C / 77.864 %RH
Combined: 26.961 °C / 77.87 %RH
Combined: 26.988 °C / 77.885 %RH
Combined: 26.972 °C / 77.836 %RH
Combined: 26.98 °C / 77.873 %RH
Combined: 27.001 °C / 77.882 %RH
Combined: 26.969 °C / 77.851 %RH
Combined: 26.969 °C / 77.915 %RH
Combined: 26.969 °C / 77.861 %RH
Combined: 26.996 °C / 77.891 %RH
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)
(shtc3::start_measurement) Error: I2c(AckCheckFailed)

I've experiening issues with the IMU I2Csensor as well, though I'm not sure if it's only the esp-hal impl or a driver crate bug included in there, see PR #862

Thanks! Oh, I somehow missed #862  - need to look into that

Thanks! There's definitely something broken in I2C but I'm far from my equipment so can't provide you with further info.

@bjoernQ I've acquired a logic analyzer and got it working with saleae's Logic2 however I'm not 100% sure what I should be looking for 😅
I've written a simple program to request the IR data every second and then attached the logic analyzer to the SDA and SCL pins. Please see the schematic, screenshot and code below.
Schematic
This is how I've wired the analyzer to the circuit (I had to add a diode in order for the circuit to run... not sure if this can cause any issues).
 graph TD;

subgraph ESP32
GPIO21
GPIO22
GND_ESP
3V3
end

GPIO21 --- SDA
GPIO22 --- SCL
GND_ESP --- GND_MLX
3V3 --- VCC

subgraph MLX90614
SDA
SCL
GND_MLX
VCC
end

GND_MLX --- GND_LOGIC
SDA --- CH0
SCL --- DIODE_1N4148 --- CH1

subgraph DIODE_1N4148
end

subgraph LOGIC_ANALYZER
GND_LOGIC
CH0
CH1
end

Logic Analyzer Capture
I can see some communication on the wires but am not sure what a correct/incorrect patterns looks like

Program
#![no_std]
#![no_main]

use esp32_hal::{
    clock::ClockControl, entry, gpio::IO, i2c::I2C, peripherals::Peripherals, prelude::*, Delay,
};
use esp_backtrace as _;
use esp_println::println;

#[entry]
fn main() -> ! {
    // Initialize peripherals
    let peripherals = Peripherals::take();
    let system = peripherals.SYSTEM.split();
    let clocks = ClockControl::boot_defaults(system.clock_control).freeze();
    let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);

    // Initialize I2C specific pins
    let sda = io.pins.gpio21;
    let scl = io.pins.gpio22;

    // Open I2C0
    let mut i2c = I2C::new(peripherals.I2C0, sda, scl, 100u32.kHz(), &clocks);

    // Delay configuration
    let mut delay = Delay::new(&clocks);

    println!("Scanning for devices...");
    // Scan for devices
    if let Ok(_) = i2c.write(0x5A, &[0x07]) {
        // 0x04 is the command to read the raw sensor data
        let to_send: [u8; 1] = [0x04];
        loop {
            let mut data = [0u8; 3];
            i2c.write_read(0x5A, &to_send, &mut data).ok();
            println!("Sent: 0x{:02X}, Received: {:02x?}", 0x00, data);
            delay.delay_ms(1000u32);
        }
    }

    loop {}
}

Thank you for the help 🙏

Great you got a logic analyzer. Will definitely be helpful in the future. Seems like for whatever reason the clock signal looks "interesting".
The Saleae software also contains a protocol decoder which you could use to make more sense of the signals but, in this case, SCL already looks suspicious.
SDA looks good.
Would be good if you could use different pin (32 or 33) as SDA and compare what the logic analyzer captures

As I mentioned in https://github.com/esp-rs/esp-hal/pull/862, it's possible to simulate similar problem, by connecting ungrounded wire to PIN 8, or by touching the board.
It seems that I2C clocks are simply thrown out of balance.
Workaround: Decrease frequency of I2C to 2 kHz.

Possible suspect 1
https://github.com/esp-rs/esp-hal/blob/6005f9256625e7a83d37464bf2b5dea5feab6392/esp-hal-common/src/i2c.rs#L1498-L1515
icm42670 crate example
It's used both in async and current block Api for the crate:
   /// Read a register at the provided address.
    async fn read_reg_async(&mut self, reg: &dyn Register) -> Result<u8, Error<I2C::Error>> {
        let mut buffer = [0u8];
        self.i2c
            .write_read(self.address as u8, &[reg.addr()], &mut buffer)
            .await
            .map_err(|e| Error::BusError(e))?;

        Ok(buffer[0])
    }

Will try with lowered frequency next

With a breadboard

Without a breadboard

I'm investigating this issue on the Rust board.

I've also gave it a stab @drbh - https://github.com/esp-rs/esp-hal/pull/979

I've also gave it a stab @drbh - #979

awesome thank you! I just pulled it down and got similar results. However it appears that you're changes are for async i2c and I am currently not using embassy which I believe is needed for async?
Do you know if these changes will work in the sync case? Also quick note but it appears there is still a STOP command emitted as part of the write. My impressions was that a transaction has a single STOP so this does not reduce the two transactions into one...

I haven't tested my implementation but decided to share it because you commented on the issue.
And no I don't believe you can do this in the blocking version. In async you can wait for two futures too complete in parallel.

@elpiel got it, thank you for sharing I really appreciate the information and am going to use the code to help debug the issue further 🙏

@drbh the time between write and read seem to be huge. Are you running in release mode?
This is how it looks like for me (other i2c device so it looks different)

Maybe the MLX90614 just doesn't like the long pause between write and read

Is this resolved? Can we close this issue?

@bjoernQ unfortunately I still cannot read data from the MLX90614, you were right I was originally compiling in debug. Building release did improve the timing (shown below) but I still get a response of [ff, ff, ff]
The only difference between the arduino and rust logic output seems to be the number of transactions sent over the bus. I believe this is due to master_write_read being implemented as two transaction rather than one (note the example below has one more stop frame than the cpp example).

It may make sense to close this issue since I cannot confirm that the issue is related to master_write_read and this issue has been open for a long time.
Thanks for all of the help!

I think I am experiencing the same, or very similar issue. Please let me know if I should open another issue elsewhere. I am using different boards (esp32-s3 and esp32-c6 DevKitC-1) targeting a different I2C device (Adafruit Atecc608A, not that it seem to matter yet at the point I am failing) though. When I try a slightly adapted version of @drbh s code (chip has a config zone that can be locked, don't wont to write random commands and ruin the chip), the program gets stuck after 2 iterations of the for loop:

#![no_std]
#![no_main]

use esp32s3_hal::{clock::ClockControl, prelude::*, timer::TimerGroup, Delay, IO};
use esp_backtrace as _;
use esp_println::println;
use at_cryptoauth::{memory::Zone, AtCaClient};
use esp32s3_hal::i2c::I2C;

#[entry]
fn main() -> ! {
    esp_println::logger::init_logger(log::LevelFilter::Info);

    let peripherals = Peripherals::take();

    let system = peripherals.SYSTEM.split();

    let clocks = ClockControl::boot_defaults(system.clock_control).freeze();

    // Set up SCL & SDA
    let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);
    let scl = io.pins.gpio1;
    let sda = io.pins.gpio2;

    // Construct I2C
    let mut i2c = I2C::new(peripherals.I2C0, scl, sda, 100u32.kHz(), &clocks);

    let mut delay = Delay::new(&clocks);

    for addr in 0..=127 {
        println!("Scanning Address {}", addr as u8);

        // Scan Address
        let res = i2c.read(addr as u8, &mut [0]);

        // Check and Print Result
        match res {
            Ok(_) => println!("Device Found at Address {}", addr as u8),
            Err(err) => println!("No Device Found: {:?}", err),
        }
    }

    loop {
        println!("Loop...");
        delay.delay_ms(500u32);

    }
}

Output of stuck program:
Scanning Address 0
No Device Found: AckCheckFailed
Scanning Address 1
No Device Found: AckCheckFailed
Scanning Address 2

I expected that it would run through all 127 addresses and get at least an ACK, in any case, I didn't expect the reads to get hung up in any case.
I tried

different versions of esp32s3_hal (0.14.0, 0.15.0, current main branch), same results
esp32s3 and esp32c6 boards
with and without breadboard (not touching it), same results
with and without I2C device connected, same results
different gpio pins (bunch of randoms, 1 & 2), same results
starting the for loop at different addresses, same results
setting lto = "off" in my cargo.toml results in my for loop getting stuck one iteration earlier
using 50kHz I2C clock speed, it runs one iteration less.
using 2kHz or 400kHz the loop runs through, however, I am only seeing AckCheckFailed on all addresses including the one where I am expecting the device according to it's specs, also my original problem persists :(

(I am new to embedded, I hope this counts as minimal example. My original goal is to get this library supported on my hardware but when trying to wake up the chip, the program either get's stuck or fails here https://github.com/BlackbirdHQ/at-cryptoauth-rs/blob/46db006c2da43e82bba4508e79e9db41bf84ce94/src/datalink.rs#L122)

I think I am experiencing the same, or very similar issue. Please let me know if I should open another issue elsewhere. I am using different boards (esp32-s3 and esp32-c6 DevKitC-1) targeting a different I2C device (Adafruit Atecc608A, not that it seems to matter yet at this point) though. When I try a slightly adapted version of @drbh s code (chip has a config zone that can be locked, don't wont to write random commands and ruin the chip), the program gets stuck after 2 iterations of the for loop:
#![no_std]
#![no_main]

use esp32s3_hal::{clock::ClockControl, prelude::*, timer::TimerGroup, Delay, IO};
use esp_backtrace as _;
use esp_println::println;
use esp32s3_hal::i2c::I2C;

#[entry]
fn main() -> ! {
    esp_println::logger::init_logger(log::LevelFilter::Info);

    let peripherals = Peripherals::take();

    let system = peripherals.SYSTEM.split();

    let clocks = ClockControl::boot_defaults(system.clock_control).freeze();

    // Set up SCL & SDA
    let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);
    let scl = io.pins.gpio1;
    let sda = io.pins.gpio2;

    // Construct I2C
    let mut i2c = I2C::new(peripherals.I2C0, scl, sda, 100u32.kHz(), &clocks);

    let mut delay = Delay::new(&clocks);

    for addr in 0..=127 {
        println!("Scanning Address {}", addr as u8);

        // Scan Address
        let res = i2c.read(addr as u8, &mut [0]);

        // Check and Print Result
        match res {
            Ok(_) => println!("Device Found at Address {}", addr as u8),
            Err(err) => println!("No Device Found: {:?}", err),
        }
    }

    loop {
        println!("Loop...");
        delay.delay_ms(500u32);

    }
}

Output of stuck program:
Scanning Address 0
No Device Found: AckCheckFailed
Scanning Address 1
No Device Found: AckCheckFailed
Scanning Address 2

I expected that it would run through the for-loop and get back with one device found. I didn't expect the reads to get hung up in any case.
I tried

with and without I2C device connected, same results
with different versions of esp32s3_hal (0.14.0, 0.15.0, current main branch), same results
on esp32s3 and esp32c6 boards
with and without breadboard (not touching it), same results
using different gpio pins (bunch of randoms, 1 & 2), same results
starting the for loop at different addresses, same results
repeatedly writing 0x00 at address 0x60 which is supposed to make the chip wake up and have it respond with some data. Same result at the read (writes don't come through either)
setting lto = "off" in my cargo.toml results in my for loop getting stuck one iteration earlier
using 50kHz I2C clock speed, it runs one iteration of the for loop less before it gets hung up
using 2kHz or 400kHz the loop runs through, however, I am only seeing AckCheckFailed on all addresses including the one where I am expecting the device according to it's specs (0x60), also my original problem persists :(

(I am new to embedded, I hope this counts as minimal example, my original goal is to get this library supported on my hardware but when trying to wake up the chip, the program either get's stuck or fails here https://github.com/BlackbirdHQ/at-cryptoauth-rs/blob/46db006c2da43e82bba4508e79e9db41bf84ce94/src/datalink.rs#L122)

This doesn't seem to be related to the issue here and probably it's better to create a separate issue for it

This issue has grown stale, and I'm not sure there's anything actionable here, so gonna go ahead and close this. Everybody involved, please feel free to open a new issue if you are still experiencing any problems.


Ignoring node_modules and Implementing postCSS

Ignoring node_modules from root folder and implementing postCSS to use sass

thanks, @uidoyen changes look good. I think we can let the yarn.lock file committed. https://classic.yarnpkg.com/en/docs/yarn-lock/#toc-managed-by-yarn

I think we can let the yarn.lock file committed. https://classic.yarnpkg.com/en/docs/yarn-lock/#toc-managed-by-yarn

Just removing from root folder where we don't have any node dependencies.

sure, it good to go then   :+1:


h11._util.LocalProtocolError: Too little data for declared Content-Length when open FastAPI docs

Dependencies:

fastapi 0.73.0
starlette 0.17.1
pydantic 1.9.0
h11 0.12.0

Traceback
When trying to open http://localhost:XXXX/docs:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 364, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 212, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
    raise exc
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 64, in __call__
    await response(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 244, in __call__
    await wrap(partial(self.listen_for_disconnect, receive))
  File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 574, in __aexit__
    raise exceptions[0]
  File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 240, in wrap
    await func()
  File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 234, in stream_response
    await send({"type": "http.response.body", "body": b"", "more_body": False})
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 156, in _send
    await send(message)
  File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 468, in send
    output = self.conn.send(event)
  File "/usr/local/lib/python3.9/site-packages/h11/_connection.py", line 468, in send
    data_list = self.send_with_data_passthrough(event)
  File "/usr/local/lib/python3.9/site-packages/h11/_connection.py", line 501, in send_with_data_passthrough
    writer(event, data_list.append)
  File "/usr/local/lib/python3.9/site-packages/h11/_writers.py", line 60, in __call__
    self.send_eom(event.headers, write)
  File "/usr/local/lib/python3.9/site-packages/h11/_writers.py", line 83, in send_eom
    raise LocalProtocolError("Too little data for declared Content-Length")
h11._util.LocalProtocolError: Too little data for declared Content-Length

The issue (I think)
https://github.com/mongkok/fastapi-debug-toolbar/blob/3552b0bbb8e1a86a4f5eaaf214e6916d52c941ef/debug_toolbar/middleware.py#L84
On first iteration, body equals the correct body from response (b'<HTML CONTENT>'), on second iteration body is empty (b''). This empty body is use on the subsequent code, inserted on response, but line 97 never occurs.

@chrismaille
Was this issue fixed in a different way?
I've seen the related PR was closed and not merged

@mongkok
The same error occured in my code. Was this solution worked ?

The issue was fixed, please try the latest release 0.3.2.


Add invitation to open issues

Add an invitation to open issues to the regexp summary doc

LGTM; also added a suggestion of possible rewording

Thanks for that @ctcpip. I've accepted the suggestion and also edited #523 to match,

Amended to reflect @david-a-wheeler's request. On that basis, and the basis of our discussion in today's call, I think this can be merged.

Looks great, but we had a merge conflict. I fixed it in the way I think it was intended.

@torgo thanks so much! Let's just merge!


fix invaild quotation marks in build.gralde in templates

Just started reviewing :) :octocat: Sent from GH.

Merged, thanks! See :octocat: Sent from GH.


Release

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/369
After the above pull request is merged, it is recommended that you create
a tag on this repository for the registered package version:
git tag -a v0.4.1 -m "<description of version>" 7bbba02deec5f245d9e9b788263c03f6e3415b62
git push origin v0.4.1


Backport: Community member invitation modal fix

This is a backport of https://github.com/inveniosoftware/invenio-communities/pull/1185 to v13.x

:heavy_check_mark: tests with my local v12 setup work as intended


Remote diconnected and didnt download files

Hi,
Very cool project! It looks like I installed it correctly and I ran this code on a jupyter notebook:
from paperscraper.get_dumps import biorxiv, medrxiv, chemrxiv
    medrxiv()  #  Takes ~30min and should result in ~35 MB file
    biorxiv()  # Takes ~1h and should result in ~350 MB file
    chemrxiv()  #  Takes ~45min and should result in ~20 MB file

I get this response:
61032it [20:29, 49.63it/s]
106700it [1:45:02, 16.93it/s]
And then I get the mess below. Any ideas on what I can do? Thankyou!!
Sincerely,
tom
RemoteDisconnected                        Traceback (most recent call last)
File ~\anaconda3\lib\site-packages\urllib3\connectionpool.py:703, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    702 # Make the request on the httplib connection object.
--> 703 httplib_response = self._make_request(
    704     conn,
    705     method,
    706     url,
    707     timeout=timeout_obj,
    708     body=body,
    709     headers=headers,
    710     chunked=chunked,
    711 )
    713 # If we're going to release the connection in ``finally:``, then
    714 # the response doesn't need to know about the connection. Otherwise
    715 # it will also try to release it and we'll have a double-release
    716 # mess.

File ~\anaconda3\lib\site-packages\urllib3\connectionpool.py:449, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    445         except BaseException as e:
    446             # Remove the TypeError from the exception chain in
    447             # Python 3 (including for exceptions like SystemExit).
    448             # Otherwise it looks like a bug in the code.
--> 449             six.raise_from(e, None)
    450 except (SocketTimeout, BaseSSLError, SocketError) as e:

File <string>:3, in raise_from(value, from_value)

File ~\anaconda3\lib\site-packages\urllib3\connectionpool.py:444, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    443 try:
--> 444     httplib_response = conn.getresponse()
    445 except BaseException as e:
    446     # Remove the TypeError from the exception chain in
    447     # Python 3 (including for exceptions like SystemExit).
    448     # Otherwise it looks like a bug in the code.

File ~\anaconda3\lib\http\client.py:1377, in HTTPConnection.getresponse(self)
   1376 try:
-> 1377     response.begin()
   1378 except ConnectionError:

File ~\anaconda3\lib\http\client.py:320, in HTTPResponse.begin(self)
    319 while True:
--> 320     version, status, reason = self._read_status()
    321     if status != CONTINUE:

File ~\anaconda3\lib\http\client.py:289, in HTTPResponse._read_status(self)
    286 if not line:
    287     # Presumably, the server closed the connection before
    288     # sending a valid response.
--> 289     raise RemoteDisconnected("Remote end closed connection without"
    290                              " response")
    291 try:

RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

ProtocolError                             Traceback (most recent call last)
File ~\anaconda3\lib\site-packages\requests\adapters.py:486, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    485 try:
--> 486     resp = conn.urlopen(
    487         method=request.method,
    488         url=url,
    489         body=request.body,
    490         headers=request.headers,
    491         redirect=False,
    492         assert_same_host=False,
    493         preload_content=False,
    494         decode_content=False,
    495         retries=self.max_retries,
    496         timeout=timeout,
    497         chunked=chunked,
    498     )
    500 except (ProtocolError, OSError) as err:

File ~\anaconda3\lib\site-packages\urllib3\connectionpool.py:785, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    783     e = ProtocolError("Connection aborted.", e)
--> 785 retries = retries.increment(
    786     method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    787 )
    788 retries.sleep()

File ~\anaconda3\lib\site-packages\urllib3\util\retry.py:550, in Retry.increment(self, method, url, response, error, _pool, _stacktrace)
    549 if read is False or not self._is_method_retryable(method):
--> 550     raise six.reraise(type(error), error, _stacktrace)
    551 elif read is not None:

File ~\anaconda3\lib\site-packages\urllib3\packages\six.py:769, in reraise(tp, value, tb)
    768 if value.__traceback__ is not tb:
--> 769     raise value.with_traceback(tb)
    770 raise value

File ~\anaconda3\lib\site-packages\urllib3\connectionpool.py:703, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    702 # Make the request on the httplib connection object.
--> 703 httplib_response = self._make_request(
    704     conn,
    705     method,
    706     url,
    707     timeout=timeout_obj,
    708     body=body,
    709     headers=headers,
    710     chunked=chunked,
    711 )
    713 # If we're going to release the connection in ``finally:``, then
    714 # the response doesn't need to know about the connection. Otherwise
    715 # it will also try to release it and we'll have a double-release
    716 # mess.

File ~\anaconda3\lib\site-packages\urllib3\connectionpool.py:449, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    445         except BaseException as e:
    446             # Remove the TypeError from the exception chain in
    447             # Python 3 (including for exceptions like SystemExit).
    448             # Otherwise it looks like a bug in the code.
--> 449             six.raise_from(e, None)
    450 except (SocketTimeout, BaseSSLError, SocketError) as e:

File <string>:3, in raise_from(value, from_value)

File ~\anaconda3\lib\site-packages\urllib3\connectionpool.py:444, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    443 try:
--> 444     httplib_response = conn.getresponse()
    445 except BaseException as e:
    446     # Remove the TypeError from the exception chain in
    447     # Python 3 (including for exceptions like SystemExit).
    448     # Otherwise it looks like a bug in the code.

File ~\anaconda3\lib\http\client.py:1377, in HTTPConnection.getresponse(self)
   1376 try:
-> 1377     response.begin()
   1378 except ConnectionError:

File ~\anaconda3\lib\http\client.py:320, in HTTPResponse.begin(self)
    319 while True:
--> 320     version, status, reason = self._read_status()
    321     if status != CONTINUE:

File ~\anaconda3\lib\http\client.py:289, in HTTPResponse._read_status(self)
    286 if not line:
    287     # Presumably, the server closed the connection before
    288     # sending a valid response.
--> 289     raise RemoteDisconnected("Remote end closed connection without"
    290                              " response")
    291 try:

ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

ConnectionError                           Traceback (most recent call last)
File ~\anaconda3\lib\site-packages\paperscraper\xrxiv\xrxiv_api.py:71, in XRXivApi.get_papers(self, begin_date, end_date, fields)
     70 while do_loop:
---> 71     json_response = requests.get(
     72         self.get_papers_url.format(
     73             begin_date=begin_date, end_date=end_date, cursor=cursor
     74         )
     75     ).json()
     76     do_loop = json_response["messages"][0]["status"] == "ok"

File ~\anaconda3\lib\site-packages\requests\api.py:73, in get(url, params, **kwargs)
     63 r"""Sends a GET request.
     64
     65 :param url: URL for the new :class:`Request` object.
   (...)
     70 :rtype: requests.Response
     71 """
---> 73 return request("get", url, params=params, **kwargs)

File ~\anaconda3\lib\site-packages\requests\api.py:59, in request(method, url, **kwargs)
     58 with sessions.Session() as session:
---> 59     return session.request(method=method, url=url, **kwargs)

File ~\anaconda3\lib\site-packages\requests\sessions.py:589, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
    588 send_kwargs.update(settings)
--> 589 resp = self.send(prep, **send_kwargs)
    591 return resp

File ~\anaconda3\lib\site-packages\requests\sessions.py:703, in Session.send(self, request, **kwargs)
    702 # Send the request
--> 703 r = adapter.send(request, **kwargs)
    705 # Total elapsed time of the request (approximately)

File ~\anaconda3\lib\site-packages\requests\adapters.py:501, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    500 except (ProtocolError, OSError) as err:
--> 501     raise ConnectionError(err, request=request)
    503 except MaxRetryError as e:

ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

RuntimeError                              Traceback (most recent call last)
Input In [2], in <cell line: 3>()
      1 from paperscraper.get_dumps import biorxiv, medrxiv, chemrxiv
      2 medrxiv()  #  Takes ~30min and should result in ~35 MB file
----> 3 biorxiv()  # Takes ~1h and should result in ~350 MB file
      4 chemrxiv()

File ~\anaconda3\lib\site-packages\paperscraper\get_dumps\biorxiv.py:42, in biorxiv(begin_date, end_date, save_path)
     40 # dump all papers
     41 with open(save_path, "w") as fp:
---> 42     for index, paper in enumerate(
     43         tqdm(api.get_papers(begin_date=begin_date, end_date=end_date))
     44     ):
     45         if index > 0:
     46             fp.write(os.linesep)

File ~\anaconda3\lib\site-packages\tqdm\std.py:1195, in tqdm.__iter__(self)
   1192 time = self._time
   1194 try:
-> 1195     for obj in iterable:
   1196         yield obj
   1197         # Update and possibly print the progressbar.
   1198         # Note: does not call self.update(1) for speed optimisation.

File ~\anaconda3\lib\site-packages\paperscraper\xrxiv\xrxiv_api.py:85, in XRXivApi.get_papers(self, begin_date, end_date, fields)
     83                 yield processed_paper
     84 except Exception as exc:
---> 85     raise RuntimeError(
     86         "Failed getting papers: {} - {}".format(exc.__class__.__name__, exc)
     87     )

RuntimeError: Failed getting papers: ConnectionError - ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

Hi @bbanzai88, thanks for the interest in the library. I can reproduce this ConnectionError locally when calling medrxiv().
This is a problem with the API of medrxiv that is hard to directly mitigate in paperscraper. One intermediate solution can be to treat the try/except more gracefully here and then add some time.sleep if the API does not respond
Longterm best solution is to solve #33, this would imply that users dont have to download data to local disk anymore and directly query the dumps from a server where I host them. That would require more time

Hi @jannisborn , I'm facing the same ConnectionError issue after scraping a few hundred records. I wonder if you can share the dump somewhere so we do not have to scrape it repeatedly?
Thanks,

Hi @memray,
Which version of paperscraper do you use?

There is no update yet on #33 but if you have the time to prepare a PR, it would be great and I'm happy to assist

Hi @jannisborn ,
I created a PR to resolve the timed-out issue and please review it. It's working pretty well for now (except for lots of Connection error printouts).


refund !!!!!use up token of bugs

the system throws up way to many errors and then uses up tokens to fix them but the fixes arent good . I would like a refund please

I am facing a similar issue as well and totally resonate with this thought

@Abstractfocus @agnirudrasikdar Apologies for the frustrating experience! Refunds are being processed via<EMAIL_ADDRESS>Thanks for your pateience.


grt: detect and fix invalid embedded trees

You missed the DCO

Does this resolve the crossing case we discussed last thursday?

Does this resolve the crossing case we discussed last thursday?

Not yet. Since the crossing case will require even more updates in the code, I want to review what I have stable now before the fix for the crossing edges.

Closing this PR due to some unrelated changes that should not be here.


Add operator field to highway=street_lamp

Description, Motivation & Context
I opened a PR to add operator presets to the NSI for highway=street_lamp, this PR is to add the operator section to these objects so users can more easily add this data or even know its an available field.
https://github.com/osmlab/name-suggestion-index/pull/9851
Related issues
https://github.com/openstreetmap/iD/issues/10443
Links and data
Relevant OSM Wiki links:

https://wiki.openstreetmap.org/wiki/Tag:highway%3Dstreet_lamp

Relevant tag usage stats:

https://taginfo.openstreetmap.org/tags/highway=street_lamp

Checklist and Test-Documentation Template
Read on to get your PR merged faster…
Follow these steps to test your PR yourself and make it a lot easier and faster for maintainers to check and approve it.
This is how it works:

After you submit your PR, the system will create a preview and comment on your PR:

🍱 You can preview the tagging presets of this pull request here.
If this is your first contribution to this project, the preview will not happen right away but requires a click from one of the project members. We will do this ASAP.

Once the preview is ready, use it to test your changes.

Now copy the snippet below into a new comment and fill out the blanks.

Now your PR is ready to be reviewed.

## Test-Documentation

### Preview links & Sidebar Screenshots

<!-- Use the preview to find examples, select the feature in question and **copy this link here**.
     Find examples of nodes/areas. Find examples with a lot of tags or very few tags. – Whatever helps to test this thoroughly.
     Add relevant **screenshots** of the sidebar of those examples. -->

<!-- FYI: What we will check:
     - Is the [icon](https://github.com/ideditor/schema-builder/blob/main/ICONS.md) well chosen.
     - Are the fields well-structured and have good labels.
     - Do the dropdowns (etc.) work well and show helpful data. -->

### Search

<!-- **Test the search** of your preset and share relevant **screenshots** here.
     - Test the preset name as search terms.
     - Also test the preset terms and aliases as search terms (if present). -->

### Info-`i`

<!-- **Test the info-i** for your fields and preset and share relevant **screenshots** here.
     The info needs to help mappers understand the preset and when to use it.
     [Learn more…](https://github.com/tordans/id-tagging-schema/blob/main/CONTRIBUTING.md#info-i)
 -->

### Wording

- [ ] American English
- [ ] `name`, `aliases` (if present) use Title Case
- [ ] `terms` (if present) use lower case, sorted A-Z
<!-- Learn more in https://github.com/openstreetmap/id-tagging-schema/blob/main/GUIDELINES.md#2-design-the-preset -->

Test-Documentation
Preview links & Sidebar Screenshots

Search

Info-i

Wording

[x] American English
[x] name, aliases (if present) use Title Case
[x] terms (if present) use lower case, sorted A-Z

With the NSI addition released now, here is an updated screenshot of this with an operator included:

Compared to what 2.30.4 shows for these currently:

Hey @tyrasd sorry for the ping, this PR has been waiting for review for a couple months and just wanted to check the status of it. If this isn't something you'd want to add just let me know and I can close this so its not just sitting here.

Hey @tordans, thank you for the mention in the other PR, I think I understand the hesitancy to add this.
When I was checking around for operators to add to the NSI I was using this Overpass query, it seems to work for fairly large areas:
[out:json][timeout:100];
(node["highway"="street_lamp"]({{bbox}}););
out center;

{{style:
node
{ color:red; fill-color:red; }

node[operator]
{ color:yellow; fill-color:yellow; }

node[operator:wikidata]
{ color:green; fill-color:green; }
}}

The countries of Spain and Portugal for example:

I took a look at the QLever links you had mentioned, I've never used SPARQL before but reading through those I think I have a rough idea of how it works. I'll see if I can get something made to check for this, but in the mean time that Overpass query could help if you wanted to just manually check around for usages of this.

Thanks for the query @CorruptComputer
I asked at https://osmus.slack.com/archives/C1R62SM9T/p1730613008738959 if someone knows how to get the country query going.
And also maybe https://github.com/taginfo/taginfo/issues/440 will give an answer to this problem at some point.
Another way to get some stats is https://dashboard.ohsome.org/#backend=ohsomeApi&groupBy=boundary&time=%2F2024-10-14T13%3A00Z%2FP1M&measure=count&filter=highway%3Dstreet_lamp+and+operator%3D*&adminids=-148838%2C-1428125%2C-295480%2C-1311341%2C-51477%2C-62149%2C-62273%2C-52411%2C-2323309%2C-50046%2C-2978650%2C-52822%2C-49715%2C-16239%2C-51684%2C-214885%2C-218657%2C-2202162%2C-51701%2C-365331

-
-
date
number

148838
United__States
2024-10-14
11352

1428125
Canada
2024-10-14
45850

295480
Portugal
2024-10-14
69

1311341
Spain
2024-10-14
712

51477
Germany
2024-10-14
53757

62149
United__Kingdom
2024-10-14
5879

62273
Ireland
2024-10-14
196

52411
Belgium
2024-10-14
177

2323309
Netherlands
2024-10-14
1118

50046
Denmark
2024-10-14
65

2978650
Norway
2024-10-14
87

52822
Sweden
2024-10-14
627

49715
Poland
2024-10-14
1451

16239
Austria
2024-10-14
8

51684
Czechia
2024-10-14
25

214885
Croatia
2024-10-14
95

218657
Slovenia
2024-10-14
11

2202162
France
2024-10-14
47438

51701
Switzerland
2024-10-14
473

365331
Italy
2024-10-14
6418

Its not a great solution, but after some tinkering I found that you can query this by boundary=timezone: https://qlever.cs.uni-freiburg.de/osm-planet/9g0Ztr


how-to-connect-syncservice-feature: Fix typo

Fix a Cmdlet typo I've introduced.
I only saw it after #110933 got merged.

Thanks, @matsimon!


ExampleTable not supported

Related in some manner to Issue 1
But it should be easier to fix since ExampleTable line always starts with '|'
Thus

Given a new account named 'networkAgent' with the following properties (properties not set will be completed)
|key|value|
|Login|networkAgentLogin|
|Password|networkAgentPassword|

with the step declaration:
@Given("a new account named '$accountKey' with the following properties (properties not set will be completed) $propertiesTable")
public void createAnAccountAndCompleteEmptyFields(@Named("accountKey") String accountKey,
            @Named("propertiesTable") ExamplesTable propertiesTable) {
    }

is in error in the editor

I'm evaluating using JBehave with this plugin and this is one of the features that is a must have for my team.  Is this something that you are addressing in your upcoming <IP_ADDRESS> release?  Actually, this is probably a higher priority for us than the multi-line issue...


Start xvfb and run chrome without headless

Found your repo really helpful in setting up my selenium pytest tests to run in parallel, thanks! Just thought you might like to know that you can run chrome without the "--headless" if you start Xvfb first. You can then do things like record videos with ffmpeg.

@dbramwell I cannot seem to get XVFB to work with this repo... did you make any changes to your docker file? Feel free to reach out: https://stackoverflow.com/questions/72650323/selenium-xvfb-unable-to-receive-message-from-renderer

Nope, just what's in this PR. Are you getting any specific errors?

@dbramwell super weird, I even copied the exact code in your PR and still get the "Unable to receive message from renderer" error. Deployed Docker image to Lambda function, maybe that's where the problem is coming from?

We run it in lambda too. I'll see if I can figure out what I've missed

Ok, I still don't really understand why it isn't working as is, but:
My automated tests require the browser to be able to play mp4 files. The default chromium builds that this repo uses don' include mp4 codec stuff, so I switched to using the chromium builds from here. This commit makes the code in this PR work successfully, but I am 100% certain that I had xvfb working with the other build of chromium! The only reason I switched was for the MP4 compatibility...
Anyway, it's something for you to go on.

Hello, thank you for your PR and discussions here!
I created another branch and then cherry-picked your first commit. Unfortunately, I got an error on CircleCI. The log in Cloudwatch was below.
IMAGE	Launch error: fork/exec /entrypoint.sh: permission denied	Entrypoint: [/entrypoint.sh]	Cmd: [test.handler]	WorkingDir: [/var/task]

I am not sure I will merge this change into main branch, but I am sure that I can keep your successful xvfb version as another branch for other developers.
(I prefer not to use unknown binary if the source code is unclear with less stars. this is why I didn't try your second commit.)

Good that you have something working @lukehamil55
As I said, I'm so sure I had it working with the regular chromium build. Hopefully I'll get some time to figure it out at some point

@dbramwell appreciate it as always, would this method of spawning a XFVB display directly from a shell file versus in python not work if Selenium creates multiple instances of scrapers using multithreading? If that's the case, then pyvirtualdisplay would be the way to go as you can spawn displays during python runtime especially if multithreading is involved.

Yeah, if you want to start multiple virtual displays you're better off not doing it in the entrypoint. Something like that pyvirtualdisplay library should work fine, not sure how good lambda's multithreading capabilities are though. Is it not simpler to trigger the lambda multiple times and have each invocation just have one scraper instance? Anyway, this is off topic for this repo, pyvirtualdisplay should work fine if you want to use it

Thank you for your corporations 🙏


refactor(@cockpit,@embark/api): unregister the service worker; provide catch-all route, fallback pages for Cockpit

e7f7bdacb4768860794b0e8f82b4d1ee5ed1e272
TL;DR
Unregister (disable) the service worker in production builds of Cockpit. The CRA dev server doesn't enable the service worker, so no changes are needed in that context, i.e. yarn start in the monorepo.
NOTE: to effect these changes a user will need to load production Cockpit at localhost:55555 and then close all Cockpit tabs (or restart the browser). This should be done for each browser that has been used to access production Cockpit. See the Step-by-Step section below for more information.
Rationale
There are a couple of factors:

It's a bit confusing that after stopping embark run the production build of Cockpit is still accessible at localhost:55555. That's owing to CRA's offline-first behavior per the service worker it creates, which Cockpit currently registers (enables).

It can be really confusing, if you don't know or forget about the service worker's behavior, that after a production rebuild of Cockpit the old build is still used in the browser, even after a page refresh. As explained in CRA's docs: "users will end up seeing older content until they close (reloading is not enough) their existing, open tabs." A similar effect is seen when switching between DApps, e.g. teller and embark_demo.

The CRA docs point to some code that could be adapted to an alert in the UI prompting the user to close all tabs and reopen the app. That approach definitely makes sense for DApps built with CRA that have opted-in to the service worker. In fact, the service worker behavior would be critical in DApps that make use of connected-/react-router because cold loads of routes that don't actually correspond to static files couldn't otherwise work, i.e. if the DApp is being served from ipfs/swarm.
But for Cockpit itself, when served from localhost with an express backend that we control, little seems to be gained from offline-first behavior vs. a more familiar behavior, i.e. when embark run isn't running then Cockpit isn't accessible.
Step-by-Step
Flushing a site's service worker from cache can be tricky. The following steps outline an approach to making sure the Cockpit in use is the one with service worker disabled.

The first screenshot below shows the JavaScript console from a fresh load of Cockpit with the service worker enabled, i.e. from a build on master at time of writing and embark run running for the embark_demo. Note the messages re: "workbox" and "precaching".

The next screenshot shows what happens when embark run is stopped and the browser is refreshed. Service worker makes the page available offline, though there are errors related to embark's API not being accessible.

(a) Cockpit gets rebuilt on this PR's refactor/cockpit-service-worker branch and EMBARK_UI_STATIC=t embark run is started; see previous commit re: EMBARK_UI_STATIC. (b) The browser is refreshed. Note the message at the bottom re: "New content is available".

The Chrome browser is closed completely (command-Q), reopened and localhost:55555 is loaded again. Note there are still messages re: "workbox" and "precaching".

The page is refreshed again and now the messages are completely gone.

embark run is stopped and the page is reloaded, but there's a connection error because no process is listening on localhost:55555 — proof that the service worker is no longer in play!

Steps 3(b) to 6 will need to be repeated for each browser (Firefox, Safari, etc.)  that visited localhost:55555 when the service worker was enabled. And they'll need to be repeated again if the browser is later used with a build of Cockpit predating this PR.

322033cc683f6e8d37a7a3f9f22e73d169cd8b5c
Implement a /* server-side catch-all route for Cockpit that loads Cockpit's index.html.
This change is necessary with intent to disable offline-first behavior in production builds of Cockpit. Cockpit's service worker effectively translates server-side route unavailability into client-side behaviors of connected-react-router. When the service worker is unregistered the same will be accomplished via the server-side catch-all route.
Implement fallback pages for when embark is in the monorepo but Cockpit's Create React App development server isn't yet started or isn't yet responsive.
Implement a fallback page for when the static build of Cockpit is missing. When embark is in the monorepo, give instructions for building Cockpit. Otherwise, report that the distribution is broken.
Deprecate the environment variable EMBARK_DEVELOPMENT in favor of EMBARK_UI_STATIC. Unless the latter is truthy at runtime, when embark is in the monorepo the CRA dev server of Cockpit will be accessible at localhost:55555 via proxied requests to localhost:3000. The deprecation is not a breaking change as EMBARK_DEVELOPMENT / EMBARK_UI_STATIC are not relevant to normal users, but only to developers working on embark itself.
Bump express-http-proxy to the latest version.

Took this for a spin and found a few things.

Ran the demo, but forgot to build first. If embark-ui has not yet been built (ie cd embark-ui && yarn build), we get a continuous stream of Error: ENOENT: no such file or directory, stat '/Users/emizzle/Code/__Github/embk-fw/embark/packages/embark/node_modules/embark-ui/build/index.html' in the logs:

I built Cockpit (cd embark-ui && yarn build)
After opening Cockpit, I killed the demo.
Results
Cockpit was still available (clicking around showed network errors, and a refresh showed the login page. Also cold page load showed the login page).
Next test
I started the test_dapp, then loaded Cockpit (on :55555), and the same results happened when once I killed embark.

Previous functionality would sometimes show network errors and sometimes kick the user out to the login page, however with these changes, it seems that the user is never booted to the login page until a page refresh or a cold load.

This PR is ready for another round of review. Note the PR description has been updated and changes have been introduced re: the points raised by @emizzle.

Switching to this branch
yarn:reboot && yarn build
re-initing a fresh demo
Run http://localhost:55555?token=0620d289-413d-40dc-8f6c-dd80f9206591
Cockpit dashboard loads, then after a few seconds I am redirected to the login page with an authentication attempt logged in the console.
Kill running embark
Refresh Cockpit (without closing my browser) and I get This site can’t be reached (ERR_CONNECTION_REFUSED ) (which is good!)

I am also not seeing any workbox information in the console? Is there anything I need to do to enable those messages?

@emizzle

I am also not seeing any workbox information in the console? Is there anything I need to do to enable those messages?

It's good you're not seeing them; if you do see them, it means the service worker is still registered.

re-initing a fresh demo

To get the static build of Cockpit from the monorepo, you'll need to do EMBARK_STATIC_UI=t embark run. In the context of monorepo embark, most of the time it isn't desirable to load a static build, and if EMBARK_STATIC_UI is unset then (because of changes in this PR) the api server will attempt to proxy from port 55555 to the CRA dev server on port 3000.

Cockpit dashboard loads, then after a few seconds I am redirected to the login page with an authentication attempt logged in the console.

Service worker was still lingering in your browser at that point. Assuming you didn't run w/ EMBARK_STATIC_UI=t (could be a bad assumption on my part), the fact you didn't get a page saying  "embark api is waiting for CRA dev server to become available" means you got the offline page from the service worker.

Refresh Cockpit (without closing my browser) and I get This site can’t be reached...

I'm not sure why it worked out in that order precisely, but at that point service worker was gone and you experienced the intended behavior.
Rule of thumb:  if at any time you see "workbox" / "precaching" messages in the browser console, maybe because you loaded a cockpit build that still has service worker, then it will take a couple of rounds of reload/restart/refresh to get it to go away, i.e. when loading a build of Cockpit that has the service worker disabled.
If/when this PR is merged, encounters with Cockpit service worker eventually become a thing of the past, though we'll need to publish a new version (maybe 4.0.1) for our users' sake.


Move transform version numbers out of .make.versions to transform-specific file

Summary of changes

For each transform create a transform.config file used for inclusion across the transform's Makefiles (for example, universal/noop/transform.config)
Include this file in transform's Makefile (python/Makefile, ray/Makefile,spark/Makefile,kfp_ray/Makefile)
Remove TRANSFORM_NAME from Makefiles (it is now in transform.config)
Remove/comment out transform version numbers from .make.versions
Expose USE_REPO_LIB_SRC macro in transform Makefiles to help developers switch to using pypi instead of rep source for dpk dependencies.
Fix a problem in .make.defaults so that it does not update the dpk dependencies in a transform's toml when USE_REPO_LIB_SRC=0

Why are these changes needed?
Per issue #639 we would like to allow transforms to update their own version numbers.
However we don't want such a change to trigger ci/cd on all other transforms.
As such we need to move the version number out of .make.versions to a file that is more local to the transform.
Note that this is only the first of the TODOs listed in issue #639, but can be done independent of the others.
Related issue number (if any).
#639

Its not critical, but would improve ci/cd if you merge with the latest dev (it now cancels ci/cd builds from stale commits).  I think you have some old ci/cd builds that are impacting you and others.

@daw3rd scripts/transforms/update_workflow_tags.sh needs to be update to take the versions from the config files.


The localizeLabels prop has no effect on iOS

Describe the bug
The localizeLabels prop has no effect on iOS
To Reproduce
Create a MapView and use the localizeLabels prop. When debugging I can see the call being made to [style localizeLabelsIntoLocale:nil], but this seems to have no effect. I have changed the device's language and preferred language.
Expected behavior
Localized map labels.
Actual behavior
Map labels still displayed in English.
Screenshots
n/a
Versions (please complete the following information):

Platform: iOS
Platform OS: iOS 13.7
Device: iPhone 11
Emulator/ Simulator: yes (also tested on device)
Dev OS: OSX
react-native-mapbox-gl Version 8.1.0
Mapbox GL version ?
React Native Version 0.62.2

Additional context
Tested on device (14.4) and on simulator (13.7).

Edit: My bad. When using one of the languages listed here the labels do get localized. Since the language I need isn't supported, what I actually want is to display the names used locally. For example, country names and some city names are in English, no matter the localizeLabels setting.

May I ask how to change the native code? 🥺

May I ask how to change the native code? 🥺

Sure, this is the patch I'm using (for v8.1.0). Note though that I have hardcoded the locale to Dutch / NL here, you probably want to change that.
diff --git<EMAIL_ADDRESS><EMAIL_ADDRESS>index 9876611..e8a8d38 100644
---<EMAIL_ADDRESS>+++<EMAIL_ADDRESS>@@ -46,6 +46,7 @@ import com.mapbox.mapboxsdk.plugins.annotation.OnSymbolClickListener;
 import com.mapbox.mapboxsdk.plugins.annotation.OnSymbolDragListener;
 import com.mapbox.mapboxsdk.plugins.annotation.Symbol;
 import com.mapbox.mapboxsdk.plugins.annotation.SymbolManager;
+import com.mapbox.mapboxsdk.plugins.localization.MapLocale;
 import com.mapbox.mapboxsdk.style.expressions.Expression;
 import com.mapbox.mapboxsdk.style.layers.Layer;
 import com.mapbox.mapboxsdk.style.layers.Property;
@@ -542,7 +543,8 @@ public class RCTMGLMapView extends MapView implements OnMapReadyCallback, Mapbox
       mLocalizationPlugin = new LocalizationPlugin(RCTMGLMapView.this, mMap, style);
       if (mLocalizeLabels) {
           try {
-              mLocalizationPlugin.matchMapLanguageWithDeviceDefault();
+//              mLocalizationPlugin.matchMapLanguageWithDeviceDefault();
+              mLocalizationPlugin.setMapLanguage(MapLocale.LOCAL_NAME);
           } catch (Exception e) {
               final String localeString = Locale.getDefault().toString();
               Logger.w(LOG_TAG, String.format("Could not find matching locale for %s", localeString));
diff --git<EMAIL_ADDRESS><EMAIL_ADDRESS>index c456ff5..659a6e3 100644
---<EMAIL_ADDRESS>+++<EMAIL_ADDRESS>@@ -546,7 +546,9 @@ - (void)mapView:(MGLMapView *)mapView didFinishLoadingStyle:(MGLStyle *)style
 {
     RCTMGLMapView *reactMapView = (RCTMGLMapView*)mapView;
     if(reactMapView.reactLocalizeLabels == true) {
-        [style localizeLabelsIntoLocale:nil];
+//        [style localizeLabelsIntoLocale:nil];
+        NSLocale *dutch = [NSLocale localeWithLocaleIdentifier:@"nl"];
+        [style localizeLabelsIntoLocale:dutch];
     }

     for (int i = 0; i < reactMapView.sources.count; i++) {


Mldb 1235 temporal agg

This is a first step into supporting the time dimension in more built-in functions and SQL expression in general.  In this PR:

explicitly force GET_LATEST in place where getting many value for a column does not make sense
(WHERE clause, arithmetic with columns, ORDER BY clause, etc..).  To minimize the amount of changes, there are places where I've used GET_LATEST knowing that at some point we will want to support other variable filter
modified ExpressionValue::getFiltered to return the columns in their natural order
fixed an inconsistency in min_timestamp
remove some copying of ExpressionValues

a couple of remarks, but the code looks good.

+1


[STORM-1044] Setting dop to zero does not raise an error

added IllegalArgumentException to .setBolt(...), .setSpout(...), and .setStateSpout(...) in TopologyBuilder

@mjsax
Looks good overall.
I just want to know why one of nimbus unit test is removed, though TopologyBuilder prevents topology with zero dop.

+1


automatically bind the challenge to a custom element

I'm curious if it's possible to handle this situation in Reaptcha: https://developers.google.com/recaptcha/docs/invisible#auto_render
I'll keep this issue to roam around with it a little bit in the free time. 💃

Unfortunately I don't have time in the nearest future to do anything with this so to make things clean and remove things that are unnecessary I'm closing it for now.


Upgrade go version to 1.19 and upgrade dependencies

I get the following error when building with go 1.19, so I upgrade libraries, etc.

../../../../../.go/pkg/mod/github.com/lucas-clemente/quic-go@v0.24.0/internal/qtls/go118.go:6:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration

@yusukebe Could you please review it?

Hi @winebarrel
I also got the same error with go 1.18 and it's fixed by this PR. I'll merge it.
Thank you!

Thank you!


Encoding printer character suport

Incorrect printout when has special characters.

for example GBK utf8
THREAD.write(message.getBytes("GBK"));

for example GBK utf8
THREAD.write(message.getBytes("GBK"));
But,The method write() can't set fontsize,printCustom() can do it
So,How to print GBK and also can set fontsize

the questions that print different fontsizes and encode are resolved with change anthor's codes
Now,I have a new question,what's the "new byte[] { 0x1b, 'a', 0x02 }" mean,how does it can set fontsize and content align,please teach me how to use it or share me some courses ,THANKS!!!

how can I tie the connected printer so that no need to connect every time the application is loaded?

how can I tie the connected printer so that no need to connect every time the application is loaded?

use bluetooth，keep bluetooth always open and connect to printer


feat: impl public methods of Array for ArrayView

#1013
Most of the implementation of functions and tests are taken from Array, except for some slight changes.
Some notes:

[ ] Self-modifying functions are not implemented yet.

(Now only methods that changed the length are not implemented, not sure about that should they be implemented on ArrayView)

[ ] repeat is not implemented.
[ ] flatten is not implmented because I am not sure whether it should accept ArrayView[ArrayView[T]].

The other ones returned Array[Array[T]] are directly transformed into returning ArrayView[ArrayView[T]].

The impl of rev maybe naive.
The impl of op_equal doesn't concern start and end.
The *_inplace methods will affect the original array

Pull Request Test Coverage Report for Build 4023
Details

32 of 64 (50.0%)  changed or added relevant lines in 2 files are covered.
27 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.4%) to 79.557%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

array/view.mbt
32
47
68.09%

builtin/arrayview.mbt
0
17
0.0%

Files with Coverage Reduction
New Missed Lines
%

immut/hashset/HAMT.mbt
4
65.71%

immut/hashset/bucket.mbt
23
0.0%

Totals

Change from base Build 4020:
-0.4%

Covered Lines:
4378

Relevant Lines:
5503

💛  - Coveralls

Could you please run moon info and commit the changes to the interface files?

Could you please run moon info and commit the changes to the interface files?
Sure. I will do it once I add the rest functions.

It seems that running moon info on Windows (at least, on my machine?) will change the .mbti files from LF into CRLF and git will trace all of them.

hi @FlammeShadow thanks for your contributions.
In general, it would be nice to split changes to small contributions so that it is easier to review, take this PR for example, it would be nice to submit changes to different packages separately.
For ArrayView, we would take it as view so that it does not own the resource, in that case, we are happy to add APIs like contains but not copy, the latter requires the allocation of a new view, which defeats the purpose


[CI] disable arrow data source tests temporary

Signed-off-by: Yuan Zhou<EMAIL_ADDRESS>What changes were proposed in this pull request?
Disable arrow data source tests temporary so this wont block tests on other components.
Will fix in the next patch

@zhixingheyi-tian
CI is green on the pull request, but error occurs after merging...
https://github.com/Intel-bigdata/OAP/pull/1413
https://travis-ci.org/github/Intel-bigdata/OAP/builds/704496803?utm_source=github_status&utm_medium=notification
I'm disabling this test first so other pull requests can be tested.


About moving CodePlex articles

As you may know, CodePlex is shutting down this year.
Is it possible for you to move the articles to Github?
Thank you very much.

Yeah, I agree with you. I'm kinda busy at the moment. I will try to do copy the documentation/articles from Codeplex to Github. thanks for you suggestions 👍 :)

Oh ya, by the way, would you help to copy the articles from codeplex to github(here)? :)

Is this useful to you? I copied and pasted them in a .docx
Documentation MySQLBackupNet.docx

Hi ManuelOcana, thanks for your effort for doing the DOCX file.
It actually did not help.
The content has to be added into the [Wiki] page of this site.
It makes no different between
[copy paste from "CodePlex to Github"]
and
[copy paste from "DOCX file to Github"]
It's ok. I will find another time to this work. Stay tune... :)

Don't worry man, I did it to have an offline reference while testing your nice project, I'm fairly new to github and I don't really know how to add or edit articles here, I will look it up in case I can help in any way.

Ok guys, I have already moved the documentation from Codeplex.com to Github.com. Now you can go to the "Wiki" page to read the documentation :) cheers


The svg file can not be displayed in the markdown preview

VSCode Version: Code - Insiders 1.17.0-insider (f7962f0682a76516df51de4856f8ccc5d8ad578a, 2017-09-20T05:24:33.599Z)
OS Version: Windows_NT x64 10.0.16299
Extensions:

Extension
Author (truncated)
Version

vscode-caniuse
aka
0.5.3

markdown-toc
Ala
1.5.6

color-info
bie
0.5.0

markdown-preview-github-styles
bie
0.0.4

regex
chr
0.1.0

vscode-markdownlint
Dav
0.10.1

vscode-eslint
dba
1.3.2

vscode-html-css
ecm
0.1.8

tslint
eg2
1.0.9

vscode-great-icons
emm
2.1.16

vsc-material-theme
Equ
1.0.3

prettier-vscode
esb
0.23.1

beautify
Hoo
1.1.1

minify
Hoo
0.3.0

markdown-shortcuts
mdi
0.8.1

HTMLHint
mka
0.4.0

vs-keybindings
ms-
0.1.7

debugger-for-chrome
msj
3.3.1

color-highlight
nau
2.3.0

material-icon-theme
PKi
2.2.1

vscode-css-peek
pra
1.3.1

stylelint
shi
0.29.1

html5-boilerplate
sid
1.0.1

code-spell-checker
str
1.4.0

vscode-markdown-paste-image
tel
0.5.0

html-preview-vscode
tht
0.1.1

quokka-vscode
Wal
1.0.67

vscode-todo-highlight
way
0.5.11

html-css-class-completion
Zig
1.10.0

(3 theme extensions excluded)

Steps to Reproduce:

Reproduces without extensions: Yes/No

This is by design. We disable svgs by default for security reasons. You can click on the warning in the preview or run the Markdown: Change preview security settings command to change this.
Please see the markdown preview security documentation for more information: https://code.visualstudio.com/Docs/languages/markdown#_markdown-preview-security

@mjbvz Should the previewer render .svg images from within the project, say from an internal Images folder? I ask because in Version 1.17.2 of the software running under Ubuntu 16.04 64 bit, it does not render it.
For instance ![](/Images/BMT GVHD Pathway.svg) renders fine if I go through Pandoc, but not in the previewer. Moreover, I found the same true for .jpg files too.
I found that changing the security preferences made no difference.
So there may yet be a bug ...

@gdvallance Not by default unless you disable the security settings. However I think your problem is that there are spaces in the path, which is not supported by commonmark. Try percent encoding them:
![](/Images/BMT%20GVHD%20Pathway.svg)

@mjbvz Thanks for the reply. It is greatly appreciated. I have tried your suggestion and it did change the rendering from the text to an icon for an image, but not the image itself for both *.svg & *.jpg. Changing security settings did not alter whether the icon rendered or not.

@gdvallance Can you please open an new issue to continue this discussion. It may be that the path is incorrect: ![](/Images/...) will resolve to the Images directory in the root of your workspace


Oops! Koel installation or upgrade didn't finish successfully.

Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙  https://docs.koel.dev
App key exists -- skipping
Generating JWT secret
Migrating database
Data seeded -- skipping
Now to front-end stuff
Oops! Koel installation or upgrade didn't finish successfully.
Please try again, or visit https://docs.koel.dev for manual installation.
😥 Sorry for this. You deserve better.

Hi, this error is unfortunate but a known issue. You can safely ignore it because the "front-end stuff" is already done while building the docker image.
Quoting from the README

/!\ koel:init will fail at the stage where it checks front-end assets. This is known and is due to the absence of node.js and yarn. koel's frontend assets are already built in this image so this step is not necessary.

I'm hoping that future releases of Koel are easier to install and will not produce such errors.
Have a good day !


Request

Add Beam.pro :mappa Please

?

like could u add https://github.com/WatchBeam/emoticons please <3


PFX certificate fetched from keyvault is not working/not in correct format

What steps did you take and what happened:
Installed azure-provider using the command
helm repo add csi-secrets-store-provider-azure https://raw.githubusercontent.com/Azure/secrets-store-csi-driver-provider-azure/master/charts
helm install csi-secrets-store-provider-azure/csi-secrets-store-provider-azure --generate-name
installed the secretproviderclass.yaml and deployment.yaml
apiVersion: secrets-store.csi.x-k8s.io/v1alpha1
kind: SecretProviderClass
metadata:
name: azure-tls
spec:
provider: azure
secretObjects:                                # secretObjects defines the desired state of synced K8s secret objects

secretName: test-secret
type: kubernetes.io/tls
data:

objectName: test-cert-pfx
key: tls.key
objectName: test-cert-pfx
key: tls.crt
parameters:
usePodIdentity: "false"
keyvaultName: "azure-keyvault"                        # the name of the KeyVault
objects: |
array:

|
objectName: test-cert-pfx
objectType: secret
objectVersion: ""
objectFormat: "pfx"
tenantId: "3exxxxxxxxxxxxxxxxxxxxxxxx95"

current output:
apiVersion: v1
data:
tls.crt: ""
tls.key: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=
kind: Secret
not getting the expected contents in the certificate retrieved
What did you expect to happen:
Expect to retrieve the proper certificate in the kubernetes secret and use that certificate in gateway communication
example:
apiVersion: v1
data:
tls.crt: QmFnIEF0dHJpYnV0ZXMNCiAgICBsb2NhbEtlxxx.........xxxxxxx
tls.key: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLxxx...........xxxxxx
kind: Secret
Anything else you would like to add:
would be great if we could get the pfx file as it is from the keyvault
[Miscellaneous information that will assist in solving the issue.]
Which access mode did you use to access the Azure Key Vault instance:
Service principal

Secrets Store CSI Driver version: (use the image tag):
Azure Key Vault provider version: (use the image tag):
Kubernetes version: (use kubectl version and kubectl get nodes -o wide):
Cluster type: AKS

@rahulgkrishna97 If the object type is pfx, then it can't be converted to Kubernetes Secret.
objectFormat: "pfx"

If you want to sync the data as Kubernetes secret, then you can set the objectFormat: pem. This will write the certificate in pem format in the pod and also sync the pem content (splitting cert and key) as kubernetes secret.

Even if you choose Pem, if you secret is not a part of a certificate object in keyvault, it will not work.
If you store your certificate as a pure secret in keyvault (uploading the pfx cert  in keyvault as a secret for eg) the conversion will not occur.
This is a big issue for us because App Service Cerificate store the certificate as secret and not as certificate :( we faced many incident in production because of that with business impact recently 😞

@aramase I've tried as said above and it is still not working as expected , FYI we directly store the CA signed cert(pfx format) as a certificate object in keyvault and it also contains bag attributes, when we try to retrieve the cert those bag attributes are missing and the expected data is not retrieved.

@aramase I've tried as said above and it is still not working as expected , FYI we directly store the CA signed cert(pfx format) as a certificate in keyvault and it also contains bag attributes, when we try to retrieve the cert those bag attributes are missing and the expected data is not retrieved.

@rahulgkrishna97 The bag attributes are not set when the certificate is written to the pod. However that should not affect the actual cert. Is this a cert chain? What is the difference in the PEM written to the pods vs the one uploaded? Are you able to validate the cert and key using openssl?


Getting error adding pod "Invalid Podfile file: cannot load such file -- /Users/[project]/apps/mobile/node_modules/react-native-permissions/scripts/setup.

Bug summary
I got an error trying to access request Push Permission in iOS saying "Notifications pod is missing". So, I added   pod 'Permission-Notifications', :path => '../node_modules/react-native-permissions/ios/Notifications.podspec' as suggested. But I'm still getting some error saying
[!] Invalid Podfile file: cannot load such file -- /Users/thidasa/[folder]/apps/mobile/node_modules/react-native-permissions/scripts/setup.
And when I looked at
My react-native version is 0.67.3 . What am I missing ?
This is my pod file
$RNFirebaseAsStaticFramework = true
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/@nrwl/react-native/nx_post_install'
require_relative '../node_modules/react-native-permissions/scripts/setup'

platform :ios, '13.0'

setup_permissions([
  # 'AppTrackingTransparency',
  # 'BluetoothPeripheral',
  # 'Calendars',
  # 'Camera',
  # 'Contacts',
  # 'FaceID',
  # 'LocationAccuracy',
  # 'LocationAlways',
  # 'LocationWhenInUse',
  # 'MediaLibrary',
  # 'Microphone',
  # 'Motion',
  'Notifications',
  # 'PhotoLibrary',
  # 'PhotoLibraryAddOnly',
  # 'Reminders',
  # 'Siri',
  # 'SpeechRecognition',
  # 'StoreKit',
])

target 'Mobile' do
  config = use_native_modules!
  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )

  # # Enables Flipper.
  # #
  # # Note that if you have use_frameworks! enabled, Flipper will not work and
  # # you should disable the next line.
  use_flipper!(configurations: ['Debug'])

  pod 'MarketingCloudSDK', '8.0.13'

  pod 'Permission-Notifications', :path => '../node_modules/react-native-permissions/ios/Notifications/Permission-Notifications.podspec'

I'm getting err
Library version
3.8.0
Environment info
System:
    OS: macOS 14.0
    CPU: (10) arm64 Apple M1 Pro
    Memory: 87.80 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.14.0/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.12.1 - /Users/thidasa/.rvm/gems/ruby-3.1.3/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.3 AI-213.7172.25.2113.9123335
    Xcode: 15.0/15A240d - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.17 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: * => 17.0.2
    react-native: * => 0.67.3
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce
Mentioned in Bug Summary
Reproducible sample code
$RNFirebaseAsStaticFramework = true
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/@nrwl/react-native/nx_post_install'
require_relative '../node_modules/react-native-permissions/scripts/setup'

platform :ios, '13.0'

setup_permissions([
  # 'AppTrackingTransparency',
  # 'BluetoothPeripheral',
  # 'Calendars',
  # 'Camera',
  # 'Contacts',
  # 'FaceID',
  # 'LocationAccuracy',
  # 'LocationAlways',
  # 'LocationWhenInUse',
  # 'MediaLibrary',
  # 'Microphone',
  # 'Motion',
  'Notifications',
  # 'PhotoLibrary',
  # 'PhotoLibraryAddOnly',
  # 'Reminders',
  # 'Siri',
  # 'SpeechRecognition',
  # 'StoreKit',
])

target 'Mobile' do
  config = use_native_modules!
  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )

  # # Enables Flipper.
  # #
  # # Note that if you have use_frameworks! enabled, Flipper will not work and
  # # you should disable the next line.
  use_flipper!(configurations: ['Debug'])

  pod 'MarketingCloudSDK', '8.0.13'

  pod 'Permission-Notifications', :path => '../node_modules/react-native-permissions/ios/Notifications/Permission-Notifications.podspec'

Remove pod 'Permission-Notifications', keep setup_permissions. Update the lib to the latest version. Don't forget to run pod install, clean Xcode DerivedData, just in case, run it again.

Thanks @zoontek .
I checked this. But it doesn't open the Push Notification permission modal. How can I get it requested from react-native js code ?
For reference, for Android we can get it worked from request(PERMISSIONS.ANDROID.POST_NOTIFICATIONS); . But for iOS I don't see a way to request the Push Notification Permission

Check the /example app on this repository.

Read the documentation: https://github.com/zoontek/react-native-permissions#requestnotifications


ci(build-and-test-differential): fix cache and merge clang-tidy

Description

Enhanced the build-and-test workflow by adding steps to export CUDA state as a variable for the cache key.
Integrated the clang-tidy differential job into the build-and-test workflow, removing the need for a separate workflow file.
Added a TODO comment in the GNSS Poser core file for testing purposes.

Changes walkthrough 📝
Relevant filesMiscellaneous

gnss_poser_core.cppAdd TODO comment for testing in GNSS Poser core

sensing/gnss_poser/src/gnss_poser_core.cpp

Added a TODO comment for testing purposes.

+2/-0

Configuration changes

build-and-test-differential.yamlEnhance build-and-test workflow with CUDA state and clang-tidy

.github/workflows/build-and-test-differential.yaml
Added steps to export CUDA state as a variable for cache key.  Integrated clang-tidy differential job into the build-and-test workflow.

+54/-0

clang-tidy-differential.yamlRemove standalone clang-tidy-differential workflow

.github/workflows/clang-tidy-differential.yaml

Removed the standalone clang-tidy-differential workflow.

+0/-55

Related links
Parent Issue:

https://github.com/autowarefoundation/autoware.universe/issues/7668

Follow up from:

https://github.com/autowarefoundation/autoware-github-actions/pull/304

How was this PR tested?
Notes for reviewers
❌ Old broken caches:

cuda and nocuda separation is not made.
test part caches its own thing, doesn't use cache from build...

✅ Caches with this PR:

colcon-test does not use cache anymore since it is on the same machine
clang-tidy uses new (cuda, nocuda) separated caches

Interface changes
None.
Effects on system behavior
None.

/describe

https://github.com/autowarefoundation/autoware.universe/actions/runs/9695836929/job/26756753036?pr=7723#step:9:292

cache was restored successfully ✅

@veqcc -san, once this is merged, I will create the PR to link the new

https://github.com/autowarefoundation/autoware/pull/4918
separete .clang-tidy-ci file to the workflow.

/describe


Add JaCoCo test coverage with Coveralls integration.

I setup some tools for coverage reporting:

Run coverage with gradle's built in JaCoCo plugin, just run gradle jacocoTestReport
Setup plugin for Coveralls integration.
Instructions on how to integrate with Travis is provided on the plugin's readme: coveralls-gradle-plugin

Thanks Sanketh, Coveralls is pretty awesome.


Routes, Scopes, Usage Multilang t in routes

I am trying to use your multilang package for laravel, and now i am trying to find way how to use it in the routes with scope and in another place with another scope.
I want use t('something') as url for example:
Route::get(t('something')."/".t('something2'), '\Modules\Page\Http\Controllers\Front\PageController@index')->name('welcome');
i need for usage in the routes another scope (use scopes as categories for better recognizing)
i tried app('multilang')->setScope('admin'); for routes before Multilang routes
and another inside controller
app('multilang')->setScope('sitel');
$text = t('test');
but only last aplied (global)
Please can u tell me how i can create groups of texts with scope, or how to use scope properly.

I want use t('something') as url for example:
Route::get(t('something')."/".t('something2'), '\Modules\Page\Http\Controllers\Front\PageController@index')->name('welcome');

Its a bad practice, dont do this. Explain to me what you want to achieve and maybe I can suggest better solution

i need for usage in the routes another scope (use scopes as categories for better recognizing)
but only last aplied (global)

I will check, maybe its a bug

I want use it for multilanguage routing
for example:
http://web.com/en/welcome
http://web.com/de/wilkome
http://web.com/{lang}/name-of-route-in-{lang}-language
something like this, but you wrote it is not good practise:
MultiLang::routeGroup(function($router) {
Route::get(t('language-identifikator-of-route-for-all-language'), '\Modules\Page\Http\Controllers\Front\PageController@index')->name('welcome');
});


WIP: Fix deadlock

A deadlock can occur if Acquire fails as wg.Done will not be called in the goroutine but we called wg.Add before Acquier. Link to related lines.
This can be eliminated by either moving wg.Add just before creating goroutine or by calling wg.Done also before returning error. I am not sure which one is better?
Another question: Should we append error returned from g.Go to multiError?
By the way sorry for questions in PR but i thought it would be better to send test code with the questions so asking from PR instead of an issue.

@ebati Yes I can confirm this deadlock as I was having this too.

Thank @ebati.

This can be eliminated by either moving wg.Add just before creating goroutine or by calling wg.Done also before returning error. I am not sure which one is better?

We should wg.Done() once there is an error in the acquire.

Another question: Should we append error returned from g.Go to multiError?

That's a good idea.
I pushed a commit that fixes the deadlock and also accumulates the error in  group.Go: https://github.com/fatih/semgroup/pull/2/commits/197eab7af580e029e85fc4710568bec3ac630a77


Changes to support meta data

This set of changes lays the groundwork for meta data.

All controller actions are now backed by an operation.
OperationsProcessors now support callback for each operation.

This allows further processing to happen, such as collecting the record count.

Adds a ResponseDocument that can serialize meta data
OperationsProcessors can be set by a configuration option, in addition to overriding at the controller level (should probably be deprecated in the docs).

There's still four lines of error handling code that isn't covered by tests. And the Readme needs to be updated for the new features. But I want to get this in sooner rather than later.

Oh my this is a big change but I really like how it's now a very easy to follow pipeline.
I haven't tried it out yet, but just looking at the changes I see greatness.
Just to clarify though, the end result of this, besides having an nice and clear way override and tweak the api, is that it takes care of the top-level meta, it does not do anything for resource- or link-level metas yet, right?

@slaskis This is just a start. I hope to get support for resource level meta and link level meta in soon. But first I plan to work on bringing the project into compliance with the latest RC4 version of JSONAPI.

Ran this branch in our app and tests are passing. Thanks!

I tested this against our app and just saw one issue (because of an extra action that we added to one controller). I added a guard to prevent the problem in this PR: https://github.com/cerebris/jsonapi-resources/pull/222.