Could not proxy request /config from localhost:3000 to http://localhost:5000

I'm trying to run the mozaik2 demo locally on my Mac with npm installed thru homebrew.
It launches the browser window but then throws an error. Please see screenshot attached.

Current env versions:
npm -> 4.1.2
node -> 7.6.0

I've experienced the same issue, I fixed it by adding this at the top of my config.yml file:
host: <IP_ADDRESS>
port: 3000

Hi, I'm experiencing the same problem as @sourcesoldier. @elementsweb, could you provide a bit more context to those settings that you added? Does the top 15 lines of your config look like this?
#
# mozaik generic demo dashboard
#
# It's not required, but you should add this env var,
# without it, you'll probably reach the API rate limit.
#
# GITHUB_API_TOKEN=xxxxx
#
host: <IP_ADDRESS>
port: 3000

# define duration between each dashboard rotation (ms)
rotationDuration: 10000
# define the interval used by Mozaïk Bus to call registered APIs
apisPollInterval: 100000

I think the solution to this is to run node server.js instead of npm start

@andrewmurray your config looks good. I think the reason I set the port to be 3000 explicitly was because it was trying to proxy port 3000 to port 5000 - I couldn't see any reason for it doing this so set it to 3000 in the config.
As for for the host being set to <IP_ADDRESS> - this is useful if you want to preview your dashboard on another device connected to your private network.
@frankwallis I think you might be right, this rings a bell.

If you want to be able to proxy from the dev server to Mozaïk server, you can configure it through package.json.

i mean, you have not start your backend server!!!!! try start both backend and front end server concurrently

Had a similar problem and realized that I was inside the client folder rather than the parent server folder when I ran "npm start"

Spent all day fixing this, so this solution works for me:
"proxy": {
"/api/*": {
"target": "http://[::1]:8080"
}
}

If anyone else had this problem, how I solved it all the time, replace localhost to <IP_ADDRESS> in your package.json proxy

To avoid all this problems use nginx, super easy and will handle all this cases.

Guys, I also was getting this error message all afternoon and it was driving me crazy.
What fixed it for me was, I was running concurrently and originally had my scripts set up like this, which was causing the error:
"start": "nodemon server.js",
"client": "npm start --prefix client",
"dev": "concurrently "node start" "npm run client""
However, once I changed the commands to:
"server": "nodemon server.js",
"client": "npm start --prefix client",
"dev": "concurrently "npm run server" "npm run client""
...the problem went away. Hope this helps!

My script started working when i eliminated &&
Previously it was  "dev": "concurrently \"npm run client\" && \"npm run server\""
Changed it to  "dev": "concurrently \"npm run client\" \"npm run server\""

I got the same issue and resolved it by changing proxy to "http://localhost:5000" instead of "https://localhost:500"

This happened to me due to an error in the server's package.json.  I had copied the package.json from an older app whose "main" property referred to a different server filename than the one I was using in the new app, and so had to correct this.

Guys, I too was getting this error message all afternoon and it was driving me crazy!
What fixed it for me was, I was running concurrently and had originally set up my scripts like this:
"start": "nodemon server.js",
"client": "npm start --prefix client",
"dev": "concurrently "node start" "npm run client""
However, once I changed it to this, the problem went away.
"server": "nodemon server.js",
"client": "npm start --prefix client",
"dev": "concurrently "npm run server" "npm run client""
Hope this helps!

@gaborszekely U Mean Linux Commands?

i mean, you have not start your backend server!!!!! try start both backend and front end server concurrently
I got the same issue and resolved it by start my backend server

Just start both back end and front end server concurrently

I got the same issue and i resolved it by starting  both backend and frontend server concurrently

first see if machine is listening on ports 3000 & 5000
sudo lsof -iTCP -sTCP:LISTEN -n -P
In my case it was not so I had to change my run command

Problem : after i say "npm start"
in vscode terminal :
Proxy error: Could not proxy request /techs from localhost:3000 to http://localhost:8000/
in chrome:
Cannot read property 'statusText' of undefined
} catch (err) {
21 |     dispatch({
22 |       type: TECHS_ERROR,

23 |       payload: err.response.statusText
24 |     });
25 |   }

Solution : i used "npm run dev"
Because i was using  concurrently
"dev": "concurrently "npm start" "npm run json-server"",
the "techs"  was in data.js file which was json data , so when you use npm start, it only starts
the   react-script-start
"start": "react-scripts start",
and it ignores data.js as our json server
That worked for me

I think the solution to this is to run node server.js instead of npm start

What would be server.js here?
Like where would it be? what file is it and what does it do? thank you!

for me the problem was permissions access in the folder with the server files. solved it with giving permissions with sudo chmod -R 777 /Users/USERNAME/FOLDER

Hey, Please Makesure the backend server is running.

Although it is not specific to this project, I got the exact error in my react project when I was trying to proxy request from http://localhost:3000 to http://localhost:8080.
I solved this issue by removing "proxy": "localhost:8080" from package.json and creating a setupProxy.js file in the src folder with the following code:
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function(app) {
  app.use(
    '/api',
    createProxyMiddleware({
      target: 'http://localhost:8080',
      changeOrigin: true,
    })
  );
};

Reference:  https://create-react-app.dev/docs/proxying-api-requests-in-development/#configuring-the-proxy-manually

If anyone else had this problem, how I solved it all the time, replace localhost to <IP_ADDRESS> in your package.json proxy

Thanks a lot!

use this settings in your package.json file in react
"proxy":"http://localhost:YOUR_BACKEND_PORT"
"secure":false
if the above settings not work then replace localhost with <IP_ADDRESS>
#work for me

I started both server and client in separate terminal
First i started server using nodemon server.js
Next in another tab npm start --prefix client

Everyone, make sure you also have the port number defined in your CLIENT package.json "server" property.
So go from "proxy": "http://localhost" to "proxy": "http://localhost:5000"
Also try adding the "secure": false  parameter, seems to help some people.

package.json/backend
{
"name": "backend",
"version": "1.0.0",
"description": "",
"main": "sever.js",
"type": "module",

package.json/backend
{
"name": "backend",
"version": "1.0.0",
"description": "",
"main": "sever.js",
"type": "module",

I tried all of the solutions here and actually no one is not gonna actually solve this problem.
In fact this problem is pretty random.
But there is a pattern there, the 'Proxy error' always happens before the 'Server' starts.
That's because the 'client' sends some request before the 'server' starts. Even if you use
"dev": "concurrently "npm run server" "npm run client""
that does not guarantee the server will start before the client. The process really depends on the OS how to handle them. Unless you use a way to strictly specify the client must start after the server. That's why this error is pretty random.
Actually, I think the answer of @TesheMaximillan should be the right one, some elaborations would be better.

Hey, Please Makesure the backend server is running.

i mean, you have not start your backend server!!!!! try start both backend and front end server concurrently

Save my day!!!

actually i found this issue related to the backend server is not running

For anyone who uses Docker, running both back and front ends together with Docker Compose, change your proxy value in package.json to the name of your back-end container. e.g. "proxy": "http://server:8080".
Your docker-compose.yaml file should look similar to this:
version: "3.8"
services:
  client:
    container_name: client
    build:
      context: ./client
    ports:
      - "3000:3000"
  server:
    container_name: server
    build:
      context: ./server
    ports:
      - "8080:8080"

I think the solution to this is to run node server.js instead of npm start

I was stuck on this problem for the last 3 days and you solved it. Thank you sooo much 👍

How can i check if the backend is working well? I don't have any control of the backend. I tried almost all the solutions but none of them worked for me. I spent all the day just in this error. How frustrating it is.

Had the same problem. Realized that I used "https" instead of "http" in package.json while manually typing the proxy

Had the same problem. Realized that I used "https" instead of "http" in package.json while manually typing the proxy

Also one variat what helped me. I changed my post on server. Was "proxy": "http://localhost:7070", changed to "proxy": "http://localhost:7080"
`const express = require('express')
const app = express()
app.disable('etag')
app.use(require('./routes'))
app.listen(7080, () => {
console.log('BALK stubs are on port 7080!')
console.log('---')
})
`

Also one variat what helped me. I changed my post on server. Was "proxy": "http://localhost:7070", changed to "proxy": "http://localhost:7080"
`const express = require('express')
const app = express()
app.disable('etag')
app.use(require('./routes'))
app.listen(7080, () => {
console.log('BALK stubs are on port 7080!')
console.log('---')
})
`

My problem was missing parentheses:
const router = require('express').Router;

Changing this to
const router = require('express').Router();

Guys, I too was getting this error message all afternoon and it was driving me crazy!
What fixed it for me was, I was running concurrently and had originally set up my scripts like this:
"start": "nodemon server.js",
"client": "npm start --prefix client",
"dev": "concurrently "node start" "npm run client""
However, once I changed it to this, the problem went away.
"server": "nodemon server.js",
"client": "npm start --prefix client",
"dev": "concurrently "npm run server" "npm run client""
Hope this helps!

This solution inspires me, I change my script from
    "server": "nodemon server",
    "client": "npm start --prefix client",
    "dev": "concurrently -k \"npm:server\" \"npm:client\"",

to
    "server": "nodemon server",
    "client": "npm start --prefix client",
    "dev": "concurrently -k \"npm run server\" \"npm run client\"",

Then the error message is gone. Maybe something wrong with concurrently.

I was using the below configuration
"server": "nodemon server",
"client": "npm start --prefix client",
"dev": "concurrently -k "npm run server" "npm run client"",
and did a restart. Worked for me!

Check if the issue is with the Monogo connection. I realized that my Password to connect to MongoDB got expired and updated that. Which is working fine for me now.

I've experienced the same issue, I fixed it by adding this at the top of my config.yml file:
host: <IP_ADDRESS>
port: 3000

Thank you worked for me

If anyone else had this problem, how I solved it all the time, replace localhost to <IP_ADDRESS> in your package.json proxy

Thanks for your help. It worked for me

run the backend and frontend simultaneously
"server": "nodemon backend/server",
"client": "npm start --prefix frontend",
"dev": "concurrently "npm run server" "npm run client""

i mean, you have not start your backend server!!!!! try start both backend and front end server concurrently

Thank you!!!!!! Life saver! Why do i never see this simple tip anywhere?

For anyone who uses Docker, running both back and front ends together with Docker Compose, change your proxy value in package.json to the name of your back-end container. e.g. "proxy": "http://server:8080". Your docker-compose.yaml file should look similar to this:
version: "3.8"
services:
  client:
    container_name: client
    build:
      context: ./client
    ports:
      - "3000:3000"
  server:
    container_name: server
    build:
      context: ./server
    ports:
      - "8080:8080"

thank you.... this solved mine

I've experienced the same issue, I fixed it by adding this at the top of my config.yml file:
host: <IP_ADDRESS>
port: 3000

Any idea how to fix it on react app

For anyone who uses Docker, running both back and front ends together with Docker Compose, change your proxy value in package.json to the name of your back-end container. e.g. "proxy": "http://server:8080". Your docker-compose.yaml file should look similar to this:
version: "3.8"
services:
  client:
    container_name: client
    build:
      context: ./client
    ports:
      - "3000:3000"
  server:
    container_name: server
    build:
      context: ./server
    ports:
      - "8080:8080"

It worked for me! Thank you so much!

For anyone who uses Docker, running both back and front ends together with Docker Compose, change your proxy value in package.json to the name of your back-end container. e.g. "proxy": "http://server:8080". Your docker-compose.yaml file should look similar to this:
version: "3.8"
services:
  client:
    container_name: client
    build:
      context: ./client
    ports:
      - "3000:3000"
  server:
    container_name: server
    build:
      context: ./server
    ports:
      - "8080:8080"

It worked for me! Thank you so much!

Proxy error: Could not proxy request /contact from localhost:3000 to http://localhost:8080/.
[1] See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
above is the error from application the original port is 8080 but is showing port 3000 on my UI

I'm completely new to React and working on a Mac M1 computer. I was trying to fetch data from python flask application running on the same machine on port 5000.  I set "proxy": "http://<IP_ADDRESS>:5000" in package.json file, but react couldn't fetch "/profile" from the flask application.
After reading some of the answers here, it made sense that I needed to change the react host, so I ran
export HOST=<IP_ADDRESS>
in the terminal.
This helped me solve the problem and now the react frontend fetches the profile data from flask successfully.

Finally, I solved it. I'm using react vite, and I had a  issue which is connect ECONNREFUSED <IP_ADDRESS>:5000. This 5000 port is the server port. I was trying to fetch data from a server, and ofc I need to put the same port on the proxy.
export default defineConfig({
server: {
proxy: {
"/api": "http://<IP_ADDRESS>:5000",
},
},
plugins: [react()],
});
Even though I wrote it down correctly, it was not working ...  If u don't run server-side, u will get a  error like me
.
[vite] http proxy error at /api/cyberProducts:
Error: connect ECONNREFUSED <IP_ADDRESS>:5000
++ moreover I watched this vid, and helped me a lot

Also came across this error. I had a tunnel running in the background into my local 8000 port using ngrok. Turning off ngrok fixed it for me.

I think the solution to this is to run node server.js instead of npm start

Thank you so much for this!  Fixed my issue after two hours.

I've experienced the same issue, I fixed it by adding this at the top of my config.yml file:
host: <IP_ADDRESS>
port: 3000

Any idea how to fix it on react app

the port is front file working number , right ?

如果其他人遇到这个问题，我总是如何解决它，在 package.json 代理中将 localhost 替换为 <IP_ADDRESS>

nice兄弟，这个问题控了我好久，thank you


Update welcome.md

Changing Windows Virtual desktop to Azure Virtual Desktop

Approving changes made for WVD to AVD


Nsxansible regression check

Sending a pull request with changes I'd like to get reverted in develop before it merges. Those two changes are breaking the current nsxansible module code, and changing the nsxansible code to ignore those changes creates too much unnecessary work in updating code in various projects.
For the ipPools changes, as long as the displayname of the 'scope' resource stays 'ipPools' it's fine. The baseURI can be named whatever it needs to be named.
Thanks!

@lmcfarlane Can you please have a look at this pull request? Thanks!


Added 1.0-dev branch alias against dev-master

Good Evening,
This PR adds a branch-alias to the composer.json file to give it a version constraint vs dev-master
Fixes #36

Surely 1.0.x is wrong though. 0.2.x would be more correct for now, or even 0.3.x.

Yep 0.2.0 for now. I only pushed the 0.2.0 release an hour ago :)

Actually, Graham is right. 0.3.x-dev is best atm

Good Morning,
Glad to see 0.2 was tagged.  Please review this updated PR at your convenience :)

