Please use the Map interface instead of ConcurrentHashMap in ThreadSafeRequestDelayControl to keep the java7 and java6 support

We got this lately
java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
	at com.github.tomakehurst.wiremock.global.ThreadSafeRequestDelayControl.cancelAllDelays(ThreadSafeRequestDelayControl.java:51)
	at com.github.tomakehurst.wiremock.global.ThreadSafeRequestDelayControl.clearDelay(ThreadSafeRequestDelayControl.java:38)
	at com.github.tomakehurst.wiremock.core.WireMockApp.resetMappings(WireMockApp.java:141)
	at com.github.tomakehurst.wiremock.WireMockServer.resetMappings(WireMockServer.java:293)

There is an explanation of why this exception is thrown at https://gist.github.com/AlainODea/1375759b8720a3f9f094. Please just use the Map interface in the declaration at ThreadSafeRequestDelayControl. I just checked and the class is not using any of the special methods in the ConcurrentMap.

Presume you're using v1.57? If so, I built this version with jdk8 not realising it caused this problem.
Could you try 2.0.4-beta? I've been building the beta branch exclusively on jdk7 so it shouldn't exhibit this problem.

@tomakehurst Yes, it works in 2.0.4-beta

If you are not going to support the 1.x version, feel free to close this. I monkey patched it in our test until we move to 2.x.

Sure, thanks.
The plan is to get 2.x out of beta pretty soon. The main impediment is a resource leak I've discovered. If i can't get that fixed soon I'll release a 1.58 with Java 7 support properly restored.

I've just released v1.58, which just fixes this problem.

Nice one!


[misc] Don't render the Form menu's dropdown list twice

Form menu's dropdown list is not rendered twice

In view mode it still renders it twice.


libdokan: Add test for mkdir new folder

Just a new test. Should catch recent regression fixed on friday in master.

LGTM :thumbsup:


Bumps sbt to 1.3.10

I'm closing this and taking the changes back to #100 (they got related because of ALPN support in jdk8u252)


Fix input capture backdrop

The input capture overlay (shown when pressing left Ctrl) was broken by the switch to a multi-window live inspector, we should fix it.

Restored input capture backdrop , though only behind the target element (see commit 3dfc0bd757d22e731e6015bd02b7e53ca1c0543b).


additional wiki encode corrections

A few locations in the Wiki translator processes user-defined text without encoding in a fashion which isn't save for the conversion-to-storage-format request. One location is within visit_definition for definition entries and another exists in visit_desc_parameter which is used when processing description lists (e.x. autodoc).
This change corrects #117.

If pull request #121 is approved, this pull request no longer required.

Dropping this change in support for storage-format based pull requests.


fix(version): update fabric8-stack-analysis-ui to 0.1.23

There were the following issues with your Pull Request

Commit: cbe96768750de82bc89b9cba95151477eb0289a4
Your subject line is longer than 50 characters

Guidelines are available at https://github.com/fabric8io/fabric8-ui

This message was auto-generated by https://gitcop.com


There is an issue in landscape mode for iOS8

I have tested the libary in landscape mode on iOS8. Not showing correctly.

Same issue.I found in landscape mode also draw portrait rect.


Sound starts playing 1-2 seconds into the sound file. Also currentTime is off by that amount

react-native-cli: 2.0.1
react-native: 0.51.0
react-native-sound: 0.10.5
I am using a Player class to encapsulate methods dealing with sound:

const Sound = require('react-native-sound');

Sound.setCategory('Playback', false);

class Player {
  soundFile = new Sound('');

  loadAndPlay = (audioPath: string, lessonID: number) => {
    this.soundFile = new Sound(audioPath, Sound.DOCUMENT, error => {
      if (error) {
        // Failed to load sound.
        downloadsStore.removeDownloadedFile(this.lessonID);
        return;
      }
      // Play file.
      this.enableLockscreenControls();
      this.play();
    });

  play = () => {
    doStuff()
    this.soundFile.play();
  }
}

For any soundfile I load for the first time after app launch, the starting time is off by a few seconds, playback starts several seconds into the sound file, and also this.soundFile.currentTime() returns a time that is a few seconds off. This is the biggest indicator, that it is not a bug in our code, but within the package.
calling soundFile.setCurrentTime(0) does not help. The hack that I came up with that "fixes" the issue is simply playing a 1 second sound file of silence at the start of the app.
Edit:
apparently not even this hack works.

Turns out the problem was calling functions from the
'react-native-music-control' package before calling play.


RSDK-4760 consume .a from rust-utils

what changed

download the .a instead of the .so for libviam_rust_utils
I did this because the .so ends up in a nested directory and therefore adds complexity to module bundling; with the .a, there's nothing to bundle
I think this makes the distributable size for a C++ module smaller

incidental changes

added sstream to examples/modules/simple to fix compile error; not sure why this worked before + is failing now
convenience change to show lint diff in CI when it fails

optional configuration

if we want to preserve the old behavior, I can put the file extension behind a config flag

possible extra testing

~:apple: this works on x86 + arm linux per this module-example-cpp CI run, but I didn't try this on a mac~ -> works on mac now

I can no longer build/install the C++ SDK after this change; let's sync tomorrow and I can show you the errors I'm seeing. I'm on an M2 Mac.

I can no longer build/install the C++ SDK after this change; let's sync tomorrow and I can show you the errors I'm seeing. I'm on an M2 Mac.

I'm on an M1 mac, also unable to build with this change.

oof I should have tested on mac
I see a bunch of security_framework:: undefined symbols with make viamsdk on mac M1, I'll debug

I made the static linkage platform-specific: it's now dylib on mac, static everywhere else
This fixes the build issue on mac. In some ways it's kicking the can down the road (like don't we want static rust everywhere eventually). It's not great that bundling a module will be different on mac than linux (you'd need to add the viam-rust .dylib, probably in its relative path).
Can dig more into the mac link issue if either of you think this is high-pri; my guess is the fix would end up being one of:

add static linkage for the security-framework library
or adding dynamic linkage to the security-framework library in the viamsdk target

oops turned out the fix was a one-liner to add -framework on macos
make viamsdk works on macos with static libviam_rust_utils.a

Still LGTM; can build on M2 mac and I see:
Installing: /Users/benji.rewis/Code/viam-cpp-sdk/build/install/lib/libviam_rust_utils.a.


Add the NSNet example

The NSNet is one of the first wave models.

NSNet2 PR is in review #22

closed by #22 merging.

closed by #22 merging.


Windows - Failed to load when loading vite dev server resources

Laravel Vite Plugin Version: 0.2.3
Laravel Version: 9.x-dev (to include vite changes)
Node Version: 16.14.0
NPM Version: 8.4.1

Description:
In Windows, when loading the resources from Vite it fails to load as <IP_ADDRESS> is an invalid address in Windows and doesn't get rerouted to <IP_ADDRESS>
Chrome's output: Failed to load resource: net::ERR_ADDRESS_INVALID <IP_ADDRESS>:5173/@vite/client:1
Manually going into the generated hot file and changing the url to http://localhost:5173 instead of http://<IP_ADDRESS>:5173 allows all the files to load.
Steps To Reproduce:
Set up Laravel Vite Plugin as outlined in the UPRADE.md on Windows
I'm using Laravel Sail (with the 5173 port mapped) through WSL, although I don't know if that makes a difference.
Due to the line setting                         host: '<IP_ADDRESS>',, even changing the host in the vite.config.js file doesn't help as it gets overwritten by this plugin.

Thanks for reporting this, @shoeyn.
When running inside Sail, the plugin tells Vite to listen on all IPv4 addresses (<IP_ADDRESS>) inside the container so that the Vite dev server can be accessed from outside the container. This has the side effect of making it harder to determine a "real" address to put in the hot file, because Vite is listening on multiple addresses (localhost and whatever random IP the container gets).
If we didn't override server.host when run in Sail, then setting it to localhost or <IP_ADDRESS> would fix the hot file, but cause the Vite dev server to be inaccessible outside the container.
Some solutions I can think of:

We could always write localhost to the hot file when running inside Sail.
We could set server.host to the container's IP address (using Node's os.networkInterfaces()).

I'll discuss this with @timacdonald tomorrow. In the meantime, it should work if you are able to run npm run dev outside of the container because then it will just listen on localhost.

Hi @shoeyn,
As a first step, I have created https://github.com/laravel/vite-plugin/pull/30 that will allow you to customise the server.host value when running inside Sail.
As noted above, you won't be able to just set it to localhost because then the Vite server will only listen on localhost inside the container.
You would need to configure it in your vite.config.js something like this:
server: {
    host: Object.values(os.networkInterfaces()).flat().find(info => info?.internal === false)?.address,
}

or, a simpler, but potentially more fragile option:
server: {
    host: os.networkInterfaces().eth0?.[0].address,
}

I'm going to close this for now and we'll get that change out in the next release. If you have other suggestions or are still having trouble please feel free to re-open the issue.

Sorry to hear this @shoeyn! I didn't realise that on Windows you wouldn't be able to communicate with the container via its IP address.
It does seem like your suggestions might be the only way forward.

I'm concerned about setting localhost in the hot file because on some machines this resolves to the IPv6 version (::1) and Docker doesn't always listen on IPv6.
We could potentially set it to <IP_ADDRESS> to guarantee IPv4.
However, forcing a local address in the hot file would make things even harder if wanted to get sail share working with the Vite dev server.
There is maybe another option...
Vite allows you to configure where the client should look for the HMR server, using server.hmr.
Would you mind testing against this branch?
https://github.com/laravel/vite-plugin/tree/use-hmr-host-when-set
I think you'll want to set this in your vite.config.js (leaving server.host unset):
server: {
    hmr: {
        host: 'localhost',
    },
}

Dear,
I have a similar issue and am using Laravel Sail for my application. I attempted the suggested fixes, but my application is still running at host http://<IP_ADDRESS>:5173.

@pamitvn Have you manually built the https://github.com/laravel/vite-plugin/tree/use-hmr-host-when-set branch and tested against that? The changes aren't in a released build so changing the vite.config.js alone won't fix it currently.

@pamitvn Have you manually built the https://github.com/laravel/vite-plugin/tree/use-hmr-host-when-set branch and tested against that? The changes aren't in a released build so changing the vite.config.js alone won't fix it currently.

Thank you, it worked.

I Found another simple but temporary solution,
Inside public/hot, change from
http://<IP_ADDRESS>:5173

to
http://localhost:5173

I noticed another issue where the WebSocket connection failed constantly (pusher), but all the App Keys were configured correctly.

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=api-cluster.pusher.com
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=ap1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

Thanks so much for testing this @shoeyn! I'm glad we've found a way to support it!
I've opened a PR for the branch at https://github.com/laravel/vite-plugin/pull/42
We will continue to refine this as more feedback comes in. Ultimately I'd prefer if it "just worked" for you without a config option.

