text:
Support for Tailwind CSS

First of all!
Really COOL boilerplate for getting started with Chrome extension development.
I was struggling with getting chrome as a global variable. And ChatGPT just gave me a headache with it's hallucinations.
Your repo, on the other hand, is looking really promising! Thank you!
Now to my issue:
Everything was working as expected until I tried to add TailwindCSS and got this error.
npm run start

> chrome-extension-webpack@0.2.0 start
> webpack --watch --config webpack.dev.cjs

Failed to load ./.env.
assets by path icons/ 35.8 KiB
  assets by path icons/*.png 16.5 KiB 10 assets
  assets by path icons/*.svg 13.2 KiB 3 assets
  asset icons/.DS_Store 6 KiB [compared for emit] [from: static/icons/.DS_Store] [copied]
assets by path *.js 142 KiB
  asset serviceWorker.js 126 KiB [compared for emit] (name: serviceWorker)
  asset options.js 10.7 KiB [emitted] (name: options)
  asset popup.js 5.08 KiB [compared for emit] (name: popup)
  asset contentScript.js 196 bytes [compared for emit] (name: contentScript)
assets by path *.html 1.42 KiB
  asset popup.html 836 bytes [compared for emit] [from: static/popup.html] [copied]
  asset options.html 614 bytes [emitted] [from: static/options.html] [copied]
asset styles/popup.css 19.1 KiB [compared for emit] (name: popup)
asset manifest.json 1.03 KiB [compared for emit] [from: static/manifest.json] [copied]
Entrypoint serviceWorker 126 KiB = serviceWorker.js
Entrypoint contentScript 196 bytes = contentScript.js
Entrypoint popup 24.1 KiB = styles/popup.css 19.1 KiB popup.js 5.08 KiB
Entrypoint options 10.7 KiB = options.js
runtime modules 3.19 KiB 13 modules
orphan modules 19.8 KiB [orphan] 5 modules
javascript modules 44.9 KiB
  modules by path ./node_modules/@babel/runtime/ 18.4 KiB 13 modules
  modules by path ./src/*.ts 26.5 KiB
    ./src/serviceWorker.ts 6.35 KiB [built] [code generated]
    ./src/contentScript.ts 1 bytes [built] [code generated]
    + 4 modules
  modules by path ./styles/*.scss 89 bytes
    ./styles/popup.scss 50 bytes [built] [code generated]
    ./styles/options.scss 39 bytes [built] [code generated] [1 error]
css modules 6.32 KiB
  css ./node_modules/css-loader/dist/cjs.js!./node_modules/normalize.css/normalize.css 5.99 KiB [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./styles/popup.scss 334 bytes [built] [code generated]

WARNING in [eslint]
/private/var/www/jorgeuos/chrome-check-analytics/src/mtmoChecker.ts
  177:9  warning  'matomoFound' is assigned a value but never used  @typescript-eslint/no-unused-vars

/private/var/www/jorgeuos/chrome-check-analytics/src/serviceWorker.ts
  21:16  warning  'getCurrentTab' is defined but never used  @typescript-eslint/no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

ERROR in ./styles/options.scss (./styles/options.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./styles/options.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
SassError: SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at Object.loader (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/index.js:69:14)
 @ ./styles/options.scss
 @ ./src/options.ts 1:0-32

ERROR in ./styles/options.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at tryRunOrWebpackError (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/HookWebpackError.js:88:9)
    at __webpack_require_module__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5066:12)
    at __webpack_require__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5023:18)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5094:20
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3485:9)
    at done (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3527:9)
    at Hook.eval [as callAsync] (eval at create (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5001:43
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3482:9)
    at timesSync (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:2297:7)
-- inner error --
Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at Object.<anonymous> (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/css-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/styles/options.scss:1:7)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:439:10
    at Hook.eval [as call] (eval at create (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5068:39
    at tryRunOrWebpackError (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/HookWebpackError.js:83:7)
    at __webpack_require_module__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5066:12)
    at __webpack_require__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5023:18)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5094:20
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3485:9)
    at done (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3527:9)

Generated code for /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/css-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/styles/options.scss
1 | throw new Error("Module build failed (from ./node_modules/sass-loader/dist/cjs.js):\nSassError: Can't find stylesheet to import.\n  ╷\n1 │ @import \"tailwindcss/base\";\n  │         ^^^^^^^^^^^^^^^^^^\n  ╵\n  styles/options.scss 1:9  root stylesheet");
 @ ./src/options.ts 1:0-32

webpack 5.83.1 compiled with 2 errors and 1 warning in 3403 ms
^C
(⎈|N/A:N/A) MY_ACCOUNT_NAME  /p/v/w/j/chrome-check-analytics   main ±  git remote -v
origin  git@github.com:sszczep/chrome-extension-webpack.git (fetch)
origin  git@github.com:sszczep/chrome-extension-webpack.git (push)
(⎈|N/A:N/A) MY_ACCOUNT_NAME  /p/v/w/j/chrome-check-analytics   main ±  npm run start

> chrome-extension-webpack@0.2.0 start
> webpack --watch --config webpack.dev.cjs

Failed to load ./.env.
assets by path icons/ 35.8 KiB
  assets by path icons/*.png 16.5 KiB 10 assets
  assets by path icons/*.svg 13.2 KiB 3 assets
  asset icons/.DS_Store 6 KiB [compared for emit] [from: static/icons/.DS_Store] [copied]
assets by path *.js 142 KiB
  asset serviceWorker.js 126 KiB [emitted] [compared for emit] (name: serviceWorker)
  asset options.js 10.7 KiB [compared for emit] (name: options)
  asset popup.js 5.08 KiB [compared for emit] (name: popup)
  asset contentScript.js 196 bytes [compared for emit] (name: contentScript)
assets by path *.html 1.42 KiB
  asset popup.html 836 bytes [compared for emit] [from: static/popup.html] [copied]
  asset options.html 614 bytes [compared for emit] [from: static/options.html] [copied]
asset styles/popup.css 19.1 KiB [compared for emit] (name: popup)
asset manifest.json 1.03 KiB [compared for emit] [from: static/manifest.json] [copied]
Entrypoint serviceWorker 126 KiB = serviceWorker.js
Entrypoint contentScript 196 bytes = contentScript.js
Entrypoint popup 24.1 KiB = styles/popup.css 19.1 KiB popup.js 5.08 KiB
Entrypoint options 10.7 KiB = options.js
runtime modules 3.19 KiB 13 modules
orphan modules 19.8 KiB [orphan] 5 modules
javascript modules 44.9 KiB
  modules by path ./node_modules/@babel/runtime/ 18.4 KiB 13 modules
  modules by path ./src/*.ts 26.5 KiB
    ./src/serviceWorker.ts 6.35 KiB [built] [code generated]
    ./src/contentScript.ts 1 bytes [built] [code generated]
    + 4 modules
  modules by path ./styles/*.scss 89 bytes
    ./styles/popup.scss 50 bytes [built] [code generated]
    ./styles/options.scss 39 bytes [built] [code generated] [1 error]
css modules 6.32 KiB
  css ./node_modules/css-loader/dist/cjs.js!./node_modules/normalize.css/normalize.css 5.99 KiB [built] [code generated]
  css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./styles/popup.scss 334 bytes [built] [code generated]

WARNING in [eslint]
/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/src/mtmoChecker.ts
  178:9  warning  'matomoFound' is assigned a value but never used  @typescript-eslint/no-unused-vars

/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/src/serviceWorker.ts
  21:16  warning  'getCurrentTab' is defined but never used  @typescript-eslint/no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

ERROR in ./styles/options.scss (./styles/options.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./styles/options.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
SassError: SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at Object.loader (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/index.js:69:14)
 @ ./styles/options.scss
 @ ./src/options.ts 1:0-32

ERROR in ./styles/options.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at tryRunOrWebpackError (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/HookWebpackError.js:88:9)
    at __webpack_require_module__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5066:12)
    at __webpack_require__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5023:18)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5094:20
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3485:9)
    at done (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3527:9)
    at Hook.eval [as callAsync] (eval at create (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5001:43
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3482:9)
    at timesSync (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:2297:7)
-- inner error --
Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at Object.<anonymous> (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/css-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/styles/options.scss:1:7)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:439:10
    at Hook.eval [as call] (eval at create (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5068:39
    at tryRunOrWebpackError (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/HookWebpackError.js:83:7)
    at __webpack_require_module__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5066:12)
    at __webpack_require__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5023:18)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5094:20
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3485:9)
    at done (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3527:9)

Generated code for /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/css-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/styles/options.scss
1 | throw new Error("Module build failed (from ./node_modules/sass-loader/dist/cjs.js):\nSassError: Can't find stylesheet to import.\n  ╷\n1 │ @import \"tailwindcss/base\";\n  │         ^^^^^^^^^^^^^^^^^^\n  ╵\n  styles/options.scss 1:9  root stylesheet");
 @ ./src/options.ts 1:0-32

webpack 5.83.1 compiled with 2 errors and 1 warning in 3550 ms
assets by status 200 KiB [cached] 22 assets
Entrypoint serviceWorker 126 KiB = serviceWorker.js
Entrypoint contentScript 196 bytes = contentScript.js
Entrypoint popup 24.1 KiB = styles/popup.css 19.1 KiB popup.js 5.08 KiB
Entrypoint options 10.7 KiB = options.js
cached modules 62.9 KiB (javascript) 3.19 KiB (runtime) [cached] 35 modules
orphan modules 1.72 KiB [orphan] 2 modules
cacheable modules 89 bytes (javascript) 6.32 KiB (css/mini-extract)
  javascript modules 89 bytes
    ./styles/popup.scss 50 bytes [built]
    ./styles/options.scss 39 bytes [built] [1 error]
  css modules 6.32 KiB
    css ./node_modules/css-loader/dist/cjs.js!./node_modules/normalize.css/normalize.css 5.99 KiB [built]
    css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./styles/popup.scss 334 bytes [built]

WARNING in [eslint]
/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/src/mtmoChecker.ts
  178:9  warning  'matomoFound' is assigned a value but never used  @typescript-eslint/no-unused-vars

/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/src/serviceWorker.ts
  21:16  warning  'getCurrentTab' is defined but never used  @typescript-eslint/no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

ERROR in ./styles/options.scss (./styles/options.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./styles/options.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
SassError: SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at Object.loader (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/index.js:69:14)
 @ ./styles/options.scss
 @ ./src/options.ts 1:0-32

ERROR in ./styles/options.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at tryRunOrWebpackError (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/HookWebpackError.js:88:9)
    at __webpack_require_module__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5066:12)
    at __webpack_require__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5023:18)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5094:20
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3485:9)
    at done (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3527:9)
    at Hook.eval [as callAsync] (eval at create (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/Hook.js:18:14)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5001:43
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3482:9)
-- inner error --
Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at Object.<anonymous> (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/css-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/styles/options.scss:1:7)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:439:10
    at Hook.eval [as call] (eval at create (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
    at Hook.CALL_DELEGATE [as _call] (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/Hook.js:14:14)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5068:39
    at tryRunOrWebpackError (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/HookWebpackError.js:83:7)
    at __webpack_require_module__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5066:12)
    at __webpack_require__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5023:18)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5094:20
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3485:9)

Generated code for /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/css-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/styles/options.scss
1 | throw new Error("Module build failed (from ./node_modules/sass-loader/dist/cjs.js):\nSassError: Can't find stylesheet to import.\n  ╷\n1 │ @import \"tailwindcss/base\";\n  │         ^^^^^^^^^^^^^^^^^^\n  ╵\n  styles/options.scss 1:9  root stylesheet");
 @ ./src/options.ts 1:0-32

webpack 5.83.1 compiled with 2 errors and 1 warning in 120 ms
^C
(⎈|N/A:N/A) MY_ACCOUNT_NAME  /p/v/w/j/chrome-check-analytics   main ±  npm run build

> chrome-extension-webpack@0.2.0 build
> webpack --config webpack.prod.cjs

Failed to load ./.env.
assets by status 66.6 KiB [cached] 22 assets
Entrypoint serviceWorker = serviceWorker.js 1 auxiliary asset
Entrypoint contentScript = contentScript.js
Entrypoint popup = styles/popup.css popup.js 2 auxiliary assets
Entrypoint options = options.js 1 auxiliary asset
orphan modules 43.4 KiB (javascript) 997 bytes (runtime) [orphan] 22 modules
runtime modules 1.4 KiB 6 modules
cacheable modules 44.9 KiB (javascript) 6.25 KiB (css/mini-extract)
  javascript modules 44.9 KiB
    modules by path ./src/*.ts 30.3 KiB
      ./src/serviceWorker.ts + 12 modules 30.1 KiB [built] [code generated]
      + 3 modules
    modules by path ./node_modules/@babel/runtime/ 14.6 KiB
      ./node_modules/@babel/runtime/regenerator/index.js 448 bytes [built] [code generated]
      ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js 13.6 KiB [built] [code generated]
      ./node_modules/@babel/runtime/helpers/typeof.js 555 bytes [built] [code generated]
    ./styles/options.scss 39 bytes [built] [code generated] [1 error]
  css modules 6.25 KiB
    css ./node_modules/css-loader/dist/cjs.js!./node_modules/normalize.css/normalize.css 5.99 KiB [built] [code generated]
    css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./styles/popup.scss 262 bytes [built] [code generated]

WARNING in [eslint]
/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/src/mtmoChecker.ts
  178:9  warning  'matomoFound' is assigned a value but never used  @typescript-eslint/no-unused-vars

/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/src/serviceWorker.ts
  21:16  warning  'getCurrentTab' is defined but never used  @typescript-eslint/no-unused-vars

✖ 2 problems (0 errors, 2 warnings)

ERROR in ./styles/options.scss (./styles/options.scss.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./styles/options.scss)
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
SassError: SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at Object.loader (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/index.js:69:14)
 @ ./styles/options.scss
 @ ./src/options.ts 1:0-32

ERROR in ./styles/options.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at tryRunOrWebpackError (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/HookWebpackError.js:88:9)
    at __webpack_require_module__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5066:12)
    at __webpack_require__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5023:18)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5094:20
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3485:9)
    at done (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3527:9)
    at Hook.eval [as callAsync] (eval at create (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5001:43
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3482:9)
    at timesSync (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:2297:7)
-- inner error --
Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
  ╷
1 │ @import "tailwindcss/base";
  │         ^^^^^^^^^^^^^^^^^^
  ╵
  styles/options.scss 1:9  root stylesheet
    at Object.<anonymous> (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/css-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/styles/options.scss:1:7)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/javascript/JavascriptModulesPlugin.js:439:10
    at Hook.eval [as call] (eval at create (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:1)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5068:39
    at tryRunOrWebpackError (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/HookWebpackError.js:83:7)
    at __webpack_require_module__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5066:12)
    at __webpack_require__ (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5023:18)
    at /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/webpack/lib/Compilation.js:5094:20
    at symbolIterator (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3485:9)
    at done (/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/neo-async/async.js:3527:9)

Generated code for /private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/css-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/node_modules/sass-loader/dist/cjs.js!/private/var/www/MY_ACCOUNT_NAME/chrome-check-analytics/styles/options.scss
1 | throw new Error("Module build failed (from ./node_modules/sass-loader/dist/cjs.js):\nSassError: Can't find stylesheet to import.\n  ╷\n1 │ @import \"tailwindcss/base\";\n  │         ^^^^^^^^^^^^^^^^^^\n  ╵\n  styles/options.scss 1:9  root stylesheet");
 @ ./src/options.ts 1:0-32

Do you have any clue on how to fix the issue. I'll continue debugging tomorrow.

Hey, thanks for reaching out.
Could you provide a minimal reproducible example? Some temporary git repository would be great.

Sure!
I just installed everything:
git clone git@github.com:sszczep/chrome-extension-webpack.git
cd chrome-extension-webpack
npm install
npm run start
# Stop obviosly: ctrl+c
npm install -D postcss-import
npm run start

But sure, I haven't even created a new repo yet. But I will if you want me to.
Regards, Jorge

Hi again!
I got it to work!
I feel really stupid now, but mainly I just followed a TailwindCSS guide and generated the default tailwind.config.js file and I added a postcss.config.js file aswell.
Renaming the extension of these files to .cjs seems to fix the issue.
I also tried different things before I got it to work.
But I made a fork of your repo, you can check it out if you want. I can even create a PR if you'd like that. But perhaps TailwindCSS should be optional. Perhaps something I can fix over the weekend or something.
Here's the diff.

Oh, and here is a detailed doc of My tweaks to make TailwindCSS work.

authors: jorgeuos sszczep

repo: sszczep/chrome-extension-webpack


text:
The SMB node stalls after 10 minutes

The node works well, after 10 to 15mins, doesn't work at all untill you do a Full Deploy or restart the Flow then it works alright again.... and repeat.
when it gets stuck you will see the blue icon with the "Process" but produces no output untill you do Full depoly.
it seems to be an issue related to a timeout on the login to the Shared file
can you please have a look at this bug?

Same here!

node-red-contrib-smb Version 1.2.1
Node-Red Version 3.0.2

source: gharchive/issue

repo: st-one-io/node-red-contrib-smb

license_type: permissive

license_source: github-api


text:
Gepetto-viewer connexion failing

My naive discovery of Pinocchio continues. Meshcat visualization works great however I can't get gepetto-viewer to work. Here is the error message I get :
(pinocchio) vpadois@ychoux:~/Documents/Softs/Pinocchio_playground$ /home/vpadois/anaconda3/envs/pinocchio/bin/python /home/vpadois/Documents/Softs/Pinocchio_playground/pinocchio_display_model_gepetto.py /home/vpadois/Documents/Softs/Pinocchio_playground/pinocchio_display_model_gepetto.py:25: UserWarning: Error while importing the viewer client. Check whether gepetto-viewer is properly installed   viz.initViewer() /home/vpadois/Documents/Softs/Pinocchio_playground/pinocchio_display_model_gepetto.py:25: UserWarning: Error while starting the viewer client. Check whether gepetto-viewer is properly started   viz.initViewer() Error while loading the viewer model. It seems you should start gepetto-viewer 'GepettoVisualizer' object has no attribute 'viewer'
gepetto-viewer was installed with conda and I launched gepetto-gui before running the script (the gui opens and does not appear to complain).
Any help will be appreciated.

Can you launch the GUI and try in a Python interpreter:
from gepetto.corbaserver import gui_client
gui = gui_client(window_name="test")

here is the output:
`(pinocchio) vpadois@ychoux:~/Documents/Enseignement/Cours génériques/QP_ Control
/Notebooks$ ipython
Python 3.8.8 | packaged by conda-forge | (default, Feb 20 2021, 16:22:27)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.21.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from gepetto.corbaserver import gui_client
ModuleNotFoundError                       Traceback (most recent call last)
 in
----> 1 from gepetto.corbaserver import gui_client
ModuleNotFoundError: No module named 'gepetto'`
Should I install the corba server version of the gui ?

On which OS are you operating?
For the first time, you should at least init Corba:
omniNames -start

can you echo $PYHTON_PATH?

I am running everything in ubuntu noetic. ROS is installed but not running. I run everything in conda with Python 3.8
PYTHON_PATH is empty.

omniNames is now useless. You have to understand why the gepetto.corbaserver module is not found. I have no experience with conda.

I guess the conda information is not so important. How should I have installed the package providing gepetto.corbaserver ?

conda install gepetto-viewer-corba -c conda-forge

omniNames is now useless. You have to understand why the gepetto.corbaserver module is not found. I have no experience with conda.

On mac, I need it to set the first time the correct settings.

conda install gepetto-viewer-corba -c conda-forge

That's what I just dit and that was indeed the problem. I had installed the "non corba" version  of the viewer. It now works (and I did not need to start omniNames explicitly). Thanks again.

authors: jcarpent jmirabel vpadois

repo: stack-of-tasks/pinocchio


text:
Gepetto-gui installation problem on Mac

brew reinstall gepetto-viewer-corba
gepetto-gui
I found the following error:
yld: Symbol not found: __ZN5boost11basic_regexIcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE9do_assignEPKcS7_j
Referenced from: /usr/local/bin/gepetto-gui
Expected in: /usr/local/opt/boost/lib/libboost_regex-mt.dylib
in /usr/local/bin/gepetto-gui
Can you help me out?

Dear @ddliugit
It makes a while I did not update the packages according to new Boost versions. I would suggest reinstalling them from sources, using the --build-from-source option of brew.
I will generate the packages on Monday. Is it fine for you?

It works fine now. Thanks!

I moved to python 3 and it doesn't work well while I am using Pinocchio with gepetto-gui:
The errors is like so:
  File "integratedTest.py", line 17, in <module>
    robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in __init__
    self.initDisplay()
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
    self.robot.initViewer(loadModel=True)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
    self.viz.initViewer(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
    import gepetto.corbaserver
ModuleNotFoundError: No module named 'gepetto'

Can you help me?

Yes, this is because the module is currently compiled for Python2. I don't have the time now to produce the image. It is generated now.

brew install gepetto-viewer-corba-python3

I try it, but same error still appears.
Also, I tried:
brew unlink gepetto-viewer-corba
brew link gepetto-viewer-corba-python3

Any idea why does this happen?

@jcarpent  Can you help me out?

I cannot guess what happens. Please provide consistent log.

10-18-226-182:~ dongdong$ python i
/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'i': [Errno 2] No such file or directory
10-18-226-182:~ dongdong$ cd repos/humanoid_control/IntegratedTest/
10-18-226-182:IntegratedTest dongdong$ python integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.

Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
File "integratedTest.py", line 17, in
robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in init
self.initDisplay()
File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
self.robot.initViewer(loadModel=True)
File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
self.viz.initViewer(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
import gepetto.corbaserver
ModuleNotFoundError: No module named 'gepetto'

@ddliugit It is fixed now!

I still have errors on my machine. Is this caused by the environment setting?
The error changes:

10-18-226-182:humanoid_control dongdong$ python IntegratedTest/integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.
- Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
- or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
  File "IntegratedTest/integratedTest.py", line 17, in <module>
    robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in __init__
    self.initDisplay()
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
    self.robot.initViewer(loadModel=True)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
    self.viz.initViewer(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
    import gepetto.corbaserver
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/__init__.py", line 1, in <module>
    import omniORB
ModuleNotFoundError: No module named 'omniORB'

You can proceed as follows:
brew update
brew install omniorbpy

By default, omniORB is not built for Python3. I've fixed it by creating a new package for brew.

Thanks!
I just did it and the error changes:
`10-16-22-176:IntegratedTest dongdong$ python integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.

Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
File "integratedTest.py", line 17, in
robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in init
self.initDisplay()
File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
self.robot.initViewer(loadModel=True)
File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
self.viz.initViewer(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
import gepetto.corbaserver
File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/init.py", line 2, in
omniORB.updateModule("gepetto.corbaserver")
AttributeError: module 'omniORB' has no attribute 'updateModule'`

I tried to unlink and then link again, the error is like so. Did I miss something?
mac:~ dongdong$ brew unlink omniorbpy
Unlinking /usr/local/Cellar/omniorbpy/4.2.3... 178 symlinks removed
mac:~ dongdong$ brew link omniorbpy
Linking /usr/local/Cellar/omniorbpy/4.2.3... 178 symlinks created

10-16-22-176:IntegratedTest dongdong$ python integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.
- Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
- or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
  File "integratedTest.py", line 17, in <module>
    robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in __init__
    self.initDisplay()
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
    self.robot.initViewer(loadModel=True)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
    self.viz.initViewer(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
    import gepetto.corbaserver
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/__init__.py", line 6, in <module>
    from gepetto.corbaserver.client import Client
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/client.py", line 88
    print e
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(e)?

I think the error is caused by the syntax of python 3. I changed it manually, it works!

@ddliugit you might want to update gepetto-viewer corba. That problem seems to be fixed in the current release (and in the current binary apt release as well). I think pretty much all of our code is compatible with Python 3 by now (@nim65s can confirm).
In our team we make frequent fixes, addition, and changes, and frequent releases, particularly for Pinocchio, so please always make sure that what you have is up to date.

Thanks. BTW, how to update the gepetto-viewer-corba

I can confirm that I can run pinocchio, example-robot-data & gepetto-gui all in python3 to load some robot models and display them in their initial pose, so yes, this works.
I am also taking care of any python 2 only syntax I can find, but I might miss a few lines, especially if they are added now without CI checks about that or a review from someone who cares about that… So please tell us if you find anything.

I try to install gepetto-gui in python 3. The error appears in this code /usr/local/lib/python3.7/site-packages/gepetto/corbaserver/client.py, which is caused by print e in python2 syntax. I changed it to print(e).That's it.

I tried to unlink and then link again, the error is like so. Did I miss something?
mac:~ dongdong$ brew unlink omniorbpy
Unlinking /usr/local/Cellar/omniorbpy/4.2.3... 178 symlinks removed
mac:~ dongdong$ brew link omniorbpy
Linking /usr/local/Cellar/omniorbpy/4.2.3... 178 symlinks created

10-16-22-176:IntegratedTest dongdong$ python integratedTest.py
eigenpy warning: you use the deprecated class numpy.matrix without explicily asking for it. The default behaviour will change to numpy.array at next major release.
- Either call eigenpy.switchToNumpyMatrix() before using eigenpy to suppress this warning
- or call eigenpy.switchToNumpyArray() and adapt your code accordingly.
See https://github.com/stack-of-tasks/eigenpy/issues/87 for further details.
Traceback (most recent call last):
  File "integratedTest.py", line 17, in <module>
    robot = model.loadHumanoidModel(isDisplay=True,urdfPath = urdfPath,meshPath = meshPath)
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 140, in __init__
    self.initDisplay()
  File "/usr/local/lib/python3.7/site-packages/py_lqr/model.py", line 150, in initDisplay
    self.robot.initViewer(loadModel=True)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/robot_wrapper.py", line 236, in initViewer
    self.viz.initViewer(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pinocchio/visualize/gepetto_visualizer.py", line 19, in initViewer
    import gepetto.corbaserver
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/__init__.py", line 6, in <module>
    from gepetto.corbaserver.client import Client
  File "/usr/local/lib/python3.7/site-packages/gepetto/corbaserver/client.py", line 88
    print e
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(e)?

This was fixed 8 months ago, and included in releases v5.3.2, v5.3.1, v5.3.0 & v5.2.1: https://github.com/Gepetto/gepetto-viewer-corba/commit/21cf4c1d97160e19906a068b9aeb3327a47079be

@ddliugit that's what I was saying. You should update gepetto-viewer-corba, because that problem is currently fixed, both in the source release and in the apt release

Thanks. BTW, how to update the gepetto-viewer-corba

How did you install gepetto-viewer-corba?
If bu source, then just go to the source folder, git pull the latest changes, and proceed to build and install.
If by apt, use sudo apt-get install --reinstall [...]

Thanks all. I see.

@gabrielebndn @nim65s. I think you did not notice, but @ddliugit is MAC OS X systems. I'm currently making the update of the packages on homebrew. Sorry for the delay, but it is hard to be on all the fronts.

Oh! No, hadn't noticed. Sorry @ddliugit, it seems you will have to wait for the updated brew repo, or install by source

@ddliugit I've updated all the packages. It should work now.

Thank you. @jcarpent

authors: ddliugit gabrielebndn jcarpent nim65s


text:
Devel

Fixed bugs in unaligned joints. + reworked some joints unittests

Coverage increased (+2.05%) to 85.426% when pulling ff0be1b3a173751f45d105337f8f9f844595491d on fvalenza:devel into ed653fbdefe30b899912af2c615f2e37f3be2c66 on stack-of-tasks:devel.

source: gharchive/pull-request

authors: coveralls fvalenza


text:
Deploy this application.  prompt is too long: 203468 tokens > 200000 maximum

Describe the bug
Deploy this application.
prompt is too long: 203468 tokens > 200000 maximum

Link to the Bolt URL that caused the error
https://bolt.new/~/github-d25wtv-yly29s
Steps to reproduce
Deploy this application.
prompt is too long: 203468 tokens > 200000 maximum
Expected behavior
Deploy this application.
prompt is too long: 203468 tokens > 200000 maximum
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = 130.0.0.0
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 109490444,
  "usedJSHeapSize": 106449356,
  "jsHeapSizeLimit": 2160066560
}
Username = plataformaconcreta
Chat ID = 81d91a1c0b0d

Additional context
No response

Appreciate the feedback! We are aware of this issue and are tracking it here: #1322.

authors: endocytosis plataformaconcreta

license: MIT


text:
prompt is too long: 201928 tokens > 200000 maximum

Describe the bug
prompt is too long: 201928 tokens > 200000 maximum
I can't even type to this thing and this is all I keep getting. It's getting out of hand now and I cannot even use this app anymore as this is all I keep receiving everytime I ask it to do so

Steps to reproduce
Go to the project, type something in and receive error. It's really bad today I can't do anything anymore
Expected behavior
I expect the Ai to build the app when I give it a prompt, it's not a difficult prompt either.
Screen Recording / Screenshot
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]

Additional context
I don't know if this is an overload on the server that's why this error keeps happening but it's really bad today

When I refresh the page, I enter the text prompt in again and I still get this error.

Appreciate the feedback! This is a known issue with the AI model’s context window size and is being tracked here: #1322.


text:
BOLT.NEW IS EITHER A SCAM APP OR JUST NOT READY FOR LAUNCH.

Describe the bug
PROBLEMS:
Can't change my logo.
Can't change the colors of the webapp.
Can't allow the user to input information that is stored.
Unable to connect to port 5173.
Unable to connect to port 3000.
Unable to connect to port 4000.
CONCLUSION:
This seems like it's just creating problems so that i spend more tokens, which would be a form of theft.
Bolt.new isn't ready to be a paid product.
How can I get a refund because I feel like I'm being robbed at this stage?
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-pbp61w
Steps to reproduce
I have absolutely no idea how to reproduce the bahavior?
Expected behavior
Show my actual webapp, rather than a blank page.
Screen Recording / Screenshot

Platform
Browser name = Chrome
Full version = 131.0.0.0
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 148445440,
  "usedJSHeapSize": 142204548,
  "jsHeapSizeLimit": 4294705152
}
Username = luciferburns888
Chat ID = 5c6813088470

Additional context
No response

Dude, do you have any mental problems? Just tell me (Bolt, I can't see, please enable preview). My projects are like this too, because the project has to start, sometimes the project pauses. Got it.

Dude, do you have any mental problems? Just tell me (Bolt, I can't see, please enable preview). My projects are like this too, because the project has to start, sometimes the project pauses. Got it.

Did you not read the problem description?

It constantly says that it is unable to connect to different ports that it tries.


text:
Set User Agent to Node/16.x for any request done by the code.

Describe the bug
I am working on a package named reejs and it support URL Imports. Considering the build servers which provide different source codes for different runtimes based on their user agents, it would make sense to send a Nodejs user agent rather than the default browser agent.
If you want to know which build server will this fix, I would say https://esm.sh for my package. This build server automatically learns and responds back with different build based on user agents.
As such, here's the user agent I would suggest to default to: Node/<stackblitz node version>.
Link to the blitz that caused the error
https://stackblitz.com/edit/stackblitz-starters-vzz8f1?file=package.json
Steps to reproduce
Since running reejs -v directly in console errors out as:
jsh: spawn /home/projects/stackblitz-starters-vzz8f1/node_modules/.bin/reejs ENOENT

I suggest this workaround:
node ./node_modules/.bun/reejs -v

Expected behavior
Should print out:
$ reejs -v
[POLYFILL] `globalThis.fetch`...
[REEJS] Starting for the first time, downloading dependencies...
reejs, 0.9.31

Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots
No response
Platform

OS: Arch Linux
Browser: MS Edge
Version: 114.0.1823.43 (Official build) (64-bit)

Additional context
As said above, reejs depends on esm.sh, it fetches files from there. In nodejs runtime, reejs can use a custom user agent, so it can easily set Node/16.x
However, the same can't be said for stackblitz, as the requests tab shows:

while reejs still tries to use a custom browser agent.
TIP: if you want to see the network requests done by reejs itself in the terminal, I suggest appending DEBUG="true" before the said node command.

Can web content override the User-Agent HTTP header that the browser will send?
I know that some Web Extensions might, but as far as I know web content cannot do that.

Can web content override the User-Agent HTTP header that the browser will send?
I know that some Web Extensions might, but as far as I know web content cannot do that.

It was blacklisted from editing in somewhere around 2015, however atm its allowed to be edited
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent

authors: fvsch renhiyama

repo: stackblitz/webcontainer-core


text:
[Request] Support for nodejs addons

When trying to use an npm package that uses a Nodejs addon (like parcel, rspack, etc), Nodejs fails with:
❯ npx mach version
Error: Cannot load native addon because loading addons is disabled: [...]

Describe the solution you'd like:
Enable the use of napi modules
Describe alternatives you've considered:
N/A

Hey @alshdavid 👋 . Given we are still running everything in a browser context, it's impossible to run arbitrary binaries. For that reason, loading native addons is disabled.
You can find more information here https://developer.stackblitz.com/platform/webcontainers/troubleshooting-webcontainers#cannot-load-native-addon.

Thanks! I have a question. My project is currently a Rust project compiled to a native addon and I'd love to support web containers as it's the perfect environment to use as a "playground" environment.
I already build to a wasm binary, using wasm-bindgen for wasm bindings for web targets.
To avoid having the main npm package distribute binaries for every platform, I am using optionalDependencies in conjunction with the package.json os and arch properties to allow npm to determine which binary package to install.
{
  "name": "parcel",
  "optionalDependencies": {
    "@parcel/linux-amd64",
    "@parcel/linux-arm64",
    "@parcel/macos-amd64",
    "@parcel/macos-arm64",
    "@parcel/windows-amd64",
    "@parcel/windows-arm64",
  }
}

Where each package specifies:
{
  "name": "@parcel/linux-amd64",
  "os": ["linux"],
  "cpu": ["x64"]
}

npm uses process.arch and process.platform to determine what package is eligible for installation.
I could publish a @parcel/wasm package with the appropriate bindings, however I am unsure what to use for os and arch.
Running this in the web container:
node -e "console.log(process.arch, process.platform)"

Gives me
x64 linux

Are you able to build Nodejs with a custom process.arch? Perhaps setting it to wasm?

authors: SamVerschueren alshdavid


text:
Nostr crossposting all item types

This PR enables nostr crossposting for all item types (excluding jobs) as well as providing a few fixes, tweaks, and a less intrusive implementation into the item forms.
High level summary:

crosspost link items as kind 1 events
crosspost poll items as nip41 kind 1 events
crosspost bounty items as nip99 kind 30402 replaceable events
generate naddress and save as 'noteId' for non kind 1 events to improve note searchability when linking out to nostr.com or other clients
moved all crossposting logic into use-crossposter hook
added wss://nostr.mutinywallet.com (blastr) relay to defaults

User facing changes:

Crosspost checkbox now shows up under advanced for all item forms (except for job)
Crosspost dropdown item now shows up on itemInfo dropdown for every one of the user's items (except jobs)
updated crosspost setting copy on user settings
updated crosspost copy under advanced in item form
When linking out to nostr.com the user will see an nAddress for their note instead of noteId if not kind 1
increased toaster timeouts for signing and errors when crossposting

Internal code changes:

added nostr-tools dependency in order to do nip19 nAddr encoding
increased timeout for signing event to 10 seconds
increased timeout for connecting to relays to 3 seconds (this is what fixed blastr)
Added timeout for error toasters in use-crossposter so you can see error before getting redirected
Migrated all crossposting logic out of item forms into use-crossposter hook
Added all queries for missing/required item fields for crossposting into use-crossposter
Added noteId upsert for all crossposts into use-crossposter

other notes:

No clients seem to support nip41 poll notes yet. Though we are still able to link out to the note on nostr.com
Since both poll and link crossposts are kind 1 they cannot be edited after crossposting. We can make these paramaterized replaceable events to enable editing I just wanted to stick close to the spec at first.
Currently the user relays (if they have any set) are added to the default relays when crossposting. Do we want it to only post to the user's relays? Is the current copy here misleading in how it explains that?

https://github.com/stackernews/stacker.news/blob/c3df24b213f180bd63a8510c4a63d8cc00f288c8/components/adv-post-form.js#L102-L103

Sorry for the late review and thanks for the time you invested in this!
I think it would be great if SN is more visible on nostr and crossposting is a good way to achieve this. Also, I would like to interact more with nostr but all my "social media time" already goes into SN. So crossposting more stuff also seems to be a good way to "build up engagement" on nostr (which so far was lacking for me). Now to the review:
So far, I only read the code (see bullet point about testing) and left some comments. I have four things I want to mention here in a dedicated way:
1. Crossposting of polls

No clients seem to support nip41 poll notes yet. Though we are still able to link out to the note on nostr.com

Using a NIP that wasn't merged yet, doesn't look like it's going to get merged and looks like there are no clients that support makes me wonder if we should use it.
I have seen this though:

-- https://nitter.cz/lopp/status/1645514530368126978
Since it doesn't exactly match our poll system since it uses sats for votes (and not unique votes per stacker), it's also not a good match probably. But I like the idea. But I haven't found the NIP for this. And me liking this idea is probably totally unrelated off-topic for this PR. Just thought I'd mention that polls seems to exist on nostr in some way.
2. Crossposting of (short text) notes vs edit timer
Short text notes are not replaceable using the d tag. Wouldn't the code as-is create a new short text note for each edit of link posts and polls?
Also, would be nice if we could use kind:30403 as specified in NIP-99 for bounties which are still editable. But this is related to my comment on crossposting link posts where I wondered if we should even crosspost anything which is still editable.
You mentioned this:

Since both poll and link crossposts are kind 1 they cannot be edited after crossposting. We can make these paramaterized replaceable events to enable editing I just wanted to stick close to the spec at first.

Using parameterized replaceable events might be an option but maybe we could avoid this whole edit problem all together by only crossposting when the timer ran out? As mentioned in my comment regarding link posts, this would require quite some architectural changes but might be worth it? Not sure, let me know what you think :)
3. Stackers should be able to override default relays to give them more control

Currently the user relays (if they have any set) are added to the default relays when crossposting. Do we want it to only post to the user's relays? Is the current copy here misleading in how it explains that?

Currently, I don't think it's clear that user relays are only added to the default relays. See comment for more info.
4. Testing
Is there an easy way to test this code without hitting public relays? How did you test this?

Hey @ekzyis thanks for the thorough review!
I'll start by addressing these high level points since it might take some back and forth and then I'll go down the line for these smaller nits.
1:
In regards to the poll nip not being merged it seems there's four options:

we keep it as is. Even though no clients support this nip it seems to be the most developed poll/vote nip so we can be already posting these events out but of course they wont be rendered properly until clients start supporting it.
we disable it by default. This way we can sit on our hands and wait for it to be merged & a client to implement it. Once that happens it will be very easy to turn it on (even if there is a slight spec change)
We give the user an extra warning or info modal of some kind before crossposting polls so they know that it wont render correctly on any clients yet.
Maybe we could actually crosspost the poll events as paramaterized replaceable notes with a link to the poll. Then it wont be a nostr native poll but will be an invitation to participate in the poll on stackernews

I like the lopp poll example a lot but like you I couldn't find the nip and I even couldn't find his original note to see what kind it was. Do you know what client that screenshot was from?
2.
You are correct non paramaterized replaceable events if edited will then be crossposted a second time instead of being replaced in the current state.
Currently the non replaceable crosspost items are polls/links. From what I can tell there is no such thing as a parametrized replaceable short note so the only option here is to make them kind 30023 long form replaceable events and allow editing.
I don't think there is any way we could post the note after edit window without having the user pre-sign the note in which case if there was an edit we wouldn't be able to add the changes to the note without invalidating the sig.
3.
Yeah I can update it to use ONLY the users relays if they have them set.
The reason I changed this is a combination of:

Increasing the likelihood that the user's note will be found and render on nostr.com when they click the 'nostr note' button on item-info (there are a lot of instances of user's not being able to find their notes from the link esp if they user niche relays)
I feel like a lot of users might have 1 or 2 random relays set on their settings and they wont know they should add some or update them once they start crossposting.

Given these considerations should we maybe add an option or something in settings for the user to choose whether crossposting will only use their set relays or use a combination of user + default relays?
4.
For testing only in the early part of development I have the bucket relay and booger relay locally that I bounced between.
Once I got further along I started testing with real relays using some fake profiles I generated (Alice, Bob, etc.)

I don't think there is any way we could post the note after edit window without having the user pre-sign the note in which case if there was an edit we wouldn't be able to add the changes to the note without invalidating the sig.

I think the frontend could presign every event and send these presigned events to the backend where we do the replacement? And when the edit timer ran out, the backend should be able to publish the events on the user behalf since they are presigned afaict.
I came up with this idea here: https://stacker.news/items/419845

I don't think there is any way we could post the note after edit window without having the user pre-sign the note in which case if there was an edit we wouldn't be able to add the changes to the note without invalidating the sig.

I think the frontend could presign an event for every edit and send these presigned events to the backend where we do the replacement? And when the edit timer ran out, the worker should be able to publish only the most recent edit (the final state) on the user behalf since they are presigned afaict. Let me know what you think, I just came up with this idea here so I probably didn't think this through.
will respond to the other stuff later today hopefully, I just wanted to mention this already

Great idea! I think this is a good middleground approach. Relying on paramterized replaceable events seems a bit fickle. It works well for nip23 long-form events but even then clients are taking a long time to implement it and I know a lot of relay runners don't like/support replaceable events.
Since currently a user already has to resign on an edit of a crossposted item the UX should be the same if we have worker broadcast it after edit window.
One thing we would want to consider is what to show in item-info for a crossposted item DURING the edit window. Currently it will either show crosspost to nostr or nostr note

In regards to the poll nip not being merged it seems there's four options:

I prefer option 2. I think that's also the easiest option. However, this might just be my personal bias on using something which isn't standardized yet since it's antithetical to standardization in the first place. Also, imo, we don't have to be ones who move fast when it comes to implementation of NIPs.
But don't see this as diminishing your efforts! I was completely unaware of the status of nostr polls so thanks to your work, I am less unaware now :)
I would also like to see polls crossposted but if nostr hasn't figured out how polls should work yet, I think efforts are better spent on contributing to getting a standard for polls out there. I subscribed to the PR now.

I like the lopp poll example a lot but like you I couldn't find the nip and I even couldn't find his original note to see what kind it was. Do you know what client that screenshot was from?

I also haven't found the NIP or the original note. Judging from the color theme, it might be a screenshot from Snort.

Given these considerations should we maybe add an option or something in settings for the user to choose whether crossposting will only use their set relays or use a combination of user + default relays?

Your considerations make sense! Mhh, need to think about the UX more but maybe a checkbox which determines if the user relays overwrite the default relays or just append might be the way. The problem as you also nicely described is basically how much we can trust the users with control about nostr details:

I feel like a lot of users might have 1 or 2 random relays set on their settings and they wont know they should add some or update them once they start crossposting.

This also raises the question if it should be possible to crosspost something to new relays if new relays were set but it's probably too early to think about details like this. Need to get this into the hands of users to play with first :)

I know a lot of relay runners don't like/support replaceable events.

Oh, interesting :eyes: Do you know why? Isn't it just replacing old events in the database via an UPDATE query?

One thing we would want to consider is what to show in item-info for a crossposted item DURING the edit window. Currently it will either show crosspost to nostr or nostr note

I don't understand. There would be no nostr note during the edit window since nothing was crossposted yet :thinking:

For testing only in the early part of development I have the bucket relay and booger relay locally that I bounced between.

Ah, I see, you use this: https://github.com/coracle-social/bucket
Didn't know about this relay, thanks, will check it out! Wanted to setup a local nostr relay for NWC in #749 anyway. Being able to test nostr stuff locally will only get more important moving forward.

I talked to @huumn earlier today and he doesn't mind about the polls NIP and one note per edit.
So we can ignore my comments about 1. and 2. -- I was probably thinking too far (scope creep).
Regarding 3. (user relays override or append), we can probably do this in another PR if required. For now, they append and thinking more about this, I think your intuition is right. Most stackers probably don't care and just want to see their notes published reliably.
Going to take another look at the code now but this is probably good to go then.
Sorry for our split brains haha

authors: AustinKelsay ekzyis


text:
Docs: Getting started section is confusing

Since the quickstart allows users to enroll, register repos, and create profiles, the getting started sections should probably be organized in a different way.
Would it be ok if I give it a try?

Of course 💯

Hey, @andresgalante -- closing this as part of our bug triage, but feel free to come back and send a PR for anything that you're still finding confusing.

authors: andresgalante evankanderson rdimitrov

repo: stacklok/minder


text:
Use random salt per key

Please describe the enhancement
See design doc
Solution Proposal
Add code which generates salt per secret and stores in the DB.
Describe alternatives you've considered
No response
Additional context
No response
Acceptance Criteria
No response

Not doing this as a separate task - it will be solved as part of #3317


text:
Store repo license again

Summary
We used to store repo license since
5a78abc38d3608b9e77d11042aaaf6eea04f6763 but then stopping saving the
attribute in d68e8e697dcd36f8c1fd9ec9d8a894903c4f2827. We still have
ruletypes that rely on that attribute, so let's just re-add it.
Side-note: Saving generic attributes will get way easier once we
implement properties fully.
Change Type

[x] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[ ] Refactoring or test improvements (no bug fixes or new functionality)

Testing
manually
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[ ] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

hmm, it should be possible to write a unit test. I should add a test case, sorry!

coverage: 53.935% (-0.002%) from 53.937%
when pulling 417c7e10762ce340550cecff7ed1bbdf311ae214 on jhrozek:license_attr
into 4083e3f83b718aeb107b20450a49cc4502515b96 on stacklok:main.

authors: coveralls jhrozek


text:
Add PrometheusRule to com.coreos CRD

I want to test a PrometheusRule CR, hence I need it to be available in the CRD. The diff within com.coreos.json.gz is:
>     "com.coreos.monitoring.v1.PrometheusRule": {
>       "description": "PrometheusRule defines recording and alerting rules for a Prometheus instance",
>       "properties": {
>         "apiVersion": {
>           "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
>           "type": "string"
>         },
>         "kind": {
>           "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requeststo. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
>           "type": "string"
>         },
>         "metadata": {
>           "type": "object"
>         },
>         "spec": {
>           "description": "Specification of desired alerting rule definitions for Prometheus.",
>           "properties": {
>             "groups": {
>               "description": "Content of Prometheus rule file",
>               "items": {
>                 "description": "RuleGroup is a list of sequentially evaluated recording and alerting rules.",
>                 "properties": {
>                   "interval": {
>                     "description": "Interval determines how often rules in the group are evaluated.",
>                     "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$",
>                     "type": "string"
>                   },
>                   "name": {
>                     "description": "Name of the rule group.",
>                     "minLength": 1,
>                     "type": "string"
>                   },
>                   "partial_response_strategy": {
>                     "description": "PartialResponseStrategy is only used by ThanosRuler and will be ignored by Prometheus instances. More info: https://github.com/thanos-io/thanos/blob/main/docs/components/rule.md#partial-response",
>                     "pattern": "^(?i)(abort|warn)?$",
>                     "type": "string"
>                   },
>                   "rules": {
>                     "description": "List of alerting and recording rules.",
>                     "items": {
>                       "description": "Rule describes an alerting or recording rule See Prometheus documentation: [alerting](https://www.prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) or [recording](https://www.prometheus.io/docs/prometheus/latest/configuration/recording_rules/#recording-rules) rule",
>                       "properties": {
>                         "alert": {
>                           "description": "Name of the alert. Must be a valid label value. Only one of `record` and `alert` must be set.",
>                           "type": "string"
>                         },
>                         "annotations": {
>                           "additionalProperties": {
>                             "type": "string"
>                           },
>                           "description": "Annotations to add to each alert. Only valid for alerting rules.",
>                           "type": "object"
>                         },
>                         "expr": {
>                           "anyOf": [
>                             {
>                               "type": "integer"
>                             },
>                             {
>                               "type": "string"
>                             }
>                           ],
>                           "description": "PromQL expression to evaluate.",
>                           "x-kubernetes-int-or-string": true
>                         },
>                         "for": {
>                           "description": "Alerts are considered firing once they have been returned for this long.",
>                           "pattern": "^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$",
>                           "type": "string"
>                         },
>                         "labels": {
>                           "additionalProperties": {
>                             "type": "string"
>                           },
>                           "description": "Labels to add or overwrite.",
>                           "type": "object"
>                         },
>                         "record": {
>                           "description": "Name of the time series to output to. Must be a valid metric name. Only one of `record` and `alert` must be set.",
>                           "type": "string"
>                         }
>                       },
>                       "required": ["expr"],
>                       "type": "object"
>                     },
>                     "type": "array"
>                   }
>                 },
>                 "required": ["name", "rules"],
>                 "type": "object"
>               },
>               "type": "array",
>               "x-kubernetes-list-map-keys": ["name"],
>               "x-kubernetes-list-type": "map"
>             }
>           },
>           "type": "object"
>         }
>       },
>       "required": ["spec"],
>       "type": "object",
>       "x-kubernetes-group-version-kind": [
>         {
>           "group": "monitoring.coreos.com",
>           "kind": "PrometheusRule",
>           "version": "v1"
>         }
>       ]

        	Error:      	Received unexpected error:
        	            	[945,33] $root.definitions.com.coreos.monitoring.v1.PrometheusRule.properties.spec.properties.groups.items.<array>.properties.rules.items.<array>.properties.expr has invalid property: anyOf

Any ideas @stehessel ?

How is that CRD validated? I did a oc get crd prometheusrules.monitoring.coreos.com -o json | jq '.spec.versions[0].schema.openAPIV3Schema' on my OpenShift 4.13 cluster. Maybe the jsonschema version used by this package is too old for that?

@porridge Indeed it seems that helmtest is using OpenAPI v2, however anyof support was added in v3. Do you think we could update to v3 to get extended jsonschema support?

I removed the anyOf with a typeless schema to make it OpenAPI v2 compatible.
"expr": {
  "anyOf": [
    {
      "type": "integer"
    },
    {
      "type": "string"
    }
  ],
  "description": "PromQL expression to evaluate.",
  "x-kubernetes-int-or-string": true
},

changed to
"expr": {},

authors: porridge stehessel

repo: stackrox/helmtest


text:
ROX-13226: Improve handling of NVD CVEs

Description
This PR improves handling of loaded NVD CVEs. It covers missing nil checks.
Schema comes from our fork of facebookincubator/nvdtools. They are using the following schema to generate Go structures: https://csrc.nist.gov/schema/nvd/feed/1.0/nvd_cve_feed_json_1.0.schema
A lot of fields that we are using are not required. That's why I went the route of checking in the code that fields relevant to us exist.
Considerations
We can also add panic handler. Best place would be to ensure that NvdCVEToEmbeddedCVE does not panic, because we have 3 places where this function is called.
It would look something like this:
func NvdCVEToEmbeddedCVE(nvdCVE *schema.NVDCVEFeedJSON10DefCVEItem, ct CVEType) (cve *storage.EmbeddedVulnerability, retErr error) {
	defer func() {
		if r := recover(); r != nil {
			cve = nil
			retErr = errors.Errorf("panic running NvdCVEToEmbeddedCVE for type %d: %v", ct, r)
		}
	}()

Checklist

[ ] Investigated and inspected CI test results
~[ ] Unit test and regression tests added~
~[ ] Evaluated and added CHANGELOG entry if required~
~[ ] Determined and documented upgrade steps~
~[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

Testing Performed

CI pipeline
TBD

Current dependencies on/for this PR:

master

PR #3532   👈

This comment was auto-generated by Graphite.

/test all

/test all

@misberner I'll merge this PR as it is and open a new one with the panic handler.

repo: stackrox/stackrox


text:
Fix last_tx_id: [object Object] issue

Description
The problem was when a transaction is rejected for some reason It was not handling that and instead of marking it as complete.  This results in saving the error object in the DB as in place of tx_id hence the [object Object].
For details refer to issue #66
Type of Change

Bug fix

Testing information
added unit test for the behavior

Contacted Asim via DM, but posting here for posterity. I cleared the submitted subdomains from the testnet registrar DB and deployed this PR to it for testing here: https://registrar.testnet.stacks.co/index/

Hey, any update? We still have multiple users affected by this issue every week

@pradel I have tested it on my end and it seems to fix it.

@pradel I have tested it on my end and it seems to fix it.

If you want to test it the PR is deployed here https://registrar.testnet.stacks.co/index/

BTW  Even though that particular bug is fixed. I can think of many other scenarios where this kind of situation might occur(not exactly though). But that would require significantly more work to handle all scenarios.
Even if I do this the effort is probably gonna go to waste because the UX team got this grant to rewrite the code.

@asimm241 would you mind listing these scenarios so we can cover them while migrating the code?

Hey, any update? Our users are still facing this issue...

@asimm241

@asimm241

I tested it locally and It's good to go from my end.

What are the next steps to get this merged and released?

@pradel @CharlieC3 will deploy it on mainnet and you can test it from there.

Amazing, thanks!

repo: stacks-network/subdomain-registrar


text:
feat: generated Helm documentation

Preview at https://github.com/stakater/application/blob/feat/generated-readme/README.md

Generate README.md with https://github.com/norwoodj/helm-docs
Add pre-commit hook and GitHub Action run to validate README
Document the whole values file
Move some defaults from templates to values
Set certificate.issuerRef.group to cert-manager.io

Thanks to https://github.com/norwoodj/helm-docs/pull/260, we will soon be able to render a bit better some of the default values.
Fixes #242

@karl-johan-grahn @d3adb5 can you guys review it?

looks good to me! great work @aslafy-z

authors: aslafy-z rasheedamir

repo: stakater/application


text:
⚠ GitLab Server has degraded performance

In 23ce3d3, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 6867 ms

Resolved: GitLab Server performance has improved in 480b03c.

repo: stamateas/upptime


text:
⚠ Authentication Server has degraded performance

In 4621acf, Authentication Server (https://auth.its-telekom.eu/) experienced degraded performance:

HTTP code: 200
Response time: 2299 ms

Resolved: Authentication Server performance has improved in 0e63af0.


text:
Interface Adherence Feature

I've been spending some time working on a JS interface adherence utility. I've been using stampit for a few months now and it occurred to me that an optional interface adherence enforcement feature could perhaps be useful. Maybe look something like this:
import someComponent from './someComponent';
import anotherComponent from './anotherComponent';

stampit({
  foo(),
  bar()
})
.adhere(myInterface)
.compose(
  someComponent,
  anotherComponent
);

Hey, you can use "static" feature to compose that behavior into your stamps. No need to change stampit. :)
e.g.:
stampit(foobar).compose(Adhere).adhere(myInterface).compose(someComponent)

or even
Adhere.compose(foobar, someComponent)

We call stamps like that "an utility stamp". We even have a early stage project for them: https://github.com/stampit-org/stamp-utils

Very cool! Yep that's definitely a better approach than hacking at core. Thanks for the feedback! @koresar I'll close this out!

A sample composable stamp could look like this (please, feel free to expand it):
(stampit v2 only)
const Adhere = stampit()
.static({
  adhere(myInterface) {
    this.fixed.refs.nyceSchema = myInterface;
  }
}).init(() => {
  if (this.nyceSchema && !nyce.validate(this, this.nyceSchema)) {
    throw new Error("Bad object :(");
  }
});

It will be even better in stampit v3.
More insight in the advanced examples.

Ah that's very helpful! :+1:

authors: koresar recursivefunk

repo: stampit-org/stampit

license: mit

license_source: bigquery


text:
Multiple Database Connection in 1 Tenant?

Hi,
Just want to ask if is it possible to do multiple database connection switching within just 1 tenant?
What are your ideas in approaching this?
Regards!

Can you elaborate on what you mean by multiple database connection switching with one tenant?
You can use multiple database connections. Make some model use a connection and it will be respected.

I mean I have this use case. In a single subdomain, eg: sub.mydomain.com
We have an option that allows us to change database connection based on the selected location which is in a  input.
<select>
<option>United States</option>
<option>United Kingdom</option>
</select>

Depending on the user's selection, I need to switch database, etc.
Basically, tenant switching is based on user's input.
Is this possible?

Basically, tenant switching is based on user's input

So you need to have a user shared between multiple tenants and let him switch between tenants?

Closing for inactivity.

Yes but instead of a full switch, I just want to switch the Database Connection. Is this possible?

Do you want to switch the database connection to some arbitrary connection, or to another tenant's connection?

authors: omarusman stancl

repo: stancl/tenancy


text:
Temporarily remove references to asymmetric signatures

As discussed in #25, the current recommendations around asymmetric signatures are flawed, and the signature scheme doesn't support storing the key in an HSM (or even just having one key). Both of these flaws should be fixed before we add back asymmetric signature support.
I purposely left many references to asymmetric signatures throughout the text because the spec does support it, it just doesn't specify it yet. The hope is to add the improved set of recommendations either in the current version of the spec before the release or in the next version.

@hf, I removed the asymmetric recommendations as discussed, so at the very least the spec doesn't include incorrect information.

repo: standard-webhooks/standard-webhooks


text:
standard --plugin html doesn't seem to work from package.json

I have installed standard and eslint-plugin-html both globally and into my nodejs project. If I run standard --plugin html **/*.html on the command line, this works find. But if I run it from a scripts section of my package.json, I get the following error:
> standard --plugin html **/*.html

standard: Unexpected linter output:

Error: eslint-plugin-html error: It seems that eslint is not loaded. If you think it is a bug, please file a report at https://github.com/BenoitZugmeyer/eslint-plugin-html/issues
    at iterateESLintModules (/home/pixel/sources/papan/node_modules/eslint-plugin-html/src/index.js:67:11)
    at Object.<anonymous> (/home/pixel/sources/papan/node_modules/eslint-plugin-html/src/index.js:28:1)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.load (/home/pixel/sources/papan/node_modules/standard/node_modules/eslint/lib/config/plugins.js:129:26)

If you think this is a bug in `standard`, open an issue: https://github.com/standard/standard/issues

I tried to install the eslint package explicitly too, with no success.
However, using eslint-plugin-html directly with eslint instead of standard works when run from a script section.

This issue was fixed by upgrading to standard 11.0.1. The rootcause was a mismatch between standard 11.0.1, and the version of eslint that was installed by the eslint-plugin-html package.

repo: standard/standard


text:
--labels

What is this labels list how it will look like as I have created a list with string elements [query,....]  but it is showing key error mentioned one example of such list in documentation

hey gave you got any resolution to this??

The issue should now be resolved. Please follow the updated instructions here to use the new version of ARES.

repo: stanford-futuredata/ARES


text:
Add support for multiple developer dirs

If "developer-dir" is set to an array, check for a device in
each directory. This is needed to support the new layout in
thingpedia-common-devices

Pull Request Test Coverage Report for Build 427

25 of 76 (32.89%)  changed or added relevant lines in 2 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-1.06%) to 78.27%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/downloader.js
8
19
42.11%

lib/http_client.js
17
57
29.82%

Files with Coverage Reduction
New Missed Lines
%

lib/http_client.js
3
44.22%

Totals

Change from base Build 424:
-1.06%

Covered Lines:
1289

Relevant Lines:
1578

💛  - Coveralls

authors: coveralls gcampax

repo: stanford-oval/thingpedia-api


text:
After saving and loading, the program optimized by BayesianSignatureOptimizer encounters an error when calling forward

code as follows:
def train():
    teleprompter = BayesianSignatureOptimizer(prompt_model=sql_llm, task_model=sql_llm, metric=assess_api_selector, n=10, init_temperature=0.9, verbose=True,track_stats=True)
    evaluate_api_selector = Evaluate(devset=dataset_api_calling_gt_sample[10:20], metric=assess_api_selector, num_threads=1, display_progress=True, display_table=0)

    kwargs = dict(num_threads=1, display_progress=True, display_table=0)
    uncompiled_prompt = APISelector()
    #evaluate_api_selector(uncompiled_prompt)
    compiled_prompt_opt = teleprompter.compile(uncompiled_prompt, devset=dataset_api_calling_gt_sample[:10], optuna_trials_num=40, max_bootstrapped_demos=3, max_labeled_demos=5, eval_kwargs=kwargs)
    compiled_prompt_opt.save('0221_2_api_selector_expert_trainer.json')

def test():
    dataset_api_calling_gt_sample = [dspy.Example(question=x["question"],selected_api=x["api"]).with_inputs('question') for ind, x in result.iterrows()]
    compiled_prompt_opt = APISelector()
    compiled_prompt_opt.load('0221_2_api_selector_expert_trainer.json')
    print(compiled_prompt_opt)
    #compiled_prompt_opt.forward('What's the time?')
    evaluate_api_selector = Evaluate(devset=dataset_api_calling_gt_sample[20:30] , metric=assess_api_selector, num_threads=1, display_progress=True, display_table=0)
    evaluate_api_selector(compiled_prompt_opt)

train()
test()

The error occurs here:
Traceback (most recent call last):
  File "/home/percy/works/hongyou/walagi-offline/api_selector_expert_trainer.py", line 134, in <module>
    test()
  File "/home/percy/works/hongyou/walagi-offline/api_selector_expert_trainer.py", line 126, in test
    compiled_prompt_opt.forward('What's the time?')
  File "/home/percy/works/hongyou/walagi-offline/api_selector_expert_trainer.py", line 78, in forward
    prediction = self.generate_answer(question=question,api_inventory = self.api_inventory_text)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/percy/works/hongyou/walagi/venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 72, in __call__
    return self.forward(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/percy/works/hongyou/walagi/venv/lib/python3.11/site-packages/dspy/predict/chain_of_thought.py", line 66, in forward
    return super().forward(signature=signature, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/percy/works/hongyou/walagi/venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 104, in forward
    x, C = dsp.generate(signature, **config)(x, stage=self.stage)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/percy/works/hongyou/walagi/venv/lib/python3.11/site-packages/dsp/primitives/predict.py", line 77, in do_generate
    prompt = template(example)
             ^^^^^^^^^^^^^^^^^
  File "/home/percy/works/hongyou/walagi/venv/lib/python3.11/site-packages/dsp/templates/template_v2.py", line 218, in __call__
    ademos = [
             ^
  File "/home/percy/works/hongyou/walagi/venv/lib/python3.11/site-packages/dsp/templates/template_v2.py", line 219, in <listcomp>
    self.query(demo, is_demo=True)
  File "/home/percy/works/hongyou/walagi/venv/lib/python3.11/site-packages/dsp/templates/template_v2.py", line 105, in query
    if self._has_augmented_guidelines() and ("augmented" in example and example.augmented):
                                                                        ^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'augmented'

Fixed this by replacing all xx.augmented to xx['augmented'] in the template_v2.py.
I haven't gone through all the code yet, so I'm not sure if this modification will have any side effects.

Hello, everyone. I've gone through all the posts here and it seems that no one else has encountered this particular issue. I'm wondering if perhaps I'm not using it correctly.
Here's what I'm trying to do: I want to save an optimized program to JSON and then reuse it in another process later on. My code looks like this:
# Save the optimized program to JSON, and reuse it in another process later on:
compiled_prompt_opt.save('0221_2_api_selector_expert_trainer.json')

# In another process:
compiled_prompt_opt.load('0221_2_api_selector_expert_trainer.json')
compiled_prompt_opt.forward("What's the time?")

However, this always results in an error: AttributeError: 'dict' object has no attribute 'augmented'.
I tried changing the optimizer from BayesianSignatureOptimizer to BootstrapFewShotWithRandomSearch, but the error persists. A temporary workaround I found is to replace all instances of xx.augmented with xx['augmented'] in the template_v2.py, which seems to fix the issue.
I'm not sure if this is a bug or if I'm making a mistake in my code.

I think I see the same issue.
My code is something like this
compiled_rag.load(f"compiled_rag.json")

And I got this error, and my branch is up-to-date (42a5943379d28d1673dc8fe332a3d596efdfc7a3) , I had to since save was failing before this issue.
File ~/Projects/Github/NLP/dspy/dsp/templates/template_v2.py:210, in <listcomp>(.0)
    203 if self.fields[-1].input_variable in example:
    204     del example[self.fields[-1].input_variable]
    206 rdemos = [
    207     self.query(demo, is_demo=True)
    208     for demo in example.demos
    209     if (
--> 210         ("augmented" not in demo or not demo.augmented)
    211         and (  # validate that the training example has the same primitive input var as the template
    212             self.fields[-1].input_variable in demo
    213             and demo[self.fields[-1].input_variable] is not None
    214         )
AttributeError: 'dict' object has no attribute 'augmented'

As an additional piece of information, I just hit the same issue. I noticed that poetry upgraded our dspy-ai version from 2.1.10 to 2.3.1. Reverting that change and pinning to 2.1.10 has things working again while loading the JSON file from disk, so it seems like something that has only been introduced in the past two weeks.

I am running into the same error after upgrading to 2.3.4.
("augmented" not in demo or not demo.augmented) probably needs to be changed to (not demo.get('augmented', False))

@drawal1 good catch, do you want to make this a PR?

repo: stanfordnlp/dspy


text:
controller: add conda config to system setting

Description
directly wirte the conda setting to .condarc from controller
example:
condaSetting: |
  channels:
    - defaults
  show_channel_urls: true
  default_channels:
    - http://nexus.starwhale.ai/repository/anaconda/main
    - http://nexus.starwhale.ai/repository/anaconda/r
    - http://nexus.starwhale.ai/repository/anaconda/msys2
  custom_channels:
    conda-forge: http://nexus.starwhale.ai/repository/conda-cloud
    nvidia: http://nexus.starwhale.ai/repository/conda-cloud
  ssl_verify: false
  default_threads: 10

Verification

Modules

[ ] UI
[ ] Controller
[ ] Agent
[ ] Client
[ ] Python-SDK
[ ] Others

Checklist

[ ] run code format and lint check
[ ] add unit test
[ ] add necessary doc

@anda-ren  rerun for e2e?

LGTM

authors: anda-ren tianweidut

repo: star-whale/starwhale


text:
Port libs

Ciao creo questa pull request per le modifiche sull'aggiunta della libreria del fon-end sul progetto saibase non ho fatto il testing ed ho aggiunto anche il readme.me del progetto saibase (ps: spero di avere fatto bene)

@guidoinit la prossima volta puoi creare un branch con nome tipo feat/create-apis-lib

authors: emberist guidoinit

repo: staratlas-italia/saibase


text:
fix(dropdown): fix getA11ySelectionMessage usages across examples

fix(dropdown): fix getA11ySelectionMessage usages across examples
This PR restores the initial usages of getA11ySelectionMessage method. This method should be used only for Dropdown components that have the multiple prop

@silviuavram will continue this work

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

  Generated by :no_entry_sign: dangerJS

repo: stardust-ui/react


text:
docs(fix): navigation links

This fixes #1851
Before

After

Any suggestion on how to test this, so the links won't break again in the future?


text:
Добавить портативный аккумулятор.

Краткое описание:
Тоже самое что и СМЭС только заряжается от СВ и отдает энергию в НВ
Почему это нужно добавить в игру:
В дальнейшем будет использоваться в экспедициях

А как бля его сделать портативным?

А как бля его сделать портативным?

портативный это просто название, этот тот же самый СМЭС только маленький

Это же фактически просто подстанция


text:
Problems to use RPCSPEC06 and RPCSPEC07 namespaces

Describe the bug
2 problems encountered :
1. No Vscode help in RPC spacename
Reading the Starknet.js code, I understand that the paths to use
the enums located in src/types/api/rpcspec_0_6/nonspec.ts or in  spec 07  are :
import {  types,  RPC } from "starknet";
const lastBlockTag=types.RPC.RPCSPEC06.EBlockTag.LATEST;
const lastBlockTag2=RPC.RPCSPEC06.EBlockTag.LATEST;
const lastBlockTag3=types.RPC.RPCSPEC07.EBlockTag.LATEST;
const lastBlockTag4=RPC.RPCSPEC07.EBlockTag.LATEST;
const lastBlockTag5=types.RPC.EBlockTag.LATEST;
const lastBlockTag6=RPC.EBlockTag.LATEST;

Long and complicated path.... but it works.
After typing types., vsCode is helping to reach RPC :

But after selecting RPC, there is no more help from vsCode :

There it becomes complicated. Only digging in a very nested source code can help you.
2. use of RPC types
If you add to the previous code :
const callOpt:types.RPC.RPCSPEC06.SPEC.SIERRA_ENTRY_POINT={selector: "0x123",function_idx:2};

The compilation fails :
TSError: ⨯ Unable to compile TypeScript:
src/tmp/26.testSepolia.ts:38:25 - error TS2694: Namespace 'index$2' has no exported member 'RPC'.

38     const callOpt:types.RPC.RPCSPEC06.SPEC.SIERRA_ENTRY_POINT={selector: "0x123",function_idx:2};
                           ~~~

So, how to use these types?
To Reproduce
See above
Expected behavior
Good user experience to use RPC enums.
Have a way to use types of RPC.
Screenshots
See above.
Desktop (please complete the following information):

Browser & version [e.g. chrome, safari, webworker] : any
Node version [e.g. 16.0.1] ts-node": "^10.9.2
Starknet.js version : v6.9.0
Network [devnet, testnet] : any

Additional context

[!WARNING]
Currently not open to contributors.

@PhilippeR26 let me hop on this

@PhilippeR26 i would like to hop on this

@EjembiEmmanuel Feel free to jump onto this one if you can figure it out.
'index$2'  do contain RPC on final build so I am not sure what is the issue here.
The only workaround until we figure it out is to use starknet-types directly
import { SPEC } from 'starknet-types';

async function main() {

  const a: SPEC.SIERRA_ENTRY_POINT = { selector: '0x123', function_idx: 2 };

authors: EjembiEmmanuel PhilippeR26 martinvibes tabaktoni


text:
test: use FeatureContract in deploy_tests

This change is

Done it alternative PRs.

repo: starkware-libs/blockifier