:+1:

@njohns-grovo @GrahamCampbell thanks both of you! :)


Missing HTTP log level

Is your feature request related to a problem? Please describe.
I am using http log level (default log level from winston) to display result of API calls.
But it makes @google-cloud/loggin-winston crash because http log level is unknown for the package.
Here is the error:
Error: Unknown log level: http at LoggingCommon.log (/app/node_modules/@google-cloud/logging-winston/build/src/common.js:107:19) at LoggingWinston.log
Describe the solution you'd like
Just add http log level support or at least don't throw an error.

Looking at winston documentation about log levels i do not find "http" level. The existing code indeed throws exception:
(https://github.com/googleapis/nodejs-logging-winston/blob/a76167f123552007e8dba4005ae77ec384eb3494/src/common.ts#L48-L55)
https://github.com/googleapis/nodejs-logging-winston/blob/a76167f123552007e8dba4005ae77ec384eb3494/src/common.ts#L170-L172
The exception is thrown if the provided log level is not one of the names in the winston Logging Levels. To have the problem more visual for us, can you please provide a simple application source code that demonstrates the problem?

I think that this one is related to the same issue: 757

Closing as duplicate of 757


Feature request: flick to dismiss like Facebook

Hi Jared,
I love this library, it's incredibly easy to use as a developer and fun to use as a user!
I wonder if you'd consider for a future release adding a Facebook-style flick-to-dismiss animation, rather than just the Tweetbot flick-to-dismiss animations. In this style, when you flick the image, it moves briefly in the direction you've flicked it, then with a rubber-band animation, it moves and scales into the final image position. You already use this animation when the user taps to dismiss the photo, so it seems like it wouldn't be too much more effort for you to add this as a flick-to-dismiss animation.

This is a great library. Any plans to have the above mentioned feature added to it?


MINOR: missing whitespace in doc for ssl.cipher.suites

LGTM

Also LGTM

Ah, was having trouble getting this to merge with the script and it looks like the fix was already made in https://github.com/apache/kafka/pull/2002. @shikhar could you just close this one out?

Thanks @ewencp


No sound in headphones

My Setup

Operating System: win 10
App Version: 2.17.11
Installation type: exe

[x ] I have tested with the latest version
[x ] I can simulate the issue easily

Description

The mic on my headset works, but I can't hear anything from any sound source. When in sound settings for windows, and playing test sounds, it shows the bars stating there is a noise being played, but I can't hear them. These headphones work just fine when not in video chat.
Current Behavior

No sounds at all, no test sounds, no people speaking, no sounds from spotify.
Expected Behavior

I should be able to hear the chat or any other sounds my computer makes

I just tried using a different chat client and had the same result, so it seems like it might just be the headset. I don't know how I did it because I was messing around with a lot of different settings yesterday, but I was finally able to get the headset to work correctly at the end of my meeting yesterday, but as soon as I opened another video chat, the problem happened again.


Vertical Aligning text within editor container

Is there any way to dynamically position the text vertically within the editor container. Similar to the text aligning to left, center or right based on a button click, can we vertically align the data contents wtihin the editor?

@stanlyjohn2
Does this plugin helpful for your use-case ?? https://www.draft-js-plugins.com/plugin/alignment
If not, can you add a mock/example of your use-case.


Stuck on "Creating CanvasPlayer...."

Hello! I found about your project recently and had problems with actually making it to work. After logging in to my second spotify account, the loading process stucks on the "Creating CanvasPlayer...." Stage. I even tried using it on windows 7 - same thing. Is there a way to fix it?

Please run this with cmd in the folder were SpotifyXP.jar is: "java -jar SpotifyXP.jar --setup-complete --debug"

Please send me what that outputs

Hello again and thanks for giving in! I guess that issues have started from these code lines, so there you go.
 device_type: COMPUTER spirc_version: "3.2.6" device_id: "5689b29db23d97215e15
4ac4621c0e092f6df08b" client_id: "65b708073fc0480ea92a077233ca87bd" } player_sta
te { context_restrictions { } playback_speed: 1.0 position_as_of_timestamp: 0 is
_system_initiated: true options { shuffling_context: false repeating_context: fa
lse repeating_track: false } suppressions { } } } member_type: CONNECT_STATE put
_state_reason: VOLUME_CHANGED has_been_playing_for_ms: 0 client_side_timestamp:
1701427020890}}
SpotifyXP [THROWABLE ] com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:
302)
SpotifyXP [THROWABLE ] com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:
455)
SpotifyXP [THROWABLE ] com.sun.jna.Native.register(Native.java:1716)
SpotifyXP [THROWABLE ] com.sun.jna.Native.register(Native.java:1437)
SpotifyXP [THROWABLE ] uk.co.caprica.vlcj.binding.LibVlc.(LibVlc.java:98
)
SpotifyXP [THROWABLE ] uk.co.caprica.vlcj.support.version.LibVlcVersion.(L
ibVlcVersion.java:49)
SpotifyXP [THROWABLE ] uk.co.caprica.vlcj.factory.MediaPlayerFactory.checkVersio
n(MediaPlayerFactory.java:206)
SpotifyXP [THROWABLE ] uk.co.caprica.vlcj.factory.MediaPlayerFactory.discoverNat
iveLibrary(MediaPlayerFactory.java:192)
SpotifyXP [THROWABLE ] uk.co.caprica.vlcj.factory.MediaPlayerFactory.(Medi
aPlayerFactory.java:119)
SpotifyXP [THROWABLE ] uk.co.caprica.vlcj.factory.MediaPlayerFactory.(Medi
aPlayerFactory.java:174)
SpotifyXP [THROWABLE ] com.spotifyxp.video.CanvasPlayer.(CanvasPlayer.java
:57)
SpotifyXP [THROWABLE ] com.spotifyxp.panels.ContentPanel.(ContentPanel.jav
a:2601)
SpotifyXP [THROWABLE ] com.spotifyxp.Initiator.main(Initiator.java:275)
java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc':
The specified module could not be found.
The specified module could not be found.
The specified module could not be found.
Native library (win32-x86/libvlc.dll) not found in resource path ([file:/C:/Docu
ments%20and%20Settings/Administrator/Desktop/SpotifyXP.jar])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:302)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455)
at com.sun.jna.Native.register(Native.java:1716)
at com.sun.jna.Native.register(Native.java:1437)
at uk.co.caprica.vlcj.binding.LibVlc.(LibVlc.java:98)
at uk.co.caprica.vlcj.support.version.LibVlcVersion.(LibVlcVersion
.java:49)
at uk.co.caprica.vlcj.factory.MediaPlayerFactory.checkVersion(MediaPlaye
rFactory.java:206)
at uk.co.caprica.vlcj.factory.MediaPlayerFactory.discoverNativeLibrary(M
ediaPlayerFactory.java:192)
at uk.co.caprica.vlcj.factory.MediaPlayerFactory.(MediaPlayerFacto
ry.java:119)
at uk.co.caprica.vlcj.factory.MediaPlayerFactory.(MediaPlayerFacto
ry.java:174)
at com.spotifyxp.video.CanvasPlayer.(CanvasPlayer.java:57)
at com.spotifyxp.panels.ContentPanel.(ContentPanel.java:2601)
at com.spotifyxp.Initiator.main(Initiator.java:275)
Suppressed: java.lang.UnsatisfiedLinkError: The specified module could n
ot be found.
            at com.sun.jna.Native.open(Native Method)
            at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:191)

            ... 12 more
    Suppressed: java.lang.UnsatisfiedLinkError: The specified module could n