Guys, does this issue relate to my problem?
I downloaded "use-hmr-host-when-set" branch files, then compile it by running run npm run build and then replaced node_modules\laravel-vite-plugin\dist with compiled files.
My vite config:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
    server: {
        hmr: {
            host: 'localhost',
        },
    },
    plugins: [
        laravel({
            input: 'resources/js/app.js',
            ssr: 'resources/js/ssr.js',
        }),
        vue({
            template: {
                transformAssetUrls: {
                    base: null,
                    includeAbsolute: false,
                },
            },
        }),
    ],
});

My docker-compose.yml:
version: '3'

networks:
  laravel:
    driver: bridge

services:
  php:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: php
    restart: unless-stopped
    tty: true
    volumes:
      - ./src:/var/www/html
    ports:
      - "9000:9000"
    networks:
      - laravel

  nginx:
    image: nginx:stable-alpine
    container_name: nginx
    ports:
      - "80:80"
    volumes:
      - ./src:/var/www/html
      - ./conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - php
      - pgsql
      - redis
    networks:
      - laravel

  pgsql:
    image: postgres:14
    container_name: postgres
    restart: unless-stopped
    tty: true
    ports:
      - "5432:5432"
    environment:
      POSTGRES_DB: farmweb
      POSTGRES_USER: farmweb
      POSTGRES_PASSWORD: secret
      PGPASSWORD: secret
      SERVICE_TAGS: dev
      SERVICE_NAME: postgresql
    networks:
      - laravel

  composer:
    image: composer:latest
    container_name: composer
    volumes:
      - ./src:/var/www/html
    working_dir: /var/www/html
    depends_on:
      - php
    networks:
      - laravel

  npm:
    image: node:16
    container_name: npm
    volumes:
      - ./src:/var/www/html
    ports:
      - "3000:3000"
    working_dir: /var/www/html
    entrypoint: ['npm']

  artisan:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: artisan
    volumes:
      - ./src:/var/www/html
    depends_on:
      - php
      - pgsql
    working_dir: /var/www/html
    entrypoint: ['php', '/var/www/html/artisan']
    networks:
      - laravel

  redis:
    image: redis:7-alpine
    container_name: redis
    restart: unless-stopped
    tty: true
    ports:
    - "6379:6379"
    networks:
      - laravel

So then I run npm run dev and trying to fetch http://localhost:3000/@vite/client I have connection refused.
Windows WSL2.
I spent more than 5 hours solving this problem, but I cant :(

Guys, does this issue relate to my problem? I downloaded "use-hmr-host-when-set" branch files, then compile it by running run npm run build and then replaced node_modules\laravel-vite-plugin\dist with compiled files.
So then I run npm run dev inside my docker container and trying to fetch http://localhost:3000/@vite/client from my browser I have connection refused.
My vite config:
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
    server: {
        hmr: {
            host: 'localhost',
        },
    },
    plugins: [
        laravel({
            input: 'resources/js/app.js',
            ssr: 'resources/js/ssr.js',
        }),
        vue({
            template: {
                transformAssetUrls: {
                    base: null,
                    includeAbsolute: false,
                },
            },
        }),
    ],
});

My docker-compose.yml:
version: '3'

networks:
  laravel:
    driver: bridge

services:
  php:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: php
    restart: unless-stopped
    tty: true
    volumes:
      - ./src:/var/www/html
    ports:
      - "9000:9000"
    networks:
      - laravel

  nginx:
    image: nginx:stable-alpine
    container_name: nginx
    ports:
      - "80:80"
    volumes:
      - ./src:/var/www/html
      - ./conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - php
      - pgsql
      - redis
    networks:
      - laravel

  pgsql:
    image: postgres:14
    container_name: postgres
    restart: unless-stopped
    tty: true
    ports:
      - "5432:5432"
    environment:
      POSTGRES_DB: farmweb
      POSTGRES_USER: farmweb
      POSTGRES_PASSWORD: secret
      PGPASSWORD: secret
      SERVICE_TAGS: dev
      SERVICE_NAME: postgresql
    networks:
      - laravel

  composer:
    image: composer:latest
    container_name: composer
    volumes:
      - ./src:/var/www/html
    working_dir: /var/www/html
    depends_on:
      - php
    networks:
      - laravel

  npm:
    image: node:16
    container_name: npm
    volumes:
      - ./src:/var/www/html
    ports:
      - "3000:3000"
    working_dir: /var/www/html
    entrypoint: ['npm']

  artisan:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: artisan
    volumes:
      - ./src:/var/www/html
    depends_on:
      - php
      - pgsql
    working_dir: /var/www/html
    entrypoint: ['php', '/var/www/html/artisan']
    networks:
      - laravel

  redis:
    image: redis:7-alpine
    container_name: redis
    restart: unless-stopped
    tty: true
    ports:
    - "6379:6379"
    networks:
      - laravel