ot be found.
            at com.sun.jna.Native.open(Native Method)
            at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:204)

            ... 12 more
    Suppressed: java.lang.UnsatisfiedLinkError: The specified module could n

ot be found.
            at com.sun.jna.Native.open(Native Method)
            at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:265)

            ... 12 more
    Suppressed: java.io.IOException: Native library (win32-x86/libvlc.dll) n

ot found in resource path ([file:/C:/Documents%20and%20Settings/Administrator/De
sktop/SpotifyXP.jar])
at com.sun.jna.Native.extractFromResourcePath(Native.java:1089)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:276)
            ... 12 more

Can you try a nightly version

sure, but, where can it be downloaded? can you please send me a link or something?

Its under the Actions tab in the Repository

@VovDev1434, you will need to install VLC 3.0.20 and it works

thank you so much! it worked! have a nice day, bro :)


Move GitHub secrets to Vault

Notes:

Requires us to update the workflow definition to stop referencing the github secrets
Vault is ephemeral. We need instructions to do this repeatedly and maybe some automation to make it easy.
Requires us to use the vault secrets into the k8s secret, or the pipeline won't work.

Closing as duplicate


Fix Documentation Workflow

Description

The concurrency configuration in the documentation workflow is redundant since it is already specified in the main action.
Fixes None
Type of change

[x] Bug fix (non-breaking change which fixes an issue)

Checklist

[x] My code follows the code style of this project.

@vcolen Don't worry about the deploy error, it's just that I ran it on the documentation-workflow-fix branch, which is not allowed to push updates to Github Pages.


Question about the Gain

https://github.com/bytedance/QRAF/blob/7d8da1f7c39a193b26532e39790051b627186cd1/ScaleHyperprior.py#L161
I have a question about the usage of the Gain.
I know the list of lambda are used to control the RDO, while  I don't quite understand about the Gain .
How to calculate it?

"Different s correspond to different GAINs. GAIN is a scaling factor for variance; a smaller variance indicates that the distribution is more concentrated, which means it tends to have lower entropy."


feat: Add page documenting Future Friday

Describe Future Friday within PDDE at Artsy and link to some related resources like the [RFC](https://github.com/artsy/potential/issues/146 artsy/potential.
cc/ @jonallured @evaschilken @joeyAghion

Thank you for this!! 😍


Skip constraint path check

pip can read constraint file via HTTP so pip-compile doesn't need to restrict that to a local file. Removing the option type makes it a plain string so users can pass in an URL. This of course skip local file validation, but the compilation would fail anyway if the file is not readable, no matter local or remote.
Contributor checklist

[ ] Included tests for the changes.
[x] PR title is short, clear, and ready to be included in the user-facing changelog.

Maintainer checklist

[ ] Verified one of these labels is present: backwards incompatible, feature, enhancement, deprecation, bug, dependency, docs or skip-changelog as they determine changelog listing.
[ ] Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

I don't think removing the type altogether is the right solution. Failing early with a definite traceback is better, in my opinion.

I don't think removing the type altogether is the right solution. Failing early with a definite traceback is better, in my opinion.

It's not that early I guess but I can understand this.

I tried early validation in #2040 but I honestly feel it is overshooting.

If I understand it correctly, this command line option is more or less transparently passed down to pip internal, so it doesn't help much applying an additional layer of validation.

Now I wasn't urging you to write an own enhanced parameter type! You must need this feature badly ;-).
I think I'm going to ask over at click whether they want to extend click.Path for URLs permanently. Until then, I'd like to hear other opinions.

@chrysle Haha, I never tried extending click type, so it was a fun exercise.

Until then, I'd like to hear other opinions.

Yeah that makes sense.

Honestly, this strikes me as dangerous and it removes the immutability/reproducibility property of the constraint files. This makes it possible to influence the resolved deptree by modifying an externally managed file on the internet which subsequently opens up a can of worms, allowing for rollback attacks.
If this is implemented, it shouldn't behave like this by default and should only be toggled by the end-user with a sufficiently cautious flag name like --allow-dangerous-insecure-and-unverified-constraints-for-rollback-attacks.

Honestly, this strikes me as dangerous and it removes the immutability/reproducibility property of the constraint files. This makes it possible to influence the resolved deptree by modifying an externally managed file on the internet which subsequently opens up a can of worms, allowing for rollback attacks.
If this is implemented, it shouldn't behave like this by default and should only be toggled by the end-user with a sufficiently cautious flag name like --allow-dangerous-insecure-and-unverified-constraints-for-rollback-attacks.

It is a valid concern, but this is not a feature of pip-compile but pip itself. pip always supports reading a file from HTTP(S) for constraints and requirements. This feature has been used by for example Airflow for some time: https://raw.githubusercontent.com/apache/airflow/constraints-2.4.3/constraints-3.10.txt. So there is no reason that pip-compile should block it. Today users of pip-compile can already use a constraints file from HTTP(S) in a *.in file header for example.

I think that's exactly the reason for doing it by default.

I think that's exactly the reason for doing it by default.

Not sure I understand this. What do you mean as "by default"? I think the original PR adding -c option to pip-compile might just have missed the fact that URL is supported by pip.

I'm not sure pip-tools should support everything that pip does the same way. It's purpose is to aid reproducibility and constraints that are mutable at random points in time aren't exactly that.

Whether it was overlooked is something that only the original PR author knows, I think.

I'm not sure pip-tools should support everything that pip does the same way. It's purpose is to aid reproducibility and constraints that are mutable at random points in time aren't exactly that.

The thing is, pip-compile already supports this.
In requirements.in:
-c https://example.com/some/constraints.txt

foo
bar

pip-compile ... requirements.in
There is no reason to not to support it via command line option I think.

In terms of reproducibility, I think it boils down to how the remote constraints file is served and digested. A local file does not ensure reproducibility either.

I'm not exactly sure why CI / Linters / linkcheck-docs (pull_request) failed but it doesn't seem to be related to the change.

Please let me know how I can move this forward together with #2040. Thank you.

Please help merge this when suitable. Thank you all for the reviews and suggestions.

Thank you!


Update base.html.twig

update bootstrap

Thanks for your contribution! It seems related to ticket #73 .
But this issue is too minor to justify to update bootstrap. A minor fix would be more appropriate.


Add git hooks for branch name validation

Which issue this PR addresses:

Fixes ARO-6316
What this PR does / why we need it:

See ARO Branching Strategy.
Test plan for issue:

Local git - attempted to use "bad" branch names and ensured they failed to create commits locally. git branch --move some-bad-name some-good-name works and passes the pre-commit hooks.
Is there any documentation that needs to be updated for this PR?

Yes, included in this PR. I will send notifications to all SREs both in slack and email of this change.
How do you know this will function as expected in production?

Local dev changes, not deployed to prod.

I'm cool with this as-is, but I think it would also be neat to have the hook setup added as a Makefile target like @mbarnes pointed out in the Google Doc.


Wrong dependency for PHP8.0

Hi there,
I found a little issue while trying to require spiral/jobs with php ^8.0:
spiral/jobs[v2.2.0, ..., v2.2.1] require spiral/roadrunner ^1.1 -> found spiral/roadrunner[v1.1.0, ..., v1.9.2] but it conflicts with your root composer.json require (^2.0).

But in order to use spiral/roadrunner with php ^8.0 I need the version ^2.0 of it. So I think there is a wrong version requirement in you composer?

Hello there, has there been any updates to this, i'm currently running into the same issue - and don't truly feel like downgrading RR to 1.x after everything is running with 2.x :)

@karbowiak hello! This plugin is not currently supported by the RR 2.x.


bug to generate doc due to thiserror v1.0.35

Bug Description
cargo doc fail
error[E0554]: `#![feature]` may not be used on the stable release channel
   --> C:\Users\xxxx\.cargo\registry\src\github.com-1ecc6299db9ec823\thiserror-1.0.35\src\lib.rs:211:34
    |
211 | #![cfg_attr(provide_any, feature(provide_any))]
    |                                  ^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `thiserror` due to previous error

lib used by sqlx-core v0.6.2
Minimal Reproduction
[dependencies]
axum = "0.5.16"
tokio = { version = "1.0", features = ["full"] }
sqlx = { version = "0.6", features = ["runtime-actix-native-tls", "postgres" ] }

use sqlx::postgres::PgPoolOptions;
Info

SQLx version: 0.6
SQLx features enabled: "runtime-actix-native-tls", "postgres"
Database server and version: Postgres 14 (with docker-compose)
Operating system: windows 11 insider
rustc --version: rustc 1.63.0 (4b91a6ea7 2022-08-08)

Not a SQLx issue. See https://github.com/dtolnay/thiserror/issues/192

It seems to be a breaking change from thiserror 1.0.30 to 1.0.37. Adding this to my Cargo.toml fixed rust-analyzer:
thiserror = "=1.0.30"


Can't find C++ extension on Raspberry Pi

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.66.2
OS Version: Raspberry Pi OS 5.15

Steps to Reproduce:
Hi, I installed the latest version of code-server on my Raspberry Pi, which includes VSCode 1.66.2, but I can't find the C++ extension. I tried downgrading to 1.48.3 and it resolves the issue, but I want to use the latest version possible. What can I do?

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.67.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!


Stacks: Cannot split editor in Git Diff View

VSCode Version: commit a3c38e902fc6dbe06d80f43d5cf527b066499f51
OS Version: Mac OS X

Steps to Reproduce:

Make some changes to a file and view it in the Git Diff View from the activity bar
Note that there is no affordance to split the editor

We never showed the split action for the diff editor. I do not think there is much of a use case. Editors can opt in to allow for split and the diff is not included. E.g. we would also not show a split action for the editor that hosts the extensions once we go there.


Include windows and mac host in CI to run kam unit and e2e test

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Unit test throws error on my mac host. We need to integrate mac and windows in our CI to validate kam binary on these supported platform.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Each kam pr should be verified on mac and windows platform too.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Include windows and mac in CI.
Additional context
Add any other context or screenshots about the feature request here.

Run kam unit test in CI

[ ] Windows
[ ] macOS

Can you attach the error message to the issue?

Can you attach the error message to the issue?

https://github.com/redhat-developer/kam/issues/73

FWIW, I saw several errors on Windows.  One of which is:
--- FAIL: TestMakeScriptWithArgo (0.14s)
dryrun_test.go:44: fork/exec C:\Users\Admin\temp\gnome911315027\dryrun_script.sh: %1 is not a valid Win32 application.
--- FAIL: TestMakeScriptWithoutArgo (0.09s)
dryrun_test.go:60: fork/exec C:\Users\Admin\temp\gnome728220054\dryrun_script.sh: %1 is not a valid Win32 application.
and there are differences in slashes, so the test case will need to account for this difference.


Input: need 'onActionClick' props

Steps to Reproduce
import React from 'react'
import { Input } from 'semantic-ui-react'

const InputExampleAction = () => (
  <Input action='Search' placeholder='Search...' onActionClick={() => alert('action click')} />
)

export default InputExampleAction

Expected
alert should be triggered when clicking Input action.
Result
nothing happens

closed


Cannot download Nuget package from server in Azure

Hi,
I am hosting a Nuget server in Azure, I have managed to push a package successfully:

http://x/nuget/Packages

Has the entry, I have added the server as a package source inside visual studio and it's also listed there - however when I attempt to install the package through the package manager I get the following in the output window:
Attempting to gather dependency information for package 'package.2.0.0' with respect to project 'project', targeting '.NETFramework,Version=v4.5.1'
Attempting to resolve dependencies for package 'package.2.0.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'package.2.0.0'
Resolved actions to install package 'package.2.0.0'
  GET http://x/api/v2/package/project/2.0.0
  NotFound http://x/api/v2/package/project/2.0.0 69ms
Install failed. Rolling back...

I have no idea why it can't be seen, I assume there are some settings I am missing or something I have to do with Azure web apps but I can't pinpoint it...

Hey @LukeHenners, thanks for reaching out about this issue. Could you provide some steps on how you hosted NuGet.Server in Azure? More details the better!
What version of NuGet.Server are you using?
Also, could you provide a Fiddler trace of the different (both successful and unsuccessful) operations you can perform against this source?
If you are concerned about privacy, please feel free to send information to<EMAIL_ADDRESS>Note that file attachments are sometimes rejects so it is easiest to host files on a third-party file sharing site (like Dropbox, OneDrive, or Google Drive) and then include the link in the email.

Thanks for reply @joelverhagen!
I am using Nuget server <IP_ADDRESS>, it seems to in fact be an issue with the .nupkg I have generated and am publishing to the server not the server itself, which is weird.
I published the normal entity framework package up to the server and then attempted to download this it worked fine, the nupkg that I have generated (FooCompany.Product.Assembly) has been pushed and is in the exact same location, in the exact same format but for some reason I can't download it as mentioned in initial post as it "can't find it".
I have just used the standard publish to IIS with a publishing profile - it makes me think that something is wrong with the package but I can't understand what...

I would love to get a clear picture of what's going on here. It really surprises me that the package itself is the problem here. Do other packages work just fine? Could you try pushing a "known good" package to your NuGet.Server instance (e.g. NuGet.Core 2.14.0)?


Improved the query builder API by overloading groupBy and having methods

A few minor improvements to the query builder API. I ran into these today while building a bit more complex queries than usual and I was missing the method support for it in MetaModel.
See syntax examples.

Travis error seems unrelated (apparently a crashing ElasticSearch... We've also seen quite a few problems like this in DataCleaner lately, with services or the Travis image itself crashing/hanging... Maybe they're having trouble at the moment?)