Windows WSL2.
I spent more than 5 hours solving this problem, but I cant :(

https://github.com/laravel/vite-plugin/issues/40

@RomanSarvarov have a look at https://github.com/laravel/vite-plugin/issues/40

@RomanSarvarov have a look at #40

Not sure. My app_url is http://localhost and I have Connection Refused error message, instead of 404 that I see in #40 issue.

@RomanSarvarov can you try using the --host or --host <IP_ADDRESS> option when launching the Vite dev server?

@bricehartmann there are not changes :(
docker-compose -f docker-compose.dev.yml run --rm npm run dev -- --host
docker-compose -f docker-compose.dev.yml run --rm npm run dev -- --host=<IP_ADDRESS>

Vite config is default.

Still have connection refused :(

I found the solution.
docker-compose -f docker-compose.dev.yml run --publish 3000:3000 npm run dev

Idk why command above is working, and docker-compose -f docker-compose.dev.yml run npm run dev is not, cause In my docker compose file I already opened port 3000:
npm:
    image: node:16
    container_name: npm
    volumes:
      - ./src:/var/www/html
    ports:
      - "3000:3000"
    working_dir: /var/www/html
    entrypoint: ['npm']

Unclear.

Hi @renatoxm, this was fixed in https://github.com/laravel/vite-plugin/pull/42 but it hasn't been tagged yet.

host hmr

How did you configure hmr host?

Hello Boy

I have tried all of those ,it doesn't really help me .

fixed for me by using --service-ports:
docker-compose run --rm --service-ports npm run dev

(I have separated container for npm)

Windows 10, WSL2, Docker Desktop.
Just installed a very fresh Laravel version: curl -s https://laravel.build/example-app | bash
and Jetstream: sail shell and there (inside) php artisan jetstream:install inertia && php artisan migrate && npm install
Still having an original issue:

Chrome's output: Failed to load resource: net::ERR_ADDRESS_INVALID <IP_ADDRESS>:5173/@vite/client:1

Still possible to solve with:

Manually going into the generated hot file and changing the url to http://localhost:5173 instead of http://<IP_ADDRESS>:5173 allows all the files to load.

I've tried to adjust Vite config:
server: {
    hmr: {
        host: 'localhost',
    },
},

This changed the url inside public/hot file to localhost, however another error arises in chrome console:
GET http://localhost:5173/@vite/client net::ERR_EMPTY_RESPONSE profile:18          GET http://localhost:5173/resources/js/app.js net::ERR_EMPTY_RESPONSE
Also tried just server: {host: 'localhost'}, in Vite config, but the error is the same.

This worked for me.

failed to load config from D:\xammp\htdocs\laravel9vite\vite.config.js
error when starting dev server:
ReferenceError: Path is not defined
at Object. (D:\xammp\htdocs\laravel9vite\vite.config.js:46:20)
at Module._compile (node:internal/modules/cjs/loader:1126:14)
at Object._require.extensions. [as .js] (file:///D:/xammp/htdocs/laravel9vite/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:63096:24)
at Module.load (node:internal/modules/cjs/loader:1004:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at loadConfigFromBundledFile (file:///D:/xammp/htdocs/laravel9vite/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:63104:21)
at loadConfigFromFile (file:///D:/xammp/htdocs/laravel9vite/node_modules/vite/dist/node/chunks/dep-0fc8e132.js:62963:34)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

please help me

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/sass/app.scss',
'resources/js/app.js',
],
refresh: true,
}),
],
resolve: {
alias: {
'bootstrap':Path.resolve(__dirname ,'node_modules/bootstrap'),
},
},
});

@mariom9267 , did you try below?
server: {
    hmr: {
        host: 'localhost',
    },
},

Hello,
I'm not sure if it can be useful, but I had the same trouble using sail on an external server.
I solved the problem with the aforementioned entry in the vite.config.js, with the name of the server (instead of localhost – which makes sense for an external dev server).
server: {
hmr: {
host: '',
},
},

Thank you very much @amitleuva1987 your message above helped me.

I'm concerned about setting localhost in the hot file because on some machines this resolves to the IPv6 version (::1) and Docker doesn't always listen on IPv6.
We could potentially set it to <IP_ADDRESS> to guarantee IPv4.
However, forcing a local address in the hot file would make things even harder if wanted to get sail share working with the Vite dev server.
There is maybe another option...
Vite allows you to configure where the client should look for the HMR server, using server.hmr. The Laravel Vite plugin should probably respect this, if set.
Would you mind testing against this branch?
https://github.com/laravel/vite-plugin/tree/use-hmr-host-when-set
I think you'll want to set this in your vite.config.js (leaving server.host unset):
server: {
    hmr: {
        host: 'localhost',
    },
}

Thanks, it saved my day!!!

This worked for me:
docker-compose run --rm --publish 5173:5173 npm run dev -- --host

This worked for me:
docker-compose run --rm --publish 5173:5173 npm run dev -- --host

thanks it works, just enable ports in docker-compose.yml

We must take a deep breath, we must not go crazy, really not everything is rosy, but I feel that the end of this is to deal with those problems once and create your scripts or Makefiles to automate future applications.
On Windows maybe you should place the hot file, many times in public/hot and edit it for http:://localhost:5173, always check your browser console to see where it is redirecting vite to look for the files

@karchx I wish I could stop the "crazy" but as I say trying to fix environment issues is over taking actual work these days.
I went through this thread and tried the various suggestions to no avail. And strangely now it does the same on my windows pc at home. Luckily for me I have Laravel Mix setup side by side with Vite so I am using Mix for the time being just so I can get some work done.

I understand the suffering, but sometimes it is necessary to get used to new things, it is something that defines us as human beings. But try that from the file, hot worked for me in WSL2 on Windows

When I tried editing hot on WSL2 it worked, but for only one page view. Any subsequent pages view its broke again.
What made me give up was when it happened on Linux too. I have two Windows 10 PCs and one Ubuntu machine and its doing it on all of them as of today.

@warmwhisky I have it working on WSL2 by adding protocol: 'ws' to the hmr config, I don't know why that works but 🤷 . So like :
 server: {
        hmr: {
            host: 'localhost',
            protocol: 'ws',
        },
    }
    ```
    in combo with `npm run dev -- --host`.

@da-mask I cannot try this on Windows WSL2 right now, but on Ubuntu without protocol: 'ws' I get the same error. I have also tried this with 'sail npm run dev' using docker npm and also 'npm run dev' outside of docker using Node 18 in Ubuntu. Still now joy

@karchx I get the following from docker ps
<IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:5173->5173/tcp, 8000/tcp
@da-mask I'm back on Windows WSL2. I still get the same error with npm run dev -- --host & protocol: 'ws'
Thankfully I have webpack working. I'm so busy at the moment that I don't have the time to debug this issue.
I appreciate your time and hope this issue gets resolved.

I tried everything that is said in this thread but still no solution. I am using Windows 11, with Laravel Sail, WSL2 & Ubuntu

What helped me was to put the ip shown when running sail npm run dev, into the vite.config file:
    server: {
        host: '**my-ip'**,
        watch: {
            usePolling: true,
        },
    },

However the localhot loads forever when visiting localhost while having bundled with the dev command... so i bundle with 'sail npm run build' which calls this: vite build && vite build --ssr

Adding
server: {
        hmr: {
            host: 'localhost',
        }
},

worked for me. Thanks @jessarcher

This worked for me:
docker-compose run --rm --publish 5173:5173 npm run dev -- --host

you saved my life thanks man

docker-compose run --rm --publish 5173:5173 npm run dev -- --host
Is giving me http://[::]:5173 in the public/hot file.
This is my command: docker-compose run --rm --service-ports npm run dev -- --host
This is my vite config:
``import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/css/app.css',
'resources/js/app.js',
'resources/js/fa/all.min.js'
],
refresh: true,
server: {
hmr: {
host: 'localhost',
},
}
}),
],
});
``

Im having problems with vite inside a docker container. I hope anyone knows a solution because all the topics i found related to this are not the solution. Im on WSL2, Ubuntu20.
The vite server isnt responding http://[::]:5173 in the public/hot file.
 Thanks a lot :)

Tested in Laravel 10 with Vite on default port.
Add this section to vite.config.js
    server: {
        host: '<IP_ADDRESS>',
        hmr: {
            clientPort: 5173,
            host: 'localhost',
        },
    }

Also had this issue (Sail running in MacOS Ventura 13.4.1) and no amount of configuring the server option in the vite.config.js made any difference.  The solution offered by @karchx saved me:

This worked for me:
docker-compose run --rm --publish 5173:5173 npm run dev -- --host

Running docker ps before this command I did not see that port 5173 was being exposed, despite adding it to my docker-compose.yml as instructed in the docs:
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'

After running the docker-compose command above, I now see the following:
2343f39f0219   sail-8.1/app  "start-container". 19 seconds ago  Up 16 seconds  <IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:5173->5173/tcp (missing before), 8000/tcp   laravel.test-1

Did I miss (or are the docs missing) a step in order to automatically pick up and expose this new port when running your containers?  From the amount of thumbs up on the solution, it does not appear I was the only one having this problem.  Thank you everyone for your help troubleshooting.

If it is not indiscretion I could see your docker compose yaml @Stetzon

Sure, here you go
# For more information: https://laravel.com/docs/sail
version: '3'
services:
    laravel.test:
        build:
            context: ./vendor/laravel/sail/runtimes/8.1
            dockerfile: Dockerfile
            args:
                WWWGROUP: '${WWWGROUP}'
        image: sail-8.1/app
        extra_hosts:
            - 'host.docker.internal:host-gateway'
        ports:
            - '${APP_PORT:-80}:80'
            - '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
        # depending on connecting mysql client, may need to use older plugin
        # command: --default-authentication-plugin=mysql_native_password
        environment:
            WWWUSER: '${WWWUSER}'
            LARAVEL_SAIL: 1
            XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
            XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
        volumes:
            - '.:/var/www/html'
        networks:
            - sail
        depends_on:
            - mysql
            - redis
    mysql:
        image: 'mysql:8.0'
        ports:
            - '${FORWARD_DB_PORT:-3306}:3306'
        environment:
            MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
            MYSQL_DATABASE: '${DB_DATABASE}'
            MYSQL_USER: '${DB_USERNAME}'
            MYSQL_PASSWORD: '${DB_PASSWORD}'
            MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
        volumes:
            - 'sailmysql:/var/lib/mysql'
        networks:
            - sail
        healthcheck:
          test: ["CMD", "mysqladmin", "ping"]
    redis:
        image: 'redis:alpine'
        ports:
            - '${FORWARD_REDIS_PORT:-6379}:6379'
        volumes:
            - 'sailredis:/data'
        networks:
            - sail
        healthcheck:
          test: ["CMD", "redis-cli", "ping"]
    mailhog:
        platform: linux/amd64 # no arm64 support yet
        image: 'mailhog/mailhog:latest'
        ports:
            - '${FORWARD_MAILHOG_PORT:-1025}:1025'
            - '${FORWARD_MAILHOG_DASHBOARD_PORT:-8025}:8025'
        networks:
            - sail
networks:
    sail:
        driver: bridge
volumes:
    sailmysql:
        driver: local
    sailredis:
        driver: local

GET
http://<IP_ADDRESS>:5173/resources/assets/js/index1.js
GET
http://<IP_ADDRESS>:5173/resources/assets/js/index.js
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. node.js:401:1
Loading module from “http://<IP_ADDRESS>:5173/resources/assets/js/index.js” was blocked because of a disallowed MIME type (“”).
index
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://<IP_ADDRESS>:5173/resources/assets/js/index.js. (Reason: CORS request did not succeed). Status code: (null).
Loading module from “http://<IP_ADDRESS>:5173/resources/assets/js/index1.js” was blocked because of a disallowed MIME type (“”).
index
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://<IP_ADDRESS>:5173/resources/assets/js/index1.js. (Reason: CORS request did not succeed). Status code: (null).
downloadable font: no supported format found (font-family: "simple-line-icons" style:normal weight:400 stretch:100 src index:2) source: (end of source list)
downloadable font: Glyph bbox was incorrect (glyph ids 3 42 48 50 52 54 64 67 68 70 80 81 112 115 118 119 126 145 146 147 149 158 159 167 194 195 197 198 201 202 203 204 205 219 223 225 244 252 255 256 257 258 261 262 263 264 265 266 283 284 285 286 287 293 302 303 304 311 312 319 320 321 323 327) (font-family: "typicons" style:normal weight:400 stretch:100 src index:1) source: http://<IP_ADDRESS>:8596/build/assets/iconfonts/typicons.font/typicons.woff
downloadable font: OS/2: Bad sTypoLineGap, setting it to 0: -32 (font-family: "themify" style:normal weight:400 stretch:100 src index:1) source: http://<IP_ADDRESS>:8596/build/assets/iconfonts/themify/fonts/themify.woff
I have theme template this errors show in the run npm run dev why?
how to flex this errors plaese?

In my case, just run:
php artisan serve

https://laravel.io/index.php/forum/laravel-breeze-host-refused-to-connect

Tested in Laravel 10 with Vite on default port. Add this section to vite.config.js
    server: {
        host: '<IP_ADDRESS>',
        hmr: {
            clientPort: 5173,
            host: 'localhost',
        },
    }

This solution worked for me after a little change in my docker-compose. I'm using Laravel 11 and Vite inside a docker container by docker-compose. I needed to do a small  change in my docker-compose.yml to work. I need to map default vite port(5173) to host and also the default reverb port(8080) to work.
My docker-compose.yml
version: '3'

services:
    laravel-reverb-app:
        build:
            context: .
            dockerfile: ___docker/Dockerfile
        container_name: laravel-reverb-app
        restart: unless-stopped
        volumes:
            - .:/var/www
#            - /var/www/vendor
#            - /var/www/node_modules
        ports:
            - "8080:8080"
            - "5173:5173"
        depends_on:
            - laravel-reverb-web
        networks:
            - laravel-reverb-network

    laravel-reverb-web:
        image: nginx:1.24.0
        container_name: laravel-reverb-web
        restart: unless-stopped
        ports:
            - "8000:80"
        volumes:
            - .:/var/www
            - ./___docker/nginx:/etc/nginx/conf.d
        networks:
            - laravel-reverb-network

I also had to add --host to dev in package.json file like this:

After a long troubleshooting I found that the previous project I hosted didn't have the hot file inside public folder and was working normally. But newer version of project somehow created this file and started making the same error showing the page not loading resources correctly unless I turn off Brave security and sometimes again it breaks.
SOLUTION worked for me:
DELETE file public/hot
It fixed the problem instantly without any other changes necessary.


JSON substitution is case sensitive by default, and also does not log missed keys that match apart from case

This is somewhat similar to the issue below, but my point is more of a difference in design opinion than a bug:
https://github.com/microsoft/azure-pipelines-tasks/issues/6656
Relevant code to the best of my knowledge, or in the general vicinity:
https://github.com/microsoft/azure-pipelines-tasks/blob/a6f349070b6ed807a134974af44e49cf262b8037/Tasks/Common/webdeployment-common-v2/jsonvariablesubstitutionutility.ts#L71
Comment from 6656 that I have found to be true:
'JSON variable substitutions are case-sensitive. Ensure that the casing provided in the variable and appsettings.json are same.'
First, I disagree with this decision as a default.  I can't think of many, if any, cases where I would want to differentiate two json elements by case within the same level.  True, JSON is case sensitive and it does allow for two keys to be differentiated at the same level based on case.  But is this really something a user would ever intend to do?  Perhaps, but probably not.  Which thus leads me to my next point.
If case sensitive vars are unlikely to be intentional, the default should be case insensitive with case sensitive as an override option.  However, this is a breaking change and so on.  If we don't agree here, a log statement would help quite a bit to mitigate this.  "The following pattern was matched, but JSON variable substitution is case sensitive.  Skipping this key."
One could arguably blame the user for making the case mistake, but I would offer the counterpoint that good UX / DX design should strive to match intent of the user and warn them when there may be a mismatch between intent and results.
Thanks,
Travis

I agree that there should at least be some kind of log output for keys that were ignored or closely matched but missed. It would really help in debugging issues.


How can I uninstall?

ERAM_x64.exe on Windows 10
I want to uninstall but can't find the way out.

Run Regedit32 via the Run dialog accessible by pressing Win + R.
Delete the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Eram key by clicking on it and pressing the Delete key.
Reboot your PC.
Delete the eram.sys located in \Windows\System32\drivers and the eram.cpl located in \Windows\System32 (if you downloaded it to that location).

I used a new installer that also comes with an uninstaller. So, this issue is now fixed.


slice indices must be integers or None or have an index method [in timbral_brightness and timbral_hardness]

When processing this sound: https://freesound.org/people/bone666138/sounds/198841/ both timbral_brightness and timbral_hardness models fail (the others work fine). Both return the same error, although it happens in different parts of the code and might be completely unrelated. This is the Python stack trace for the errors:
timbral_brightness
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-85-852004113145> in <module>()
----> 1 timbral_brightness('/mtgdb/incoming/freesound/sounds/198/198841_285997.wav')

~/freesound-audio-analyzer/timbral_models/Timbral_Brightness.py in timbral_brightness(fname)
    105         eval_audio = audio_samples[i:i + blockSize]
    106         complex_spectrum = np.fft.fft(eval_audio * window)
--> 107         magnitude_spectrum = np.absolute(complex_spectrum[0:1 + len(complex_spectrum) / 2])
    108
    109         if sum(magnitude_spectrum) > 0:

TypeError: slice indices must be integers or None or have an __index__ method

timbral_hardness
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-86-d8f62a7fc6e0> in <module>()
----> 1 timbral_hardness('/mtgdb/incoming/freesound/sounds/198/198841_285997.wav')

~/freesound-audio-analyzer/timbral_models/Timbral_Hardness.py in timbral_hardness(fname, dev_output, max_attack_time, bandwidth_thresh_db, phase_correction)
    636
    637     # calculate the onsets
--> 638     original_onsets = calculate_onsets(audio_samples, envelope, fs, nperseg=nperseg)
    639     onset_strength = librosa.onset.onset_strength(audio_samples, fs)
    640

~/freesound-audio-analyzer/timbral_models/Timbral_Hardness.py in calculate_onsets(audio_samples, envelope_samples, fs, look_back_time, hysteresis_time, hysteresis_percent, onset_in_noise_threshold, threshold_correction, minimum_onset_time_separation, nperseg)
    507             current_strength_onset = strength_onset_times[onset_idx]
    508             if current_strength_onset == strength_onset_times[-1]:
--> 509                 onset_strength_seg = onset_strength[current_strength_onset:]
    510             else:
    511                 onset_strength_seg = onset_strength[current_strength_onset:strength_onset_times[onset_idx + 1]]

TypeError: slice indices must be integers or None or have an __index__ method

timbral_brightness and timbral_hardness have now been updated to deal with this.
The error was caused due to the differences in python 2/3, whereby division in python 2 results in an int, but a float in python 3.  I've now made the conversion to int explicit so should work on both.

I'm don't seem to be able to process https://freesound.org/s/198841 in either python2 or python3. In python2 I get the following error:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/Users/ffont/Developer/AudioCommons/timbral_models/test.py in <module>()
      1 from timbral_models import timbral_hardness
      2
----> 3 timbral_hardness('test.wav')

/Users/ffont/Developer/AudioCommons/timbral_models/timbral_models/Timbral_Hardness.pyc in timbral_hardness(fname, dev_output, max_attack_time, bandwidth_thresh_db, phase_correction)
    637
    638     # calculate the onsets
--> 639     original_onsets = calculate_onsets(audio_samples, envelope, fs, nperseg=nperseg)
    640     onset_strength = librosa.onset.onset_strength(audio_samples, fs)
    641

/Users/ffont/Developer/AudioCommons/timbral_models/timbral_models/Timbral_Hardness.pyc in calculate_onsets(audio_samples, envelope_samples, fs, look_back_time, hysteresis_time, hysteresis_percent, onset_in_noise_threshold, threshold_correction, minimum_onset_time_separation, nperseg)
    379      I'm still adding new features to this so remember to update the definitions of all the input features
    380     '''
--> 381     onsets = librosa.onset.onset_detect(audio_samples, fs, backtrack=True, units='samples')
    382
    383     # set values for return_loop method

/usr/local/lib/python2.7/site-packages/librosa/onset.pyc in onset_detect(y, sr, onset_envelope, hop_length, **kwargs)
    144
    145     # Peak pick the onset envelope
--> 146     return util.peak_pick(onset_envelope, **kwargs)
    147
    148

TypeError: peak_pick() got an unexpected keyword argument 'backtrack'

With python3 I get this other error: (the same as in the issue description)
Traceback (most recent call last):
  File "test.py", line 3, in <module>
    timbral_hardness('test.wav')
  File "/Users/ffont/Developer/AudioCommons/timbral_models/timbral_models/Timbral_Hardness.py", line 639, in timbral_hardness
    original_onsets = calculate_onsets(audio_samples, envelope, fs, nperseg=nperseg)
  File "/Users/ffont/Developer/AudioCommons/timbral_models/timbral_models/Timbral_Hardness.py", line 510, in calculate_onsets
    onset_strength_seg = onset_strength[current_strength_onset:]
TypeError: slice indices must be integers or None or have an __index__ method


[ISSUE #7233] update StoreCheckpoint.physicMsgTimestamp when doCommit asynchronously

Which Issue(s) This PR Fixes

Fixes #7233
Brief Description

update StoreCheckpoint.physicMsgTimestamp when GroupCommitService doCommit asynchronously, then broker can correctly skip the commitLog files previous to physicMsgTimestamp at recover.
How Did You Test This Change?

setup master-slave SYNC_FLUSH  broker
send messages with PROPERTY_WAIT_STORE_MSG_OK set to false
confirm physicMsgTimestamp in checkpoint file updated correctly

will it reproduce in other versions ?

will it reproduce in other versions ?

yes, can reproduce on 4.8.0. According to the code, i think this issue can be reproduced on other previous versions.

ping  @lizhimins , maybe missing to merge?


[BUG]

Details:
Jotunn Version:2.9.0 (server and client)
Jotunn Submodule(if applicable):
Repeatability(Consistent(100%), Inconsistent(50%), Rare(1%), Unknown(==1)):
Problem Description:
Using a linux client connecting to a modded valheim server using Jotunn like Reloaded or if I setup a local server on my lan using Jotunn (linux client and server), Jotun results in a client disconnection error.
Expected Behaviour:
Client should not be disconnected
Actual Behaviour:
Client is disconnected
Link to your server's and client's LogOutput.log
Upload to https://pastebin.com or simliar service
Player.log
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_failed_connection -> Failed Connection:
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_remote_version -> Remote Version (the Server):
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_local_version -> Local Version (this Game):
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_valheim_version -> Valheim Version Error:
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_version_string -> Valheim Modded Version String Mismatch:
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_missing_mods -> Missing Mods:
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_update_needed -> Mod Updates Needed:
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_downgrade_needed -> Mod Downgrades Needed:
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_header_additional_mods -> Additional Mods Loaded:
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_valheim_version_error_description -> The server runs Valheim $1, while your game runs Valheim $2
[Debug  :Jotunn.Managers.LocalizationManager] Added translation: mod_compat_valheim_version_upgrade -> Please update your game to Valheim $1 or contact your server admin

This log doesn't tell much, please send your server log (from BepInEx/LogOutput.log), too.
Since you have other mods installed, it's more likely one of them is responsible for the disconnect. There was an update some time ago that broke ServerSync, but without the server log this is hard to tell.
The log snippet you send only shows possible translation that were added for the UI, but not that Jotunn had disconnected the client.

LogOutput.log
Here is the log as requested, I shortened it the last set of stack trace errors just repeat for many megabytes:
"[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ZInput.IsGamepadActive () (at <54bcee0561504e93a88e7eac2654f4dd>:0)
UIGroupHandler.Update () (at <408fb2feebfa4a519b8eeaef491b5d76>:0)"

The first error for this is this:
[Error  : Unity Log] FormatException: Input string was not in a correct format.
Stack trace:
System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Int32.Parse (System.String s) (at <695d1cc93cca45069c528c15c9fdd749>:0)
(wrapper dynamic-method) FejdStartup.DMD<FejdStartup::ParseServerArguments>(FejdStartup)
(wrapper dynamic-method) FejdStartup.DMD<FejdStartup::Awake>(FejdStartup)

It seems you have set an invalid port in your server start arguments, only numbers are valid. That error likely causes the issues afterwards.
Please send your new log again if you still cannot log in and the port is fixed.

Thank you very much for the feedback, problem is now solved, the server startup parameters were not correct, the lgsm startup parameter variable names were the problem.


Widevine issues and other wierd behaviours on Windows 10 for my compliled applications

Hi I just wanted to ask for assistance in case I am doing anything wrong but I have made and compiled a couple desktop applications for Netflix, Binge and FoxtelGo for Windows and Linux uisng electron-builder. It works on Linux fine using widevine but the Windows compiled application from the setup file for example will not work at all meaning the Windows applications cannot use Widevine. Another issue on the Windows version is when I go to login on the Windows version of Foxtel Go is I get a error when I got to login, not sure if that is to due with Widevine or not but on the Linux version it's fine and Widevien works.
I am using the latest release v13.6.6-wvvmp for Foxtel Go for example and here is a link to the code on my repo.
https://gitlab.com/foxtelgo/application
if this is actual bugs than I am happy to be reporting them so they are fixed. :smile:

First of, are you using EVS to re-sign your application builds? If not, then that would explain why commercial services are not working on Windows (or MacOS) since VMP is enforced there, which requires that you have a production VMP signature for your application. Linux does not have this requirement since VMP is not supported there.
Since you are using electron-builder you would need to craft afterPack/afterSign hooks that executes EVS signing, depending on the platform. You should be able to find examples of this if you search through the previous issues here.
When it comes to the Foxtel Go issue I'd say this is probably not related to ECS. We do not change any functionality in Electron besides adding support for Widevine. If you find that this works in stock Electron and not ECS, please report it as a separate issue and we can look into what could be causing it.

Also, I took a quick look at your main.js. One thing you are doing that may conflict with ECS is that you are using the old command line switches widevine-cdm-version/widevine-cdm-path. This is not necessary with ECS since it installs/updates the CDM automatically, and may conflict with the CDM loading correctly.

Ahh I see would you mind assisting me a little to make sure I understand how to do it so I am doing it correctly. I haven't used EVS to sign it but now I know it is enforced on Windows and Mac, I read the instructions about EVS but how do I hook it into it?
Also with compiling with Mac it looks like it requires a npm package dms I think it was called but looks like it requires a actual Mac to build it, is that correct or is there a way to build the Mac version on Linux?

For some hints on how to do this you can check out this comment. It uses the old signing script instead of EVS (which requires that you have your own VMP certificate), but should be fairly easy to adapt to use the examples of EVS use.
It should be possible to build for macOS on another platform using electron-builder, or at least it used to be possible. I'm guessing the package you mention is for packaging a dmg (a mountable disk image). If you can't get this to work you could opt to use some other form of packaging target, e.g. as a zip file.

Closing due to inactivity. Feel free to reopen if the issue persists.


Latest azure python package (4.0.0) not compatible with these samples

When I follow the installation instructions here in a clean environment, pip install azure installs version 4.0.0.  When I run the recipe code it fails when calling batchai_client_create, with this error:
AdalError: Get Token request returned http error: 400 and server response: {"error":"unauthorized_client","error_description":"AADSTS70001: Application with identifier 'xxxxxxxxxx' was not found in the directory management.core.windows.net
If I revert to azure 2.0.0 it works fine.  It looks like azure 4.0.0 was just released a couple of days ago and is somehow not compatible with azure-mgmt-batchai 2.0.0?

Thanks for reporting this. However, I was not able to repro this issue with azure-4.0.0 and azure-mgmt-batchai-2.0.0. Can you please try to do a clean installation of azure and azure-mgmt-batchai, e.g in a new virtual environment, to see if the issue still exists?

@spdjudd I am able to repro this issue on MacOS, but not Windows... Still investigating and will keep updating

I was able to see the issue on clean Windows and Linux, didn't try Mac :) I'm away at the moment but can get more details when I'm back. Thanks for investigating!

Ok, I have a simple way to reproduce, and I can see where the problem arises.
Steps to reproduce:
Assuming you have cloned the repo locally and run the steps to create configuration.json, run the following docker commands:

docker pull continuumio/anaconda3
docker run -it -p 8888:8888 -v <local-path-to-this-repo>:/home/azurebatchai continuumio/anaconda3 /bin/bash

In the bash prompt, install the azure and batchai packages, and run jupyter:

pip install azure
pip install azure-mgmt-batchai --upgrade
cd /home/azurebatchai
jupyter notebook --ip='*' --port=8888 --no-browser --allow-root

Now when I browse to the jupyter url and run the recipe notebooks, this step fails with the error in my original post:
client = utils.config.create_batchai_client(cfg)
If I repeat the process but install azure version 3.0 (pip install azure==3.0 instead of pip install azure) instead of latest, it works.
Cause:
The call that fails is a POST to https://login.microsoftonline.com/common/oauth2/token.  The previous version results in a POST to a similar URL but with a GUID - the aad_tenant in place of 'common', which succeeds.
I think the new version of azure.common.credentials.ServicePrincipalCredentials ignores the token_uri parameter (BatchAI/utilities/config.py line 75), and instead builds the URI itself.
If I change BatchAI/utilities/config.py to parse out the aad_tenant field and pass that in as the tenant parameter then the new version generates the correct URI and the call succeeds.  I'm happy to submit that as a pull request if it helps?

@spdjudd Thank you very much for your report and analysis. Yes, please go ahead to submit a PR for the fix and we much appreciate your help!


Update README.md added crossover

Thanks! Mind filling out a company profile? I'll merge this as-is for now.


defineNuxtConfig is not defined

Environment

Operating System: Darwin
Node Version:     v16.18.1
Nuxt Version:     2.15.0
Nitro Version:    2.3.3
Package Manager<EMAIL_ADDRESS>Builder:          webpack
User Config:      pages, build, css, plugins
Runtime Modules:  -
Build Modules:    -

Reproduction
don't have a minimal reproduction link but the issue is pretty self explanatory!
This is my package.json:
{   "name": "nuxt-app",   "private": true,   "scripts": {     "build": "nuxt build",     "dev": "nuxt dev",     "generate": "nuxt generate",     "preview": "nuxt preview",     "postinstall": "nuxt prepare"   },   "devDependencies": {     "@types/node": "^18",     "nuxt": "^3.4.1"   } }
and you see my environment above which display different nuxt versions!
Describe the bug
I create a nuxt app by running npx nuxi init [project-name]. When the project is created I see "nuxt": "^3.4.1", in my package.json. But as you can see in my environment when I run npx nuxi info it says my nuxt version is Nuxt Version:     2.15.0 which makes me a lot of problems such as getting the error defineNuxtConfig is not defined is not defined in my nuxt.config.ts
What is wrong here?
Additional context
My application is pretty empty since it was created brand new but just in case this is my tsconfig.json:
{   // https://nuxt.com/docs/guide/concepts/typescript   "extends": "./.nuxt/tsconfig.json" }
Logs
No response

Would you check to see if you have a node_modules folder in a parent directory. For example, you might have globally installed nuxt@2?

I had the same issue and deleting node_modules from a parent directory fixed the issue. Curious as to whether or not there's a solution to this—it seems like odd behavior to have a folder outside of my project that affects it.

I'm also having this issue. So i was working on this project that uses nuxt 3.2.0. I tried installing the the vuedatepicker and i got this defineNuxtConfig not found error. Have deleted the node_module folder, re-clone the app but I'm still having same issue

I also have the same issue.

Probably a jiti bug?

@jalamanderman You might this issue again when installing a new package, try Uninstalling nuxt 2 globally on your machine. That would fix the problem totally.

Issue is in global scope library what I can re-create
I was having<EMAIL_ADDRESS>that remove by command npm -g remove typescript resolve issue.

I just install some dependences which has their own nuxt.config.ts，and they are using auto import. I guess the issue i met comes from here. Is there any solution?

FYI I had this issue with pnpm too, clearing the pnpm cache fixed it for me
# Clear global pnpm cache
pnpm store prune

# Remove global pnpm store completely
rm -rf "$(pnpm store path)"

# Clear local pnpm cache
rm -rf node_modules


Provide a way to handle content behind semi-transparent statusbar and NavigationBar

Here is an example image I found:

I think this is a duplicate of https://github.com/eclipsesource/tabris-js/issues/171

Maybe. The important part is, that the start coordinates 0,0 are not at top left of the screen, instead below the status bar. The content would only become visible under the status bar, when it is scrolled.

Agree it's a dup. Copied relevant information to #171.


not work

i installed code but change in table not affect handle code
only i see in db added trigger but change not fire in code

Can you show me how do you uses SqlTableDependency?

closed because no feedback.

hi

i see today you email i send you tommorow code

class Program
{
    static void Main(string[] args)
    {
        // start synce
        //  await PeriodicFooAsync(new TimeSpan(0, 0, 10), CancellationToken.None);
        using (var dep = new SqlTableDependency<Product>("data source=.;initial catalog=itdcloud;Integrated Security=true;", "Products"))
        {
            dep.OnChanged += Changed;
            dep.Start();

            Console.WriteLine("Press a key to exit");
            Console.ReadKey();

            dep.Stop();
        }

    }

    public static void Changed(object sender, RecordChangedEventArgs<Product> e)
    {
        var changedEntity = e.Entity;

        Console.WriteLine("DML operation: " + e.ChangeType);
        Console.WriteLine("ID: " + changedEntity.ID);

    }
}

Hi, the code is OK. Have you tried to execute the SQL script reported in Homepage's seciton "Note about Compatibility Level and Database Version for tracking record changes" ?

i need only know table changed and rowId i had before developed websocket and broker worked fine but for only know which row changed i see ur code but in simple console app not work

event change never fire all ur videos on youtube and sample code is same but why not work ?
my database is 11.0.6020 and .net is 4.6.1

Can you run the select described in "Note about Compatibility Level and Database Version for tracking record changes" ?
Then, does your model define any property matching a table column?


Issue with code coverage and multi-module project.

@err108 commented on Oct 22, 2018, 4:52 PM UTC:
I can't seem to find any good documentation on or examples using the code coverage arguments. My project consists of a parent pom with multiple modules. Build is executed on the parent pom. I've supplied a list of paths in the codeCoverageClassFilesDirectories and codeCoverageSourceDirectories based on the tooltip help in the build configuration. However when the build runs, it fails with the following errors/warnings:
"An Ant BuildException has occured: Unable to read execution data file C:\agent_work\20\s\CCReport43F6D5EF\jacoco.exec"
"No code coverage found to publish. There might be a build failure resulting in no code coverage or there might be no tests."
It either isn't generating any code coverage reports, or can't aggregate the reports from the child modules. Tests are publishing fine and I can see the results aggregated for of all the tests run in the child modules.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 589e076c-9f67-77df-3204-4f549566f21b
Version Independent ID: 2e51ef13-8fd3-1397-82f0-27c92f1ccee5
Content: Maven build and release task - Azure Pipelines & TFS
Content Source: docs/pipelines/tasks/build/maven.md
Product: devops
GitHub Login: andyjlewis
Microsoft Alias: alewis

This issue was moved by davidstaheli from MicrosoftDocs/vsts-docs#2174.

For anyone finding this years later, the solution is to delimit the paths with ';' as shown in the documentation for the underlying tool called by PublishCodeCoverageResults@1, https://github.com/danielpalme/ReportGenerator, https://reportgenerator.io/usage.
eg:

task: PublishCodeCoverageResults@1
inputs:
summaryFileLocation: someSummaryFileLocation
pathToSources: module_a/src/main/java;module_b/src/main/java
:v::v::v:


Update Meteor.js

Listen NetInfo connectionChange event (change deprecated)

Maybe you can check which RN version is currently installed so you can choose the NetInfo change event name, for backward compatibility.

Duplicate of #273

Thank your for your contribution @welkinwong, it's greatly appreciated.
Unfortunately, as @rijk said, it's a duplicate. I'll close this PR in favor of #273.


MudNavLink OnClick not firing

Bug type
Component
Component name
MudNavLink
What happened?
When using MudNavLink with both Href and OnClick set, the OnClick eventCallback is never fired. This is different than the NavLink in Microsoft.AspNetCore.Components.Routing which fires the onclick and then navigates to the page set in href.
Expected behavior
MudNavLink would fire the OnClick eventCallback and then navigate to the page in Href similar to NavLink.
Reproduction link
https://try.mudblazor.com/snippet/GOmbPmlAsqnchdfm
Reproduction steps

Open drawer with button
Click on Library (text does not change)
Click on Test (text is updated in onclick)

Relevant log output
No response
Version (bug)
6.0.2
Version (working)
No response
What browsers are you seeing the problem on?
Chrome
On what operating system are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@Garderoben I think we've been here before.  The current behaviour being what we considered to be desired?

@Garderoben I think we've been here before. The current behaviour being what we considered to be desired?

Yeah, and if both if really needed you can only use OnClick and use NavigationManager yourself right?

I would do that, but the highlighting isn't working when using OnClick (issue #3570) so in the meantime, I ended up using the following:
`<div @onclick=@OnClickMethod>
Link
`
This will fire the onclick and then navigate to the Href like I was wanting.

I'll go ahead and close the issue since this is intended behavior and not a bug.


Limit the workers configuration value

At the time of this writing, we allow any valid positive integer value for workers - This issue is to fix and enforce limits on the workers configuration (after discussion).

Discussed this offline, is not something that we should enforce. And the default value of 1 worker makes sense as well.


Preparations for renaming master to main

Merging this pull request will not in itself 𝕔𝕝𝕠𝕤𝕖 #76 , but it will prepare the repository contents for the actual rename operation which will close the issue.
("close" is written strangely above to prevent GitHub from interpreting "will not close" as "will close".)

Good :)


resin-fsl-arm: add support for NXP MCIMX6Q-SDB board

Signed-off-by: Alex J Lennon<EMAIL_ADDRESS>

Can one of the admins verify this patch?

Can one of the admins verify this patch?

@ajlennon Kindly pinging you for this.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

@ajlennon are you still interested in getting this merged?

Let's close this PR for now. As far as I know Alex is not working on this anymore. We can pick it up in the future if needed.


Change for auditing Matlab codes

I made some changes for detecting Matlab codes, but still doesn't  work properly. It might require more than these simple changes (server side?)

Thanks @jihyunoh !


search bar for freeplay

idk if this will fully work with online or not because I cant compile and test for some reason

it does work with online I ran an action build


Implement intoIter for MultiMap and &MultiMap

For a MultiMap to be consumed in a for loop, the intoIter trait needs
to be implemented. This is done, trying to mirror the implementation
of std::collections::HashMap.
Fixes #5

Thanks!


service/rewind_optimized_out_test/dds turned from flaky to timeout on dartk-linux-release-ia32

The test service/rewind_optimized_out_test/dds turned from flaky to timeout on dartk-linux-release-ia32
https://dart-ci.appspot.com/log/vm-kernel-linux-release-ia32/dartk-linux-release-ia32/8065/service/rewind_optimized_out_test/dds

so did service/rewind_optimized_out_test/service

Also on dartk-weak-asserts-linux-release-ia32.


Update commander to v10.0.1

Downgraded to v10.0.1  in order to continue support of node 16: https://github.com/tj/commander.js/blob/master/CHANGELOG.md#1100-2023-06-16


Check out dinit

The project I made for similar use case, I think you might like it: https://gitlab.com/tozd/dinit

Interesting. It does seem quite similar! I think it wouldn't quite work for my use case though because it presumably is already init so doesn't need to set itself as the child subreaper. Definitely some good ideas to steal from there though.


Update volume.py

New function to plot the density of diffusion atoms using plotly

I have added the function to plot the density of diffusion atoms using plotly and save as .html. However, I didn't integrate it with the class.

Thanks! No worries that it is not integrated, this is something we will take care of. I'll get back to this.

I have moved the code to the plots submodule. For the isosurface plot I want to use the Volume we have as input directly. I think a nice way to go about this is to do the marching cubes on the existing volume (which is in fractional coordinate system). And then convert the vertices to cartesian coordinates. This avoids double work, and I think this will be a bit more robust than the current implementation.
Todo

[ ] Add docstrings
[ ] Add isosurface plot

Nice! Thank you!

I have a question. If I understand correctly the points are coordinates of Li during simulation now? Because initially the points were coordinates of sites. I probably can load the structure created from .cif to plot points as sites, but then lattice and cart_coord will not match the simulation cell

It can be whatever you want 😅
site_stucture = load_known_material('argyrodite')
plots.density(vol, site_structure)

Yeah, that the lattices don't match is an issue I can't do much about. You could create a new structure with the simulation lattice and the coordinates from the cif.


Lock version of Jenkins slave used

Introduced by #232
We have a line in our pipeline-template.yaml:
dockerImageRepository: openshiftio/launchpad-jenkins-slave
Um, how is k8s/OpenShift supposed to know that we want a particular version of the slave to be used?  There are many tags under here; some are releases, some are just latest.  How can we note in the template which version we want to be used?
@bparees Would you mind answering in the comments and I'll handle the work needed to make this happen?  Thanks!

currently you can't, unfortunately.  the logic was written before we got serious about imagestreams..for now i would strongly suggest you have your imagestream point to a repository that makes it clear what you want.
i'm planning to add annotation logic to support annotating/labeling a specific imagestreamtag instead of the imagestream, shortly.
the other thing you might be able to do, if imagestreams support it, is specify the full repository:tag in your dockerRepository field in your imagestream.  I don't know offhand if they allow that or not, but if they do, it should result in the correct image value in the pod template:
https://github.com/openshift/jenkins/blob/master/2/contrib/jenkins/kube-slave-common.sh#L90

Noted; for now our repo will only have latest tag, and we'll be careful about pushing stuff of unknown quality there.
Leaving this issue open to investigate your second option and see if that can lock us down.

Thanks, @bparees .  For the moment took your advice to only push to latest tag what we would consider releases, and it'll be the only tag in the Hub repo until we have a better way forward.  Leaving open until we investigate more but this solution works enough for now.  Real goal here is reproducible builds with locked version over time.

We can probably close this now that we use S2I?


Delay after pin export seems not long enough

Hi there :)
I'm running the navigator  lib on a raspberry pi4 with Ubuntu 20.04. When I execute the simple example I sometimes face permission denied errors, since the library can not access the gpio pins. However, the pin is exported and if I start the executable again it works fine. I tried setting the delay after the pin export to 60 milliseconds instead of 30  in my local navigator-rs library and that fixed the issue for me. Would it be possible to increase the delay in general, so that I can use the official library release?

Hi @fnauert thanks for raising this issue, It's the first time that I'm seeing this error. Can you confirm after a reboot that moving to 60 it indeed fixes the problem ?

Hi @patrickelectric yes, I rebooted at least three times since I increased the delay and the error did not occur again.

Thank you very much for the fast support :heart:


CREATE EDGE inserts a corrupted record

OrientDB Version: 2.2.26 (possibly lower) - 2.2.35
Java Version: jre1.8.0_171
OS: Windows 10, orientdb-docker:2.2.35
Brief
Some time ago we discovered a problem with dissapiared edges, after the investingation we found that when the query CREATE EGDE is executed the edge was created, but SELECT or TRAVERS queries did not show right results. REPAIR DATABASE --fix-graph delete those types of records. but it is not a problem solver.
Expected behavior
CREATE EDGE inserts a record, that is not broken.
Actual behavior
CREATE EDGE inserts a record, that is broken. In the OrientDB Studio this looks like:

Steps to reproduce
Here is our dump:
Fixed_rsm_db.json.gz

Download default version of OrientDB Community server.
Import database from the dump.
Make CREATE EDGE BusinessServiceDependsOnApplicationService FROM  (select from BusinessServiceGroup where id=15161) TO (select from ApplicationServiceGroup where id=15218) request.
Make select * from BusinessServiceGroup where Id = 15161 request and see the corruted record in OUT BusinessServiceDependsOnApplicationService.
Connect to database in the console. Make REPAIR DATABASE --fix-graph and see

deleting corrupted edge BusinessServiceDependsOnApplicationService ....

@aligin before version of 2.2.29 we had such problem https://github.com/orientechnologies/orientdb/issues/7786 . Are you sure that this issue is reproducible in the latest version (2.2.35) of ODB?

Yep, this image is from 2.2.35. I've rechect it right before the post.


This is possibly a merge conflict in #10201.
Modifications
Fix compilation issues by removing references to non-existent setResourceUsageTransportPublishTopicName method.

/pulsarbot run-failure-checks


Need a low-level type infrastructure

Low-level type information (exactly which array types are composed with each other) are requried to compile functions with VirtualArrays (without simply materializing all of them). The high-level types don't have enough information. It is important to be able to compile VirtualArrays for iterating over large datasets, Parquet or ROOT, without entirely loading them into memory.
The low-level types should mirror the high-level types. Perhaps they should be named "structure". Dumping structure to the terminal, with or without array values, could be useful for diagnostics and introductions to the concepts.

This is now known as .layout.


Install rsync in s2i-core to support 'oc rsync'

Move rsync rpm package from s2i-base into s2i-core. Currently rsync is installed in s2i-base as dependency of git.

This packages is required for oc rsync command [1].

Also rsync could be used in assemble script - see sclorg/s2i-nodejs-container#182. Currently not all our images contains this package (sorry, I wasn't 100% precise about this when we discussed this)

All s2i-base based images contains rsync + mariadb, mysql, postgresql and mongodb images contain it.
From s2i capable images - redis, cassandra, httpd, nginx and varnish don't have rsync installed. But IMHO redis and cassandra are database images, so oc rsync support should be same as in other database images. And installing rsync in remaining three images isn't big disadvantage (403 k size increase) + support for oc rsync is benefit.
If this PR is accepted, I'll remove rsync installation from mariadb, mysql, postgresql and mongodb in later PRs.
@pkubatrh @hhorak @praiskup Please take a look.
[1] https://docs.openshift.org/latest/dev_guide/copy_files_to_container.html

Nice description, please consider putting the informative texts to the git commit messages so we never can loose them... (github will by default copy the text into the PR comment).  Otherwise I think it is OK, what's the image size difference?

lgtm

[test]

[test]

I rebased Marek's original commit and added the description to the commit's message.

lgtm

Tests are green so merging. Thanks for review Pavel!

Since this PR is merged, do you have an estimate of when rsync will be available in ubi8/s2i-core ? thx

@mchauvel Probably in one of the future rhel8 releases, either 8.1.1 or 8.2.0. But as always, no promises or specifics re ETA.


How to switch the window between file explorer and browser window

Hello,
I am trying to open file explorer from the browser button and then I want to focus from the browser window to file explorer for next step.
Does anybody know how to switch between browser window to desktop window with selenium c#?

The focus will be on the explorer window just use the send keys to enter the filename.

Is the use case to save or upload the file.

The focus will be on the explorer window just use the send keys to enter the filename.

I am trying to do that but it is not working and it tries to search in the browser only.

Is it a dialog window can you share screenshot.

No. I am opening file explorer from the browser and then it opens file explorer and I want to click on the folder in  he file explorer but it is not focusing the file explorer then.

So, in the above image, I opened file explorer from the button in he browser and now I want to select the folder in the file explorer.

Check in inspect the file explorer might be a seperate window and not part of the same UI tree

It shows file explorer but it does not have any child elements

I know.

Then the elements inside the file explorer does not have automation properties implemented windows application driver will not work, it only works if the elements are identified in inspect, if the SW is under your control ask the developers to implement automation properties


Changed code to work against Selenium 3 instead

I have updated the code to work against Selenium 3.1 under Java 8.

Thanks. Added it.


name 'SCALERS' is not defined

Hi, in layers.py file you are using SCALERS, while it is not defined before using it. Would you please help me to figure out how to run that?

Hello @erfmah,
Thank you so much for being interested in the repo and reporting the issue on GitHub. I have reviewed the details and identified that the problem occurred due to a missing import of SCALERS from scalers.py. I updated the code with the necessary imports. I appreciate you bringing this to my attention!
If you need any more help, please don't hesitate to let me know.
Best regards,
Ahmet


Migrate extended_image to ^7.0.0 and fix some deprecated changes

Migrate extended_image ^6.2.0 to ^7.0.0
Fix some deprecated changes from Material Theme System Updates
Fix a deprecated override of buildViewportChrome (https://github.com/flutter/flutter/pull/111715)
Remove a unnecessary override

@all-contributors Add @dddrop for code.


iOS Audio File Processing Error with Large MP3 Files

iOS Audio File Processing Error with MP3 Files
Description
When processing audio files of larger size on iOS, the system encounters multiple errors during waveform extraction and player preparation. The audio file is being downloaded using RNFetchBlob.
Steps to Reproduce

Download audio file using RNFetchBlob
Attempt to process an audio file
Test case example file: MP3 Sample

Current Implementation
Using RNFetchBlob to download the audio file:
private async downloadUrl(path: string): Promise<string> {
    try {
      const {dirs} = RNFetchBlob.fs

      const tempFilePath =
        Platform.OS === 'ios'
          ? `${dirs.DocumentDir}/waveform_${Date.now()}.mp3`
          : `${dirs.CacheDir}/waveform_${Date.now()}.mp3`

      const res = await RNFetchBlob.config({
        path: tempFilePath,
      }).fetch('GET', path)

      if (res.respInfo.status !== 200) {
        throw new Error('File download failed')
      }

      return tempFilePath
    } catch (error) {
      console.log('Error downloading file:', error)

      throw new Error('Failed to download the file')
    }
  }

Errors Encountered
Waveform Extraction Error
MP3AudioFile.cpp:1526   Problem scanning for packets
MP3AudioFile.cpp:1065   MPEGAudioFile::OpenFromDataSource failed
AudioFileObject.cpp:105    OpenFromDataSource failed
AudioFileObject.cpp:80     Open failed
 ExtAudioFile.cpp:211   about to throw 'dta?': open audio file
 AVAEInternal.h:109   [AVAudioFile.mm:135:AVAudioFileImpl: (ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)): error<PHONE_NUMBER>

Player Preparation Error
MP3AudioFile.cpp:1526   Problem scanning for packets
MP3AudioFile.cpp:1065   MPEGAudioFile::OpenFromDataSource failed
AudioFileObject.cpp:105  OpenFromDataSource failed
AudioFileObject.cpp:80   Open failed

Environment

Platform: iOS
File Type: MP3
File Size:  >1MB and larger
Library: RNFetchBlob for file download
Storage Location: DocumentDir (iOS)

Additional Information

Error occurs with files of  larger size
Both waveform extraction and player preparation are affected
Files are being downloaded to the app's document directory on iOS
The issue is reproducible with the exact test file provided

@mukesh-simform  could you please help here

@AnkitBathla11 If you can provide a use repo with all the code to reproduce, that would be helpful. If you can share repo, that would be ideal.
We have tried to reproduce this issue with the media file you have provided, but we are not able to reproduce this issue.

Have same error, @AnkitBathla11 have you find a solution?


[CLI]:  error in callback

Describe the bug
Drives me insane. Literally no code can be executed after this point. The Notebook is gone, kaput, useless. Hit this bug in two completely differently companies and completely different environments (GCP and on-prem).

Additional Files
No response
Environment
WandB version:
OS:
Python version:
Versions of relevant libraries:
Additional Context
No response

Hi @GeorgePearse , can you please provide an example notebook for us description of your steps to reproduce this behavior, thanks.

Think it normally occurs when I've interrupted training.

Hi @GeorgePearse , thank-you for the update. What type of environment are you running wandb in, additionally which version of wandb are you using?

Hi @GeorgePearse , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

@GeorgePearse could you try running wandb.teardown() and see if this resolves your issue?
I think there is residual state that is not cleared completely that causes this issue


Distro boot

Is your feature request related to a problem? Please describe.
If folks have aligned on a way to boot distros from u-boot, why can't we use it? If it doesn't handle our use cases, then it probably needs to be augmented to support them. Always needing to patch mainline to boot our images stinks.
Describe the solution you'd like
I want to be able to run mainline u-boot. We can still have some custom variations for ease-of-use specific to our community, but at least swapping out our u-boot with mainline u-boot should "just work".
Describe alternatives you've considered
Not sure what alternatives there are to consider. We might lose some features, like add-on board overlays, but I'd like to see what we can do to resolve that. This is probably the biggest thing missing upstream. We probably need to tackle it with some actual u-boot code and not just u-boot script.
Additional context
This is also about running other distro images and seeing capes supported in other distros.
I'm not sure who is best to tackle this problem. Perhaps this could be a challenge for Major League Hackers?

u-boot distro boot uses "extlinux.conf" it's works pretty well for static *.dtb
https://github.com/u-boot/u-boot/blob/master/doc/README.distro#L128-L156
I'd expect this to already work today on mainline u-boot with our images.
/boot/extlinux/extlinux.conf
label Linux 4.14.108-ti-r134
    kernel /boot/vmlinuz-4.14.108-ti-r134
    append console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100
    fdtdir /boot/dtbs/4.14.108-ti-r134/

Regards,

Close:
sudo apt install bison flex

git clone -b v2020.07-rc2 https://github.com/u-boot/u-boot --depth=1
cd u-boot/

make ARCH=arm CROSS_COMPILE= distclean
make ARCH=arm CROSS_COMPILE= am335x_evm_defconfig
make ARCH=arm CROSS_COMPILE=

sudo dd if=/home/debian/u-boot/MLO of=/dev/mmcblk0 count=1 seek=1 bs=128k
sudo dd if=/home/debian/u-boot/u-boot.img of=/dev/mmcblk0 count=2 seek=1 bs=384k

sudo mkdir /boot/extlinux/
sudo nano /boot/extlinux/extlinux.conf

label Linux 4.14.108-ti-r131
    kernel /boot/vmlinuz-4.14.108-ti-r134
    append console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100
    fdtdir /boot/dtbs/4.14.108-ti-r131/

U-Boot SPL 2020.07-rc2 (May 15 2020 - 15:46:31 +0000)
Trying to boot from MMC1

U-Boot 2020.07-rc2 (May 15 2020 - 15:46:31 +0000)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
WDT:   Started with servicing (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 0:1... <ethaddr> not set. Validating first E-fuse MAC
Net:   eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM is		de:ad:be:ef:00:01
Address in environment is	b0:d5:cc:fc:03:fe
, eth1: usb_ether
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unrecognized filesystem type **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
265 bytes read in 4 ms (64.5 KiB/s)
1:	Linux 4.14.108-ti-r131
Retrieving file: /boot/vmlinuz-4.14.108-ti-r134
Skipping Linux 4.14.108-ti-r131 for failure retrieving kernel
SCRIPT FAILED: continuing...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Invalid partition 2 **
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
** No partition table - mmc 1 **
## Error: "bootcmd_nand0" not defined
starting USB...
Bus usb@47401800: Port not available.
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
DHCP client bound to address <IP_ADDRESS> (4801 ms)
Using ethernet@4a100000 device
TFTP from server <IP_ADDRESS>; our IP address is <IP_ADDRESS>

Quick hack to make it easier to convert..
https://github.com/RobertCNelson/boot-scripts/blob/master/tools/generate_extlinux.sh
sudo /opt/scripts/tools/generate_extlinux.sh

debian@beaglebone:~$ cat /boot/extlinux/extlinux.conf
label Linux 4.14.108-ti-r131
    kernel /boot/vmlinuz-4.14.108-ti-r131
    append console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
    fdtdir /boot/dtbs/4.14.108-ti-r131/

Everything get's copied from /boot/uEnv.txt except , for what u-boot set's by default: "console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4"
console=ttyO0,115200n8 = this should now be set by default form the *.dtb
"root=/dev/mmcblk0p1 ro rootfstype=ext4" = u-boot currently set's this by decoding what drive we boot from...

test, removed console=ttyO0,115200n8
debian@beaglebone:~$ cat /boot/extlinux/extlinux.conf
label Linux 4.14.108-ti-r131
    kernel /boot/vmlinuz-4.14.108-ti-r131
    append root=/dev/mmcblk0p1 ro rootfstype=ext4 coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
    fdtdir /boot/dtbs/4.14.108-ti-r131/

Nope, that breaks..
U-Boot SPL 2020.07-rc2 (May 15 2020 - 15:46:31 +0000)
Trying to boot from MMC1

U-Boot 2020.07-rc2 (May 15 2020 - 15:46:31 +0000)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
WDT:   Started with servicing (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Unable to use mmc 0:1... <ethaddr> not set. Validating first E-fuse MAC
Net:   eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM is		de:ad:be:ef:00:01
Address in environment is	b0:d5:cc:fc:03:fe
, eth1: usb_ether
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unrecognized filesystem type **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
239 bytes read in 4 ms (57.6 KiB/s)
1:	Linux 4.14.108-ti-r131
Retrieving file: /boot/vmlinuz-4.14.108-ti-r131
9654768 bytes read in 618 ms (14.9 MiB/s)
append: root=/dev/mmcblk0p1 ro rootfstype=ext4 coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
Retrieving file: /boot/dtbs/4.14.108-ti-r131/am335x-boneblack.dtb
60180 bytes read in 10 ms (5.7 MiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffee000, end 8ffffb13 ... OK

Starting kernel ...

(nothing.. but led's blinking..)

This also works with our forked u-boot:
U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)
Trying to boot from MMC1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **

U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins-github_Bootloader-Builder-137

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Global warm SW reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
262 bytes read in 57 ms (3.9 KiB/s)
1:	Linux 4.14.108-ti-r131
Retrieving file: /boot/vmlinuz-4.14.108-ti-r131
9654768 bytes read in 655 ms (14.1 MiB/s)
append: console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
Retrieving file: /boot/dtbs/4.14.108-ti-r131/am335x-boneblack.dtb
60180 bytes read in 196 ms (299.8 KiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffee000, end 8ffffb13 ... OK

Starting kernel ...

[    0.000772] timer_probe: no matching timers found
[    0.398702] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    0.638248] omap_voltage_late_init: Voltage driver support not added

@jadonk i'm a little confused, which downstream distro is having problems, do we have a direct user question?  As it looks we've had /boot/extlinux/extlinux.conf support now for over a  good year. Haven't tested any version of u-boot before v2019.04..
Regards,

I don't know of any having problems, just keep forgetting that it is in there. I'm checking buildroot right now.

k, so it looks like bone_capemgr just needs to be added to mainline u-boot somehow---and we need to start generating extlinux.conf when installing kernels.

In buildroot/u-boot, beaglebone's post-image.sh needs this removed:
# copy the uEnv.txt to the output/images directory
cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt

install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf

I'm guessing buildroot has an extlinux config?


Release

Proposed Changes
Supports DIP4
Implementation

I fixed the conflicts at my local. I'll push when prepared.


Linstor root disk does not use size per offering or resize

I've a 3-node kvm/Ubuntu 22.04 setup with ACS <IP_ADDRESS>. Linstor that uses LVM_THIN on a 2TB nvme (on each of kvm1/2/3 nodes). I created a resource group cloudstack with placecount of 2, and add that as a zone-wide primary linstor storage in CloudStack with a specific storage tag linstor. Further I created disk and compute offerings with the same storage tag. I found the following issues:

I deployed a four test VMs with varying linstor specific offering, both using the compute offering and using the overiding disk offering for the root disk using the UI. In the created root disk for the VM, it uses the template's original size and doesn't resize the linstor volume based on the offering's disk size. The compute/disk offering specifies 100G as disk size.

# linstor v l
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
┊ Node ┊ Resource                                ┊ StoragePool          ┊ VolNr ┊ MinorNr ┊ DeviceName    ┊ Allocated ┊ InUse  ┊      State ┊
╞═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
┊ kvm1 ┊ cs-714a4f1f-93f4-4166-9b02-cf498c41aa07 ┊ nvme_pool            ┊     0 ┊    1003 ┊ /dev/drbd1003 ┊  2.20 GiB ┊ Unused ┊   UpToDate ┊
┊ kvm2 ┊ cs-714a4f1f-93f4-4166-9b02-cf498c41aa07 ┊ DfltDisklessStorPool ┊     0 ┊    1003 ┊ /dev/drbd1003 ┊           ┊ InUse  ┊   Diskless ┊
┊ kvm3 ┊ cs-714a4f1f-93f4-4166-9b02-cf498c41aa07 ┊ nvme_pool            ┊     0 ┊    1003 ┊ /dev/drbd1003 ┊  2.20 GiB ┊ Unused ┊   UpToDate ┊
┊ kvm1 ┊ cs-748e7f9d-7257-48dd-9efa-971396fee88f ┊ nvme_pool            ┊     0 ┊    1000 ┊ /dev/drbd1000 ┊  2.20 GiB ┊ Unused ┊   UpToDate ┊
┊ kvm2 ┊ cs-748e7f9d-7257-48dd-9efa-971396fee88f ┊ DfltDisklessStorPool ┊     0 ┊    1000 ┊ /dev/drbd1000 ┊           ┊ Unused ┊   Diskless ┊
┊ kvm3 ┊ cs-748e7f9d-7257-48dd-9efa-971396fee88f ┊ nvme_pool            ┊     0 ┊    1000 ┊ /dev/drbd1000 ┊  2.20 GiB ┊ Unused ┊   UpToDate ┊
┊ kvm1 ┊ cs-98ff59bc-3dd0-4efb-ba9a-381c6b5642c4 ┊ nvme_pool            ┊     0 ┊    1001 ┊ /dev/drbd1001 ┊  2.20 GiB ┊ Unused ┊   UpToDate ┊
┊ kvm2 ┊ cs-98ff59bc-3dd0-4efb-ba9a-381c6b5642c4 ┊ nvme_pool            ┊     0 ┊    1001 ┊ /dev/drbd1001 ┊  2.20 GiB ┊ Unused ┊   UpToDate ┊
┊ kvm3 ┊ cs-98ff59bc-3dd0-4efb-ba9a-381c6b5642c4 ┊ DfltDisklessStorPool ┊     0 ┊    1001 ┊ /dev/drbd1001 ┊           ┊ Unused ┊ TieBreaker ┊
┊ kvm1 ┊ cs-bdad90e3-2443-4d01-aef9-1f37db7b3a5a ┊ nvme_pool            ┊     0 ┊    1002 ┊ /dev/drbd1002 ┊  2.22 GiB ┊ InUse  ┊   UpToDate ┊
┊ kvm2 ┊ cs-bdad90e3-2443-4d01-aef9-1f37db7b3a5a ┊ DfltDisklessStorPool ┊     0 ┊    1002 ┊ /dev/drbd1002 ┊           ┊ Unused ┊   Diskless ┊
┊ kvm3 ┊ cs-bdad90e3-2443-4d01-aef9-1f37db7b3a5a ┊ nvme_pool            ┊     0 ┊    1002 ┊ /dev/drbd1002 ┊  2.22 GiB ┊ Unused ┊   UpToDate ┊
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

I also tried resizing the volume via CloudStack's volume -> resize, but that doesn't work either.

I tried to create data disk with the same offering, while the offering's size was 100G in the linstor v l I saw a new entries but with only 20.48MiB size:

┊ kvm1 ┊ cs-d4eea962-011c-411b-85d6-9a0bd26a1f44 ┊ DfltDisklessStorPool ┊     0 ┊    1006 ┊ /dev/drbd1006 ┊           ┊ InUse  ┊   Diskless ┊
┊ kvm2 ┊ cs-d4eea962-011c-411b-85d6-9a0bd26a1f44 ┊ nvme_pool            ┊     0 ┊    1006 ┊ /dev/drbd1006 ┊ 20.48 MiB ┊ Unused ┊   UpToDate ┊
┊ kvm3 ┊ cs-d4eea962-011c-411b-85d6-9a0bd26a1f44 ┊ nvme_pool            ┊     0 ┊    1006 ┊ /dev/drbd1006 ┊ 20.48 MiB ┊ Unused ┊   UpToDate ┊

For each VM deployment using the same VM template, in linstor I see multiple volume created. I'm not entirely sure if it's a bug, could you advise if it's expected that the current linstor plugin would create a volume per KVM host?

cc @rp- @Philipp-Reisner - pl advise if you need any further information, it's possible I've followed something wrong (and obvious?), users wouldn't be able to try/use Linstor with CloudStack. Is it supported with CloudStack with lvm (thin)? Or, should we be using zfs (thick/thin) or lvm (thick) with this? Thanks. (edit - changing the volume-definition manually and doing a stop/start fixed the size issue for me)
Misc:
# linstor --version
linstor-client 1.19.0; GIT-hash: 500970a65717de3eeba002ee32ceb668ebd654b1

# cat /proc/drbd
version: 9.2.5 (api:2/proto:86-122)
GIT-hash: b44520271e63d4b6f359a6642eb4d475b7cc04e0 build by root@kvm3, 2023-09-01 18:27:18
Transports (api:18): tcp (9.2.5)

ISSUE TYPE

Bug Report

COMPONENT NAME

Linstor storage plugin

CLOUDSTACK VERSION

<IP_ADDRESS>

CONFIGURATION

Adv zone KVM with Ubuntu 22.04 using hwe kernel 6.2.0-31-generic

Maybe I got you wrong, but as far as I understand you are using thin provisioning on linstor and your question is why you do not see 100GB allocated space, is that correct?
Linstor v l is showing you what really is allocated on the SrotagePool and not what the max of that volume is. If you would use lvm without thin it would show 100G.

Yes, I found this bug last week and fixed it internal already.
I'm currently working on more cloudstack improvements and will open a PR "soon"
resize should work, I'll investigate that on Monday
This might be normal with thin devices, as linstor v l only shows the allocated size. You might want to look at linstor vd l
It creates volumes depending on your replica count and maybe a diskless if cloudstack did start the VM on a non diskful host. Or didn't I get your question?

We currently support LVM-thin and ZFS (thick and thin)

Thanks @sbrueseke @rp- , @rp- is right in case of LVM-thin, the allocated volume size seen in linstor vd l showed like 2.2GB (template size) instead of the root disk allocated size (100GB) in my case. Like I've mentioned briefly, I've workaround specifically by using set-size in linstor vd I could change the volume size to 100GB and do a VM stop/start. Resize didn't work for me though, I can try to test again.
@rp- on the last point, I wanted to learn how the linstor plugin caches the template. In my experimentation, I found the issue to be a case where a Linstor (resource) volume fails to be deleted (stuck in Destory state but not expunged in CloudStack's DB), CloudStack can mark it as removed in its database but the volume may not be deleted on the linstor side.

This issue is valid.
When looking at the CS Gui, the Volume is assigned the new Size.
However, in linstor satellite note , when looking at lvs , the LSize is same as the template.
When logging into the VM, disk size is the same as the template, which in reality should be the overwritten root disk size.
For example ,
Lets say the template is 8GB .
When deploying the VM , we overwrite the Root disk size to 40 GB.
CS gui confirms that it is assigning 40G to the Root disk.

in Linstor, LV size is still 8GB (Thats ok)

However, when the VM is deployed, and we check the disk size using fdisk , the disk is 8GB and not 40GB.

I can safely stop the VM, resize the disk and start the VM with new size. However, this should not be needed, as it works fine with other storage plugins.

@hmadra

Yes, I found this bug last week and fixed it internal already.
I'm currently working on more cloudstack improvements and will open a PR "soon"

fixed in #7952


Icons not appearing

I made some changes to my HTML and Javascript code, so now I can add todos, but my icons to edit and delete aren't appearing. I'm also not sure how I can get the trash icon to delete an item when clicked.

How are you currently adding the icons?
In your render list function, when you loop through your array of todos, you could create the various HTML elements and then add them to the list item for the todo.
In terms of deleting the todos, you would add an event handler to each delete button and then when the button is clicked you delete the entry in the array of todos.
Once the array element is removed you can run the render list function and it will redraw the list without the deleted item.

document.createElement documentation
https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement

This is the code for my icons:

They're imported from fontawesome.com, how would I use createElement to add them?

I would recommend this MDN site for starters
https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement
Maybe start with creating a button or something simpler and then you can replace a button with an icon in the future once it’s all working.

Here’s a tutorial on creating buttons
https://sebhastian.com/javascript-create-button/
In your render list function, as a start, add a button to your list item in the for loop.

Alright I'll give it a try


Not raises error if plugin that inherits from Danger::Plugin

Some users may not use module Danger on outer namespace. This PR fixes it.
If the regexp is not reliable, we can use Ruby parser gem.

I had a thought about
/home/ubuntu/danger/vendor/bundle/ruby/2.1.0/gems/rspec_junit_formatter-0.2.3/lib/rspec_junit_formatter.rb:29:in `block in xml_dump_examples': undefined method `xml_dump_' for #<RSpecJUnitFormatter:0x0000000112f858> (NoMethodError)

it occurs when an unnamed test is found - can you think of any tests we may have with no names?

it occurs when an unnamed test is found - can you think of any tests we may have with no names?

RSpec gives this spec:
  it "" do
    expect(1+1).to eq(2)
  end

a default name:
Danger::Plugin
  should forward unknown method calls to the dangerfile
  creates an instance name based on the class name
  should eq 2

Finished in 0.00228 seconds (files took 0.4083 seconds to load)
3 examples, 0 failures

a default name:

of course they do, RSpec is so comprehensive ☀

of course they do, RSpec is so comprehensive ☀

So the failure is actually intermittent. Restart circle build now passed 😓