LGTM (besides the full-file reformats, but that probably doesn't come as a surprise :))


[Feature] Want to add Manual Slider to slide images

Description
I want to add manual slider also to slide images because it is also important to slide in manual way
right now it is automatic
Screenshots

Checklist

[X] I have checked the existing issues
[X] I have read the [Contributing Guidelines]
[X] I have read the discussion tab thoroughly and got the project idea
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

@rohansx can you add the difficulty tag medium because it will be very difficult task to work on this

@vk20july not needed for now
there are dots below the popular category from which user can navigate

ok sir


BUG: Add Validity check to tag

Currently, editing a tag to blank or to a new module is allowed.
Proposed:
Add a validity check for the edit feature

Resolved by ensuring tag is compulsory, and editing tags is disabled


Fix pro activation

Changes

Only randomize uuid for personal licenses
Add warning annotation for license activation retries
add exit code output

Related Issues

#597

Related PRs

https://github.com/game-ci/documentation/pull/440

Checklist

[x] Read the contribution guide and accept the
code of conduct
[x] Docs (If new inputs or outputs have been added or changes to behavior that should be documented. Please make a PR
in the documentation repo)
[x] Readme (updated or not needed)
[x] Tests (added, updated or not needed)

Codecov Report

Merging #602 (59e5936) into main (96cfb84) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

:exclamation: Current head 59e5936 differs from pull request most recent head 479005d. Consider uploading reports for the commit 479005d to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files

@@            Coverage Diff             @@
##             main     #602      +/-   ##
==========================================
- Coverage   37.33%   37.30%   -0.03%
==========================================
  Files          76       76
  Lines        3059     3061       +2
  Branches      611      611
==========================================
  Hits         1142     1142
- Misses       1917     1919       +2

Files
Coverage Δ

src/model/docker.ts
10.63% <0.00%> (ø)

src/model/output.ts
75.00% <0.00%> (-25.00%)
:arrow_down:

:tada: awesome, thanks for the updates!


Add notification_source option for S3

Description
Adds new notification_source option for S3 source.
Issues Resolved
Checklist

[x] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Notification source has already been added to the s3 docs. Closing this PR.


Add Microsoft librarires to bom

Fix #171
@snicoll @yungez @xscript @aovechki @yaweiw

@ZhijunZhao,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

LGTM

@yungez could you help to update the appveyor setting due to the repo renaming? It seems the appveyor is running under your own account. Is there anyway we can improve it?

@ZhijunZhao,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@ZhijunZhao, pls see #174. currently no group or public appveyor account we have, so it's under my account. I think travis under personal account also

Codecov Report

Merging #173 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #173   +/-   ##
=======================================
  Coverage   71.41%   71.41%
=======================================
  Files          58       58
  Lines        1284     1284
  Branches      130      130
=======================================
  Hits          917      917
  Misses        298      298
  Partials       69       69

Continue to review full report at Codecov.

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


Send strongly typed events to dagger.cloud via Telemetry, not Logger

This is a follow-up to https://github.com/dagger/dagger/pull/2507

[x] Track run state changes explicitly, via Telemetry (not Logger)
[x] Send strongly typed cloud logs, via Telemetry (not Logger)
[x] Track task state changes explicitly, via Telemetry
[ ] Update API to only work with new events - breaking 0 users is OK
[ ] Do the event names make sense? @marcosnils talk to @gerhard

BONUS:

[ ] Investigate why dagger CLI takes several seconds to return after actions finish

Note for "logger" and "action.transition" events: For the sake of consistency, we should follow a single set of conventions throughout all the events.
I took inspiration from Segment: https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/
Their convention is <object>.<action>: product.viewed, cart.updated, order.completed, ...
I believe action.transition clashes with run.completed -- should be action.transitioned. And logger doesn't follow the object/action pattern.


ConditionalJSONModel

We have a JSON API that returns an array of objects. The objects do not have to be the same type. The type of the object is encoded in one of the object's properties. Example:
[
    {
        "type": "user",
        "name": "Dustin"
    },
    {
        "type": "group",
        "title": "My Group"
    }
]

I want to transform this JSON into an array of 2 objects-- MYUser and MYGroup. To accomplish this right now with JSONModel, I have created a ConditionalJSONModel class at this gist.
I can then create a MYConditionalModel:
@interface MYConditionalModel : ConditionalJsonModel

@end

@implementation MYConditionalModel

- (NSString*)classNameProperty
{
    return @"type";
}

- (NSDictionary*)classMapping
{
    return @{ @"user": MYUser.class, @"group": MYGroup.class };
}

- (BOOL)requiresExactMatch
{
    return YES;
}

@end

This has worked well for us, and I wanted to see if you guys want to incorporate something like ConditionalJSONModel into core.

@icanzilb @nitya1806 @dbachrach
I think it will be very useful to add this feature. Perhaps it can take how Mantle handle it as a reference. Adding an ability to let user choose class should be used when deserializing an object from JSON
https://github.com/Mantle/Mantle#classforparsingjsondictionary

I think it'd be worth discussing this more. Personally, I really do think this should be limited to subclasses though to prevent general confusion (especially when calling an init method on a class, it really must return a instance which is that kind of class).

To chime back in here. We landed on a class-cluster model and it's been working great for us. Doesn't require any change to JSONModel either.

@dbachrach presumably similar to the code I have above? Might be worth documenting a simple example of it in the readme.

Yep very similar @billinghamj
When I have some time, I can put together a short addition to the readme for this use case.


Adding badges to readme file

I am a GSSOC'23 contributor. I want to add readme badges.Please assign this issue to me.
Screenshots

This is the screenshot how it looks after changes.

Go for it @Rakshitha-reddy-paladugu


Fix "build-jsonld" GH Action

Looking into the GH action, and I see the following error:
jsonschema.exceptions.ValidationError: The csv_schema has an error in the validation_rules set for attribute Grant Start Date. Validation failed with the following errors: [['NA', 'Grant Start Date', 'The csv_schema, has an error in the validation rule for the attribute: Grant Start Date, the provided validation rules (date) is not a valid rule. Please check spelling.', 'Not a Rule']]

From what I understand, this error should not be received, at least not with the latest version of schematic (24.1.1).

2/2 update
Ahh, figured out the issue (hopefully the only one).  The workflow is currently using Python 3.8, which is no longer supported by schematicpy.  This would explain why the latest version (24.1.1) is not being installed.
Will attempt to use the latest stable version of Python now...

another 2/2 update
Using Python3.12 did not work, but this is because I failed to notice that schematicpy does not support 3.11 and beyond.  Using Python3.10 worked and the auto-build should now be working again 🤞


Updated readme

fixed typos & added mod dev names

Can you follow this so that I can edit your PR? https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork


sdk_hook_not_found when following Quick-Start

I've followed the Quick-Start https://api.slack.com/automation/quickstart and but no matter which template I'm cloning i always get this error: The start script was not found (sdk_hook_not_found).:
This is the slack doctor:
SYSTEM

    ✔ Operating System (hardware access mediator)
        Version: windows (amd64)

    ✔ Git (a version control system)
        Version: git version 2.38.1.windows.1

SLACK

    ✔ CLI (this tool for building Slack apps)
        Version: 2.23.0

    ✔ Configurations (any adjustments to settings)
        System ID: bee42360-9bdf-4b9a-8dab-e9125db24be5
        Last updated: 2024-05-05 10:32:46 +02:00
        Experiments: None

    ✔ Credentials (your Slack authentication)
        Team domain: filmstudio-sandbox
        Team ID: E071QTEKEPM
        User ID: U071N4057B7
        Last updated: 2024-05-05 09:57:53 +02:00
        Authorization level: Organization
        Token status: Valid

PROJECT

    ✔ Configurations (your project's CLI settings)
        Project ID: cd3390af-da66-4274-89c1-2c4aeb79d6f5

    ✘ Runtime (foundations for the application)
      Error: The `doctor` hook was not found (sdk_hook_not_found)
      Suggestion: Ensure this hook is implemented in your `slack.json`

    ✘ Dependencies (requisites for development)
      Error: The `check-update` hook was not found (sdk_hook_not_found)
      Suggestion: Ensure this hook is implemented in your `slack.json`

The slack.json file is present and looks like this:
{
  "hooks": {
    "get-hooks": "deno run -q --allow-read --allow-net<EMAIL_ADDRESS>  }
}

Im executing the slack run command in the right folder
I've upgraded the slack cli to the latest version
the slack.json file is identical to the one of this slack-sample
These are the logs:
PS C:\Users\peter\Desktop\Programming\Bots\my-app> slack run -v
[2024-05-05 11:05:55] Resolving logstash host, https://slack.com, 2.23.0
[2024-05-05 11:05:55] system_id: bee42360-9bdf-4b9a-8dab-e9125db24be5
[2024-05-05 11:05:55] project_id: cd3390af-da66-4274-89c1-2c4aeb79d6f5
[2024-05-05 11:05:55] active flag experiments: []
[2024-05-05 11:05:55] active project experiments: []
[2024-05-05 11:05:55] active system experiments: []
[2024-05-05 11:05:55] reading credentials file
[2024-05-05 11:05:55] found authorizations at C:\Users\peter\.slack\credentials.json reading
[2024-05-05 11:05:55] failed to initialize slack.json configurations: Command for 'GetHooks' returned an error: exec: "pwsh": executable file not found in %!P(MISSING)ATH%!
(MISSING) (sdk_hook_invocation_failed)

Suggestion:

Run `slack doctor` to check that your system dependencies are up-to-date.
[2024-05-05 11:05:55] initialize runtime from auto-detect: Deno (v1.43.1)
[2024-05-05 11:05:55] reading credentials file
[2024-05-05 11:05:55] found authorizations at C:\Users\peter\.slack\credentials.json reading
? Choose a local environment Install to a new team
? Install to a new team filmstudio-sandbox E071QTEKEPM

> If you leave this team, you can no longer manage the installed apps
   Installed apps will belong to the team if you leave the workspace

[2024-05-05 11:05:57] HTTP Request: POST https://slack.com/api/auth.test HTTP/1.1
HTTP Request Body:
token=...
[2024-05-05 11:05:57] HTTP Response Status: HTTP/1.1 200 OK
HTTP Response Body:
{"ok":true,"url":"https://filmstudio-sandbox.enterprise.slack.com/","team":"FIlmstudio Sandbox","user":"...","team_id":"E071QTEKEPM","user_id":"U071N4057B7","expires_in":39116,"enterprise_id":"E071QTEKEPM","is_enterprise_install":true}
[2024-05-05 11:05:57] reading credentials file
[2024-05-05 11:05:57] found authorizations at C:\Users\peter\.slack\credentials.json reading
[2024-05-05 11:05:57] Resolving logstash host, https://slack.com, 2.23.0
[2024-05-05 11:05:57] HTTP Request: POST https://slack.com/api/auth.teams.list HTTP/1.1
HTTP Request Body:
limit=100&token=...
[2024-05-05 11:05:58] HTTP Response Status: HTTP/1.1 200 OK
HTTP Response Body:
{"ok":true,"teams":[{"id":"T071QTF1WRH","name":"FIlmstudio Sandbox"}],"response_metadata":{"next_cursor":""}}
> Your app will be installed to the "filmstudio-sandbox" organization
   If you'd like, you can restrict access to only users in a particular workspace

? Choose a workspace to grant access: FIlmstudio Sandbox T071QTF1WRH
[2024-05-05 11:05:58] HTTP Request: POST https://slack.com/api/auth.test HTTP/1.1
HTTP Request Body:
token=...
[2024-05-05 11:05:58] HTTP Response Status: HTTP/1.1 200 OK
HTTP Response Body:
{"ok":true,"url":"https://filmstudio-sandbox.enterprise.slack.com/","team":"FIlmstudio Sandbox","user":"...","team_id":"E071QTEKEPM","user_id":"U071N4057B7","expires_in":39115,"enterprise_id":"E071QTEKEPM","is_enterprise_install":true}
[2024-05-05 11:05:58] Starting root command cleanup routine
Check C:\Users\peter\.slack\logs\slack-debug-20240505.log for full error logs

> The `start` script was not found (sdk_hook_not_found)

Suggestion:

Hook scripts are defined in the Slack configuration file ('slack.json').
Every app requires a 'slack.json' file and you can find a working example at:
https://github.com/slack-samples/deno-starter-template/blob/main/slack.json

[2024-05-05 11:05:58] FlushToLogstash will POST https://slackb.com/events/cli payload: [{"context":{"bin":"...\\AppData\\Local\\slack-cli\\bin\\slack.exe","cli_version":"2.23.0","command":"run","command_canonical":"platform run","flags":["verbose"],"host":"4fc9d945bbce3e93291794bdcd9cbadb301e8010","os":"windows","project_id":"cd3390af-da66-4274-89c1-2c4aeb79d6f5","runtime":"Deno","runtime_version":"v1.43.1","session_id":"042c7c30-a1cb-4d58-ba57-e03b2c6efca0","system_id":"bee42360-9bdf-4b9a-8dab-e9125db24be5"},"data":{"app":{},"auth":{"user_id":"U071N4057B7"},"error_code":"sdk_hook_not_found","error_msg":"The `start` script was not found (sdk_hook_not_found)\n\nSuggestion:\n\nHook scripts are defined in the Slack configuration file ('slack.json').\nEvery app requires a 'slack.json' file and you can find a working example at:\nhttps://github.com/slack-samples/deno-starter-template/blob/main/slack.json\n"},"event":"error","timestamp":1714899958974}]
[2024-05-05 11:05:59] FlushToLogstash response status code: 200, body: ok

Very similar to this reddit thread:  https://www.reddit.com/r/Slack/comments/1btrarr/please_test_my_open_ai_slack_bot/

Hi, @Equirinya! I have just merged in some dependency updates in this PR for this template: https://github.com/slack-samples/deno-starter-template/pull/64, could you try to follow the quickstart guide again to create a new app and run it and see if you get the same errors?

I have exactly same error with @Equirinya.
@hello-ashleyintech I created a new app and run it but I got the same error:The start script was not found (sdk_hook_not_found)
The slack.json file is present and looks like this:
{   "hooks": {     "get-hooks": "deno run -q --allow-read --allow-net<EMAIL_ADDRESS> } }

Hi, @whogodemo!
How recently did you create this new app?

Unfortunately its the same error still @hello-ashleyintech

👋 This might be caused by the PowerShell version being used with CLI implementations of hook execution, but not the actual hook implementations. The exec: "pwsh": executable file not found hints that the PowerShell version installed is less than 6.0 while support for pwsh is added in 6.0. Right now this is the minimum version supported by the CLI.
If you're using PowerShell could you check the version you're using? I'm wondering if this might be causing this issue and if bumping to a more recent version is possible?

Alo alo 😃
I want to confirm that I solved the problem updating to PowerShell 7; you can't check your PS version running.
$PSVersionTable
If you want to install the latest version of PS
https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#installing-the-msi-package

Stock control supervisors

I  got the same issue on macOS, here are my slack doctor outputs
✘ Runtime (foundations for the application)
      Error: The `doctor` hook was not found (sdk_hook_not_found)
      Suggestion: Ensure this hook is implemented in your `slack.json`

✘ Dependencies (requisites for development)
     Error: The `check-update` hook was not found (sdk_hook_not_found)
     Suggestion: Ensure this hook is implemented in your `slack.json`

There are few notes in the docs but I'm pretty sure my deno-slack-hooks is v1.3.0

Because this is my slack.json file
{
  "hooks": {
    "get-hooks": "deno run -q --allow-read --allow-net<EMAIL_ADDRESS>  }
}

@tult98 The contents of slack.json look good to me, but it might be possible that the deno command isn't being found in you $PATH 🤔 Could you try running just the following command to see if it outputs JSON that starts with {"runtime": "deno", ...?
$ deno run -q --allow-read --allow-net<EMAIL_ADDRESS>
I'd also be interested in the debug logs shown with a command like slack run -v since the following should be shown early in the execution:

[2024-07-27 11:14:15] initialized SDK CLI config: {Runtime:deno Hooks:{BuildProject:{Command:deno run -q --config=deno.jsonc --allow-read --allow-write --allow-net --allow-run --allow-env<EMAIL_ADDRESS>uild.ts Name:BuildProject} CheckUpdate:{Command:deno run -q --config=deno.jsonc --allow-read --allow-net<EMAIL_ADDRESS>Name:CheckUpdate} Deploy:{Command: Name:Deploy} Doctor:{Command:deno
 run -q --config=deno.jsonc --allow-read --allow-net<EMAIL_ADDRESS>Name:Doctor} GetHooks:{Command:deno run -q --allow-read --allow-net<EMAIL_ADDRESS>Name:Get
Hooks} GetManifest:{Command:deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env<EMAIL_ADDRESS>Name:GetManifest} GetTrigger:{Command:deno run -q --config=deno.jsonc --allo
w-read --allow-net --allow-env<EMAIL_ADDRESS>Name:GetTrigger} InstallUpdate:{Command:deno run -q --config=deno.jsonc --allow-run --allow-read --allow-write --allow-net https://deno.land/x/
<EMAIL_ADDRESS>Name:InstallUpdate} Start:{Command:deno run -q --config=deno.jsonc --allow-read --allow-net --allow-run --allow-env<EMAIL_ADDRESS>Name:Start}} Con
fig:{Watch:{FilterRegex:\.(ts|js)$ Paths:[.]} SDKManagedConnection:false TriggerPaths:[] SupportedProtocols:[message-boundaries]} WorkingDirectory:}

I'm hoping one of these point towards another issue or a fix, but please let me know if the responses seem unexpected!

Thanks for the quick response @zimeg
Here are the outputs from deno run -q --allow-read --allow-net<EMAIL_ADDRESS>command. It might be the problem here 🤔
error: Import<EMAIL_ADDRESS>failed: client error (Connect)

And the outputs from slack run -v
[2024-07-28 07:26:44] FlushToLogstash will POST https://slackb.com/events/cli payload: [{"context":{"bin":"slack","cli_version":"2.28.0","command":"run","command_canonical":"platform run","flags":["verbose"],"host":"54f03ef1feb4a887ed15e32389ea80c14e5599d4","os":"darwin","project_id":"b3aa1650-e53c-4a54-9957-9f6a66834a41","runtime":"Deno","runtime_version":"v1.45.4","session_id":"2a5b5c6b-c2ea-4803-ac95-79e1505ac7b0","system_id":"526c18bb-67b9-4127-bde5-474839e44665"},"data":{"app":{},"auth":{"user_id":"U07EQ55Q9H7"},"error_code":"sdk_hook_not_found","error_msg":"The `start` script was not found (sdk_hook_not_found)\n\n💡 Suggestion\n   Hook scripts are defined in the Slack configuration file ('slack.json').\n   Every app requires a 'slack.json' file and you can find a working example at:\n   https://github.com/slack-samples/deno-starter-template/blob/main/slack.json\n"},"event":"error","timestamp":1722126404044}]
[2024-07-28 07:26:44] FlushToLogstash response status code: 200, body: ok

@tult98 Interesting 👀 This might be VPN or network settings blocking a connection to https://deno.land 🦕
Wanting to rule a few things out- are you connected through a VPN? And does the following command on the same machine work for you?
$ deno run<EMAIL_ADDRESS>-t="greetings"

ah yes, I did use a VPN, it might be the problem. Let me turn off the VPN and try again. Thanks for your support 🙏

are you connected through a VPN

No, it doesn't

does the following command on the same machine work for you?

hey guys, I got the same problem now.... I'm pretty sure my Powershell is newest version(7.4.4)
The start` script was not found (sdk_hook_not_found)

Suggestion
Hook scripts are defined in the Slack configuration file ('slack.json').
Every app requires a 'slack.json' file and you can find a working example at:
https://github.com/slack-samples/deno-starter-template/blob/main/slack.json`
Here is my Slack doctor result:
   ✘ Runtime (foundations for the application)       Error: Thedoctorhook was not found (sdk_hook_not_found)       Suggestion: Ensure this hook is implemented in yourslack.json`

✘ Dependencies (requisites for development)
  Error: The `check-update` hook was not found (sdk_hook_not_found)
  Suggestion: Ensure this hook is implemented in your `slack.json`

Errors: 2`
Did anyone solve this question already? Thank you!!

@as43647 👋 Hi! Which version of the CLI is this happening with? My first guess is that the deno command is not being found but this might be related to how PowerShell and the CLI communicate when the hooks are called 🤔

Hi @zimeg !! My version is slack.exe v2.29.1
yeah I run the deno command and it starts with {"runtime": "deno", ...
I also run slack run -v and it shows:
Details

[2024-08-16 18:07:01] Resolving logstash host, https://slack.com, 2.29.1
[2024-08-16 18:07:01] system_id: fb7a886f-a7d2-404f-850a-972acdd6013d
[2024-08-16 18:07:01] project_id: 30812829-09b0-4be6-abf2-2e08bf9a2050
[2024-08-16 18:07:01] active flag experiments: []
[2024-08-16 18:07:01] active project experiments: []
[2024-08-16 18:07:01] active system experiments: []
[2024-08-16 18:07:01] reading credentials file
[2024-08-16 18:07:01] found authorizations at C:\Users\as436.slack\credentials.json reading
[2024-08-16 18:07:02] failed to initialize slack.json configurations: invalid character '.' looking for beginning of value
[2024-08-16 18:07:02] initialize runtime from auto-detect: Deno (v1.45.5)
[2024-08-16 18:07:02] reading credentials file
[2024-08-16 18:07:02] found authorizations at C:\Users\as436.slack\credentials.json reading
? Choose a local environment Install to a new team
? Install to a new team w1722928218-tjj244093 T07FNGSBC59

If you leave this team, you can no longer manage the installed apps
Installed apps will belong to the team if you leave the workspace

[2024-08-16 18:07:05] HTTP Request: POST https://slack.com/api/auth.test HTTP/1.1
HTTP Request Body:
token=...
[2024-08-16 18:07:05] HTTP Response Status: HTTP/1.1 200 OK
HTTP Response Body:
{"ok":true,"url":"https://w1722928218-tjj244093.slack.com/","team":"\u65b0\u7684\u5de5\u4f5c\u7a7a\u9593","user":"...","team_id":"T07FNGSBC59","user_id":"U07FR4T1KRS","expires_in":22039,"is_enterprise_install":false}
[2024-08-16 18:07:05] reading credentials file
[2024-08-16 18:07:05] found authorizations at C:\Users\as436.slack\credentials.json reading
[2024-08-16 18:07:05] Resolving logstash host, https://slack.com, 2.29.1
[2024-08-16 18:07:05] HTTP Request: POST https://slack.com/api/auth.test HTTP/1.1
HTTP Request Body:
token=...
[2024-08-16 18:07:06] HTTP Response Status: HTTP/1.1 200 OK
HTTP Response Body:
{"ok":true,"url":"https://w1722928218-tjj244093.slack.com/","team":"\u65b0\u7684\u5de5\u4f5c\u7a7a\u9593","user":"...","team_id":"T07FNGSBC59","user_id":"U07FR4T1KRS","expires_in":22039,"is_enterprise_install":false}
[2024-08-16 18:07:06] Starting root command cleanup routine
Check C:\Users\as436.slack\logs\slack-debug-20240816.log for error logs
The start script was not found (sdk_hook_not_found)

Suggestion
Hook scripts are defined in the Slack configuration file ('slack.json').
Every app requires a 'slack.json' file and you can find a working example at:
https://github.com/slack-samples/deno-starter-template/blob/main/slack.json

[2024-08-16 18:07:06] FlushToLogstash will POST https://slackb.com/events/cli payload: [{"context":{"bin":"...\AppData\Local\slack-cli\bin\slack.exe","cli_version":"2.29.1","command":"run","command_canonical":"platform run","flags":["verbose"],"host":"978c8bba38c9a4f024a5cb28d420fb807d34b89f","os":"windows","project_id":"30812829-09b0-4be6-abf2-2e08bf9a2050","runtime":"Deno","runtime_version":"v1.45.5","session_id":"062d2a88-e0b7-4269-8086-3e7a208fdf21","system_id":"fb7a886f-a7d2-404f-850a-972acdd6013d"},"data":{"app":{},"auth":{"user_id":"U07FR4T1KRS"},"error_code":"sdk_hook_not_found","error_msg":"The start script was not found (sdk_hook_not_found)\n\n\u003e Suggestion\n   Hook scripts are defined in the Slack configuration file ('slack.json').\n   Every app requires a 'slack.json' file and you can find a working example at:\n   https://github.com/slack-samples/deno-starter-template/blob/main/slack.json\n"},"event":"error","timestamp":1723802826124}]
[2024-08-16 18:07:06] FlushToLogstash response status code: 200, body: ok

FYI I'm using Windows. Thank you!!

@as43647 🤔 Hmm...
      ]
    }
  }
}

Asking because this line is a bit suspicious with the invalid . character!
[2024-08-16 18:07:02] failed to initialize slack.json configurations: invalid character '.' looking for beginning of value

This might also be caused by the environment you're running slack and deno in. It's possible that a debugger or similar program is adding additional output to the deno command and causing unexpected parsings with the CLI 🤔
If the output above matches and these commands are run with the same path and shell, I'll be a bit stumped but we'll of course continue investigations! :mag:

Hey @zimeg ~
My Deno version is:
deno 1.45.5 (release, x86_64-pc-windows-msvc)
v8 <IP_ADDRESS>
typescript 5.5.2
There are some different between two json file deno_slack_hooks and deno_slack_runtime. Both are different version. Should I upgrade them? (my version are 1.3.0 and 1.1.1 btw)
Thank u!!

@as43647 👀 All of those versions seem alright to me! It is notable that Windows is being used, but I don't believe that should be causing a problem...
Can you share the outputs from these commands when running in a project directory?
$ deno run -q --allow-read --allow-net<EMAIL_ADDRESS>$ deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env<EMAIL_ADDRESS>$ slack manifest

I'm hoping to figure out if this is caused by deno or how the CLI is interpreting the "hook" responses 🤔

Hi @zimeg
Here is my output:
deno run -q --allow-read --allow-net<EMAIL_ADDRESS>Details

{"runtime":"deno","hooks":{"get-manifest":"deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/get_manifest.ts","get-trigger":"deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/get_trigger.ts","build":"deno run -q --config=deno.jsonc --allow-read --allow-write --allow-net --allow-run --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/build.ts","start":"deno run -q --config=deno.jsonc --allow-read --allow-net --allow-run --allow-env<EMAIL_ADDRESS>","check-update":"deno run -q --config=deno.jsonc --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/check_update.ts","install-update":"deno run -q --config=deno.jsonc --allow-run --allow-read --allow-write --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/install_update.ts","doctor":"deno run -q --config=deno.jsonc --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/doctor.ts"},"config":{"protocol-version":["message-boundaries"],"watch":{"filter-regex":"\.(ts|js)$","paths":["."]}}}

deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env
Details

<EMAIL_ADDRESS>{"_metadata":{"major_version":2},"display_information":{"name":"hello-world-app","description":"A blank template for building Slack apps with Deno"},"icon":"assets/default_new_app_icon.png","oauth_config":{"scopes":{"bot":["commands","chat:write","chat:write.public"]},"token_management_enabled":false},"features":{"bot_user":{"display_name":"hello-world-app"},"app_home":{"messages_tab_enabled":true,"messages_tab_read_only_enabled":true}},"settings":{"function_runtime":"slack","org_deploy_enabled":true},"functions":{},"workflows":{},"outgoing_domains":[]}

slack manifest
Details

Check C:\Users\as436.slack\logs\slack-debug-20240822.log for error logs
The manifest script was not found (sdk_hook_not_found)

Suggestion
Hook scripts are defined in the Slack configuration file ('slack.json').
Every app requires a 'slack.json' file and you can find a working example at:
https://github.com/slack-samples/deno-starter-template/blob/main/slack.json

Thank you!


Class App\Http\Controllers\Hyn\Tenancy\Database\Connection does not exist

Description
I am trying to get files uploaded by a tenant user to store in the corresponding tenant folder app/tenancy/tenants/abcxyz123.
I have this in my controller to retrieve the current tenant folder and store the file in that folder :
			$directory = app(Hyn\Tenancy\Website\Directory::class); 			$path = $request->file('file')->store( $directory->path() );

Actual behavior
I get this error:
"Class App\Http\Controllers\Hyn\Tenancy\Database\Connection does not exist"
Expected behavior
This looks like a namespace issue, but after hours spent trying to solve it, I need your help.

Information

hyn/multi-tenant version:
laravel version:
database driver and version:
webserver software and version:
php version:

tenancy.php config

webserver.php config

Error log

Change this $directory = app(Hyn\Tenancy\Website\Directory::class); $path = $request->file('file')->store( $directory->path() ); to $directory = app(\Hyn\Tenancy\Website\Directory::class); $path = $request->file('file')->store( $directory->path() );

What @gkarugi says, or do the proper import.

...or do the proper import.

@Thijmen What do you mean with "proper import"?

What @Thijmen is saying is use proper imports for the Directory and Connection classes.  i.e
use Hyn\Tenancy\Website\Directory;
use Hyn\Tenancy\Database\Connection;
Then use the classes :
Directory::class
Connection::class

Thank you very much for your help!


Enter not working as expected in dmn-editor

It's not triggering the next cell selection

You need branch 67-keyboard-editor-actions from Table-JS to be merged onto Master before merging this.


Commands.none() causes erratic path

The robot heads at high speed toward the edge of the Earth when running an auto path that includes Commands.none() as the second argument of a Commands.either().
The complex auto path is of the form:
.
.
.
        {
          "type": "path",
          "data": {
            "pathName": "N2 to N1"
          }
        },
        {
          "type": "named",
          "data": {
            "name": "Autonomous Finish Intake"
          }
        },
        {
          "type": "path",
          "data": {
            "pathName": "N1 to Center Line"
          }
        }

.
.
.

The named Command, say "Autonomous Finish Intake" is of the form:
Commands.either(long_complicated_command, Commands.none(), a_boolean_supplier);
The path runs correctly with the TRUE leg. The robot heads straight at high speed to parts unknown when running the FALSE none() leg.
Replacing the Commands.none() with waitseconds(0.1) is a good circumvention of the problem and then the robot works perfectly.
PP version is the one before the recent update. Windows 10 Java development PC and roboRIO v2 and WPILib all up to date.
I apologize for a poor submittal without proper MRE. We don't have time and thought a poor submittal could be better than none.

Would need some more info on what the paths you are trying to run look like. Not sure exactly what's happening.

I suggest closing this issue for lack of details. Its objective has been accomplished - a data point that may or may not be in a pattern. If you haven't already, you could add an either( , none(), ) to your test suite as a potential edge case for a possible timing problem. Except for this glitch our 4-Note auto was reliable and highly useful - Thanks.

What I'm assuming was happening was an issue with replanning if you had disjoint headings on your path-path transition. The none command would cause it to start the next path immediately without slowing down and do some weird replanning. The effect of current velocity on replanning was reduced recently, so this may not be as much of an issue anymore.
You can close this if you'd like, but if you want to keep it open and can provide some more info I might be able to help more.


nixos/nixpkgs: fix assertion text & show def files

Description of changes

nixos/nixpkgs: fix config assertion text
nixos/nixpkgs: show definition files in config assertion

The existing opt.pkgs.isDefined -> cfg.config == {} assertion was printing the nixpkgs.config option instead of the value. This PR fixes that, and in a follow-up commit also prints the defining files.
I was tempted to use lib.options.showDefs, however I felt it made more sense in this instance to show the full and final value in its entirety and then only list the defining files. This avoids an unnecessarily long and repetitive assertion message. Note that showDefs would show part of each definition, each truncated after a few lines.
The assertion in question was introduced in ce87196a00214a0062ece1c3e03a9a97f563580f (#257458 Sept 2023) by @K900 and hasn't been touched since.
cc (some) original reviewers: @roberth @khaneliman @FRidh @SuperSandro2000

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This looks alright. I think the mistake was made because opt.foo renders as an option path, but toPretty doesn't do that; not that it matters much.
Could you add a regression test to nixos/modules/misc/nixpkgs/test.nix?

Could you add a regression test to nixos/modules/misc/nixpkgs/test.nix?

Good idea! I've added one based on the existing "ambiguous" test.

Thank you!


Triple additions with fastStart or after prepareExecution sometimes don't add the edge from RootIndex to P vertex

What were you doing?
I'm attempting to add triples to a TripleRush instance and either these additions don't happen correctly, or the queries fail to run correctly on the data. See code below in order to reproduce the scenario.
What did you expect to happen?
I expect to count 25700 unique triples after loading university 0 of LUBM-1.
What did actually happen?
The count is sometimes smaller than 25700.
What are possible reasons that might have caused this unexpected behavior?

Query execution does not correctly count the number of triples that are in the store
The index is sometimes not updated correctly during the edge/vertex additions triggered by a triple addition
Blocking triple additions sometimes return before the index has actually been updated

What possible causes are you investigating? Tip: prioritize causes that are easy to check and ones that are likely correct.

[ ] Query execution does not correctly count the number of triples that are in the store
I think this is really it:
When counting with println(tr.countVerticesByType), then the number of PIndex vertices seems to match, but the number of retrieved bindings is too low (this is on triple-addition-diagnostics branch).
I initially thought I could exclude this possibility, because the error only appeared with one kind of edge addition and query execution is supposed to be the same no matter how a triple was added.
[ ] The index is sometimes not updated correctly during the edge/vertex additions triggered by a triple addition
[ ] Blocking triple additions sometimes return before the index has actually been updated
The error persists even if I wait for 10 seconds before the query is triggered. So either this is not the cause, the update takes longer than those extra 10 seconds, or some complex interaction with an unflushed message bus might cause this.

Code that allows to reproduce the issue:
package com.signalcollect.triplerush.loading

import java.io.File

import org.scalatest.{ Finders, FlatSpec }
import org.scalatest.concurrent.ScalaFutures

import com.signalcollect.triplerush.{ TriplePattern, TripleRush }
import com.signalcollect.triplerush.dictionary.HashDictionary
import com.signalcollect.util.TestAnnouncements

class BlockingAdditionsSpec extends FlatSpec with TestAnnouncements with ScalaFutures {

  "Blocking additions" should "correctly load triples from a file" in {
    //fastStart = true,
    val tr = TripleRush(dictionary = new HashDictionary())
    //val tr = TripleRush(dictionary = new ModularDictionary())
    try {
      val filePath = s".${File.separator}lubm${File.separator}university0_0.nt"
      println(s"Loading file $filePath ...")
      //tr.loadFromFile(filePath)
      val howMany = 25700
      //.take(howMany)
      tr.prepareExecution
      tr.addTriples(TripleIterator(filePath), blocking = true)
      tr.awaitIdle
      println(tr.dictionary)
      //tr.awaitIdle()
      //val count = tr.resultIteratorForQuery(Seq(TriplePattern(-1, -2, -3))).size
      //          assert(count == 25700)
      //      val countOptionFuture = tr.executeCountingQuery(Seq(TriplePattern(-1, -2, -3)))
      //      whenReady(countOptionFuture) { countOption =>
      //        assert(countOption == Some(howMany))
      //      }
      println(tr.resultIteratorForQuery(Seq(TriplePattern(-1, -2, -3))).size)
      println(tr.countVerticesByType)
      println(tr.edgesPerIndexType)
    } finally {
      tr.shutdown
    }
  }

}

Fixed.


Refactoring Workshop - Added DevContainer, Updated to Docusaurus v3

Updated workshop to use Docusaurus v3 (major version update with breaking changes)
Added devcontainer (Universal) to support Codespaces (now), Jupyter Notebooks (next)
Added notebooks folder (Placeholder) to support self-guided workshop using API-Key (next)

I will be walking through the workshop (for the Dec 11 event in NY) and updating the content with screenshots and annotations to make instructions clearer in the same branch if useful.


MINOR: Add 2.0, 2.1 and 2.2 to broker and client compat tests

These are important to ensure we don't break compatibility.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

System tests run for all tests updated in this PR:
https://jenkins.confluent.io/job/system-test-kafka-branch-builder/2622/console

System tests passed. PR validation is green too.

Thanks! Cherry-picked it to 2.3 branch.


Lack of MockJoinGroupResponse in mockresponses.go

master
I haven't found struct MockJoinGroupResponse in mockresponses.go, will we support that?

@liuxin-reg any luck with this? Happy to help out if you want.

I submitted a PR with a few mocks, but I think consumer group mocking will take a bit more than just that.

@carldunham Thanks for your response and PR. I had add some basic mocks for consumer group responses too, it can works now, but without enough detailed considerations contained. Now, I removed this modification from folder vendor, since I don't think this kind of mock is necessary for normal consumer client.

Any updates on this one @carldunham @liuxin-reg ?

Fixed by https://github.com/IBM/sarama/pull/1750


Migration to Kotlin 1.4

Because Kotlin 1.5 is already out, it might become dangerous for users to keep depending on a lib compiled with 1.3.
Notes

mapValues will skip creating an intermediate collection and a Pair per entry
sumOf also avoids an intermediate collection

Hi @mauhiz, thank you for these contributions. I need to pass ownership of this repository as my priorities have changed in the past two years.
Feel free to fork and support if you'd like! I need to keep my attention on other projects.

Hi @thomasnield , thank you for your reply. Sorry but I'm not ready to maintain this lib either, feel free to close this PR


Portable version available with dyn.WinEx context menu (de)registration?

Is there a portable version of HashCheck?
It should allow dynamic WinExp context menu registration on-the-fly (and later dyn. de-registration)
without leaving any traced.
If this is currently not the case: Could such an option be implemented?
Thank you
Ben

Instead of introducing manual register and unregister steps (so, effectively, install and uninstall) with this proposed portable edition of HashCheck, why not just have one step of using and running a hashing utility that's standalone, registration-less, and leaves no traces behind to begin with?  An application that can only be accessed by embedding itself into the system (as far as context menus and properties dialog tabs) and an application that's portable seem like competing goals.
To answer your questions, no, I'm not aware of such a portable version and, yes, someone certainly could implement that.  You could roll your own, even, by grabbing HashCheck.dll and having register/unregister scripts with the appropriate invocations of regsvr32.exe, just like the installer does.


Change maxPplDensity, minPplDensity and pplDensity datatype

Problem description
In current API specification we specified that maxPplDensity,  minPplDensity or pplDensity are defined as number with format Double.
It means that result could look like:
          "populationDensityData": {
            "dataType": "DENSITY_ESTIMATION",
            "maxPplDensity": 1717.986420914645,
            "minPplDensity":<PHONE_NUMBER>7219166,
            "pplDensity": 1717.986420914645
          }

This is a bit odd to project to have 1717.986420914645 people. 1718 is probably better.
Should we change this 3 attributes 'format' to integer?
Possible evolution

Alternative solution

Additional context

Thanks @bigludo7 for bringing this up. I also aligned with you ,  for most users, understanding 'people per square kilometer' does not require precision beyond whole numbers, as fractional people are not meaningful in our API context .So yes, better to have integer in this case.

Technically, "double" does not enforce anyone to return exact math result like "1717.986420914645" in the API.
One still can return "1717" or even "1700" if the accuracy is +/- 50ppl/km2 (rounding must also match accuracy).
But, yes, integer would be a better type here.

Close as solved in #59


Stripe (Beta)

Stripe (Beta) is no longer available after Nov 2019 updates

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

ID: 9ca836d9-2353-3725-f4ae-73e8d1ca34ba
Version Independent ID: 80ff9e5a-772f-b1ec-61f0-de544ae9e959
Content: Data sources in Power BI Desktop - Power BI
Content Source: powerbi-docs/desktop-data-sources.md
Service: powerbi
Sub-service: powerbi-desktop
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Thanks for your comment, @HashamNiaz . This issue has been assigned to the doc author for review.


Don't create tunnel interface (antrea-tun0) when using Wireguard

When using Wireguard for inter-Node traffic, there is no need to create the OVS tunnel port (antrea-tun0) interface, as traffic will go through antrea-wg0, which is managed by Linux directly.
The exception is when using Multi-cluster (in gateway mode), as antrea-tun0 is then still used for cross-cluster traffic, for example to tunnel traffic from the source Node to the local gateway Node.
Fixes #5869

/test-all

/test-e2e

jenkins-e2e failing for unrelated reason


raw bayer support for HQ camera

This is related to the HQ camera:
The capture function with bayer=True does not return the whole Bayer data and a second call to capture leads to a PiCameraRuntimeError.
The issue can be replicated with:
from __future__ import (
    unicode_literals,
    absolute_import,
    print_function,
    division,
    )

import time
import io
import picamera

with picamera.PiCamera() as camera:
    # Let the camera warm up for a couple of seconds
    time.sleep(2)
    # Capture the image, including the Bayer data
    stream = io.BytesIO()
    camera.capture(stream, format='jpeg', bayer=True)
    print("Camera version: %s" % camera.exif_tags['IFD0.Model'])
    print("1st stream size: %d" % stream.tell())
    # try next capture
    time.sleep(2)
    stream = io.BytesIO()
    camera.capture(stream, format='jpeg', bayer=True)
    print("2nd stream size: %d" % stream.tell())

I set DEBUG = 10 in PiEncoderto get more debug information.  The console outputs are:
pi@raspicam03:~/HubblePi $ python test.py
 vc.ril.camera [2]                             [0] vc.ril.image_encode [0]
   encoding    OPQV-strips             OPQV-strips      encoding       JPEG
      buf      10x128          -->          10x128         buf         1x345600
    bitrate    0bps                           0bps       bitrate       0bps
     frame     720x480@30fps         720x480@30fps        frame        0x0@30fps
<MMALBuffer object: flags=______ command=none length=345600>
<MMALBuffer object: flags=______ command=none length=345600>
<MMALBuffer object: flags=______ command=none length=345600>
<MMALBuffer object: flags=_E___X command=none length=96465>
Camera version: RP_testc
1st stream size: 1133265
 vc.ril.camera [2]                             [0] vc.ril.image_encode [0]
   encoding    OPQV-strips             OPQV-strips      encoding       JPEG
      buf      10x128          -->          10x128         buf         1x345600
    bitrate    0bps                           0bps       bitrate       0bps
     frame     720x480@30fps         720x480@30fps        frame        0x0@30fps
Traceback (most recent call last):
  File "test.py", line 29, in <module>
    print("2nd stream size: %d" % stream.tell())
  File "/home/pi/HubblePi/picamera/camera.py", line 758, in __exit__
    self.close()
  File "/home/pi/HubblePi/picamera/camera.py", line 752, in close
    raise exc
picamera.exc.PiCameraRuntimeError: No data recevied from sensor. Check all connections, including the SUNNY chip on the camera board

The size of the first received stream fits to the sum of the buffer lengths. But this can not be the whole bayer pattern. I would expect about 20 MiByte.
A second call to capture ends in an error. This is certainly a subsequent fault.
I am running this on a RaspberryPi Zero WH with the latest Raspian:
pi@raspicam03:~/HubblePi $ uname -a
Linux raspicam03 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l GNU/Linux

When trying raspistill --raw -o raspistill_HQ.jpg I get a JPG file with 22 MiByte. I have not checked if the Bayer pattern is complete but just the size makes more sense to me. Furthermore on https://www.raspberrypi.org/forums/viewtopic.php?t=273500 the people use raspistill to produce raw Bayer data.

Update your firmware.
There was an early bug in the firmware that allowed the use of the 10bit 720p mode for stills captures. That is a 1125kB Bayer image.
In doing so there was also an issue where it failed to switch back to the 12bit viewfinder mode correctly, which is why the pipeline times out for the second capture.
I've just run your script with latest firmware and got
1st stream size: 19710134
2nd stream size: 19709944
both of which are reasonable for the 12MPix capture (18MB of raw data as 12bpp).

Thank you very much for your quick answer!
I did sudo apt-get update and sudo apt-get upgrade but the firmware is still the same. How do I get an updated firmware? With rpi-update? Which firmware do you have running?

I did sudo apt-get update and sudo apt-get upgrade but the firmware is still the same. How do I get an updated firmware? With rpi-update? Which firmware do you have running?

I was expecting you to get the firmware bump from 1st June, but someone else had the same issue of apt not updating on https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=276556
apt-cache policy raspberrypi-bootloader should list Candidate: 1.20200601-1
vcgencmd version should return something from the same date.
I'm investigating whether something went wrong in the building of that Raspbian package.
I'm using debug firmware from the head of our internal tree, but this issue is fixed in rpi-update back in May.

OK, I've had an answer - the Pi4 firmware got bumped, but not the Pi0-3 one.
If you're on Pi0-3, you'll have to use rpi-update for now too get the fix.

After rpi-update everything works fine now. Many thanks for your great support! Have a nice day. Bye.


Hover Text shows in background after resizing window

Normally you can hold the mouse button down to display the hover text and it will appear on top of the graph. But if you resize the window, the hover text will always appear behind the content making it really hard to read.
You can reproduce this in almost any of the OxyPlot examples windows by resizing the windows and holding the mouse down to show the hover text.

I found a workaround to fix the problem. You can set the PlotView.DisconnectCanvasWhileUpdating = false and tracker will always stay on top. I checked the WPF version and it doesn't have this problem, and the code looks like it's the same between them, so it might be exposing an Avalonia issue.
                if (DisconnectCanvasWhileUpdating)
                {
                    // TODO: profile... not sure if this makes any difference
                    var idx = panel.Children.IndexOf(canvas);
                    if (idx != -1)
                    {
                        panel.Children.RemoveAt(idx);
                    }

                    ((IPlotModel)ActualModel).Render(renderContext, canvas.Bounds.Width, canvas.Bounds.Height);

                    // reinsert the canvas again
                    if (idx != -1)
                    {
                        panel.Children.Insert(idx, canvas);
                    }
                }
                else
                {
                    ((IPlotModel)ActualModel).Render(renderContext, canvas.Bounds.Width, canvas.Bounds.Height);
                }


BUG: area_per_pt should be scalar in UniformLineScan

I don't understand, is pixel size always a tuple?

Yes pixel_size is always a tuple, as nb_grid_pts and physical_sizes

Is that resonable or does it point to a larger problem?

It is reasonable. I think there are advantages in some functions that the pixel size has always the same type


Fix NodeLeader was not reset between test cases.

What current issue(s) does this address, or what feature is it adding?
Related to https://github.com/CityOfZion/neo-python/pull/740#discussion_r239346845
NodeLeader was not reset between test cases.
This would lead to some problems when the blockchain is reset but the NodeLeader instance members are not, especially NodeLeader.KnownHashes and MemPool.
Transactions were still considered as known.
How did you solve this problem?

Add missing members in NodeLeader.Setup()
Call NodeLeader.Instance().Setup() in BlockchainFixtureTestCase.setUpClass()
Also removed the unsued member NodeLeader.MissionsGlobal

How did you make sure your solution works?
Unit tests succeed.
Are there any special changes in the code that we should be aware of?
Note: maybe this could be merged into develop if the problem is confirmed and the fix correct.
Please check the following, if applicable:

[ ] Did you add any tests?
[x] Did you run make lint?
[x] Did you run make test?
[x] Are you making a PR to a feature branch or development rather than master?
[ ] Did you add an entry to CHANGELOG.rst? (if not, please do)

👍


bump: 4.13

Fixes #3485

Pull Request Test Coverage Report for Build 701969084

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.01%) to 84.947%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

Totals

Change from base Build 701962369:
0.01%

Covered Lines:
18898

Relevant Lines:
21184

💛  - Coveralls


make install does nothing

Hello,
I discovered your program this week, and it's working really nice, thank you.
I'm using it directly in a C++ code, so I have to link the libraries.
The only probem is, the install target seems broken.
My cmake command is cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON ..
When I run "make install", with a custom install prefix or not, nothing happens, just:
[  9%] Built target FastNoise
[  9%] Built target MagnumShaders_RCS-dependencies
[ 16%] Built target CorradeUtilityObjects
[ 22%] Built target CorradeUtility
[ 25%] Built target corrade-rc
[ 28%] Built target MagnumShadersObjects
[ 32%] Built target MagnumMathObjects
[ 36%] Built target MagnumObjects
[ 42%] Built target Magnum
[ 69%] Built target MagnumGLObjects
[ 70%] Built target MagnumFlextGLObjects
[ 78%] Built target MagnumGL
[ 84%] Built target MagnumShaders
[ 89%] Built target MagnumImGuiIntegration
[ 90%] Built target MagnumGlxContextObjects
[ 92%] Built target MagnumPlatformObjects
[ 93%] Built target MagnumSdl2Application
[ 93%] Built target MagnumSceneGraphObjects
[ 96%] Built target MagnumSceneGraph
[100%] Built target NoiseTool
Install the project...
-- Install configuration: "Release"

So right now I just copy manually the include folder, and the build/Release/lib ,build/Release/bin folders, but it's not very efficient.
Am I doing something wrong ? I didn't see any install target in the CMakeLists.txt, but  didn't fiddle too much...
Thank you

This is my first project using CMake so I'm still figuring stuff out. I haven't setup anything for install, I'm not really sure what that entails.

Ha ok, so it is expected behavior. I do a bit of cmake myself, so I tried, and if i add
install(TARGETS NoiseTool FastNoise
        LIBRARY DESTINATION lib
        RUNTIME DESTINATION bin)

in the end of NoiseTool/CMakeLists.txt, it seems to work.
i don't really know how to deal with the includes though, it should be an argument of install,PUBLIC_HEADER DESTINATION include,  where you define your headers.
thanks anyway !


Support configure a custom launch url for flutter web

Hi,
When we develop with flutter for web, the default launch url is http://${web-hostname}:${web-port}. But when the page must use cookie with a specific domain, such as login information,  a cross-domain error will occur.
In order to solve the cross-domain problem to share cookie, a launch url that match the same-origin policy should be used when the browser is first opened, so we need to support configure a custom launch url for flutter web
For example:
first, we need to configure a url, such as "http://alchemy-boe.bytedance.net/."

second, the browser will be launched with the configured url.

then, the flutter for web pages can access cookie under the  "http://alchemy-boe.bytedance.net"
We have used this solution in daily business development, and works fine.

A fix for this has been already merged, it seems! https://github.com/flutter/flutter/pull/95002
I'm going to close this issue as fixed, feel free to reopen if I made a mistake!


List available recipes as a graph or tree

Hi there!
Is there a way to quickly check the recipe dependencies?
I checked the Listing Available Recipes page but it's not mentioned.
If not existing, I think it could be worth to implement.
Let's take an example.
Based on this Justfile found in the documentation :
# Justfile
a:
  echo 'A!'

b: a
  echo 'B start!'
  just c
  echo 'B end!'

c:
  echo 'C!'

We could execute the following command :
just --list --graph

And we could clearly see the recipe dependencies :
├── a
├── b
│   ├── a
│   └── c
└── c

What do you think?

Love this idea! I think calling it just --tree would be good, similar to the CLI tree command that prints a directory tree.

Displaying calls like "just c" as a dependency in the tree can be difficult. What to do in a case:
bin := "just" // it can be a conditional here
a:
   echo "a"
    {{ bin }} b
b:
  echo "b"

or in this case:
section := if windows { "build-win" } else { "build-lin" }
a:
   just {{ section }}
  echo "Done"
build-win:
  ...
build-lin:
  ...

I can think of more complex cases, but even these ones are tricky.

Oh sorry, I missed that part. Yeah, I think that displaying dependencies which are called inside recipes is not possible.

Oh sorry, I missed that part. Yeah, I think that displaying dependencies which are called inside recipes is not possible.

Perhaps we adjust the definition of dependency a bit? To me, lah := "blah" is an assignment statement, which shouldn't be a dependency, right? Otherwise, this idea has flopped since assignments are (almost) always used in recipes.
Can you consider this point too?


Reverse changelog

Resolves #71.
Changes for some versions contain empty sections (e.g. empty "Removed" section for v0.0.2). I intentionally kept changes as is. Let me know if they should be omitted.

Since the presence of empty sections isn't consistent (newer versions don't have them), I'm pretty sure you can remove them.