14,292 questions
2
votes
1
answer
57
views
How to create System Environment Variables via Powershell? [duplicate]
I wanted to create an Environment Variable that's stored system-wide.
What I've used in Powershell:
$Env:MyVar = 'Some value'
With gci Env: I can confirm, that the variable has been created ...
0
votes
1
answer
34
views
Dynamic Alias Configuration in Quasar/Vite's extendViteConf Fails with Environment Variables
I'm working on a Quasar (v2) project using Vite (quasar cli) as the build tool, and I need to deploy multiple instances of nearly the same web application, each with different assets, images mostly. ...
0
votes
1
answer
21
views
How to pass variables accessible from VsCode devcontainer.json to docker-compose.yml
In devcontainer.json we have access to these variables:
${localWorkspaceFolder}
${containerWorkspaceFolder}
${localWorkspaceFolderBasename}
${containerWorkspaceFolderBasename}
I have tried making ...
-1
votes
0
answers
46
views
python.exe path getting split in Visual Studio Codeterminal [closed]
I've been working with Visual Studio Code for a while. Haven't had any major issues, except for today, where I am repeatedly getting this error at what seems like random intervals:
hon/Python311/...
2
votes
1
answer
56
views
How do I correctly pass an environment variable with spaces to a Docker container using the -e flag?
I'm running into an issue while trying to pass the HOST_GROUP environment variable to a Docker container. The value I'm trying to pass is:
HOST_GROUP="BUH\100 user"
However, when I inspect ...
1
vote
2
answers
121
views
Determine which environment variables have been set by a script
I'm looking for a way to determine in a script which environment variables another script sets. The script that sets the environment variables (env.sh) has various logic to retrieve those variable ...
1
vote
1
answer
86
views
Why doesn’t sudo -E preserve PERL5LIB on macOS? [closed]
I’m experiencing a strange behavior related to environment variable preservation with sudo on macOS(15.2): sudo -E doesn't preserve the environment variable PERL5LIB.
Reproduction Steps
Set an ...
0
votes
0
answers
73
views
Firebase API key is not defined error in Next.js project using Firebase SDK
I'm setting up Firebase (version 10.x) in my Next.js (version) 14 app, but I'm encountering the following error when trying to initialize Firebase:
Firebase API key is not defined. Ensure ...
1
vote
1
answer
65
views
After installing Java 8, I configured environment variables. How can I make them work without restarting Windows?
I have set the environment variables correctly,
I also switched the Java environment variables version to 17, but the current system running cmd is still a Java 1.8 version. I need to let the ...
0
votes
0
answers
25
views
How do I make the terminal in VS Code automatically activate the conda environment of the file I'm in?
When I open a new terminal the env is Py base and not the conda virtual env of my file. I still have to activate it with conda activate.
In settings, it is already set: "python.terminal....
0
votes
0
answers
28
views
Why is my github token truncated when retrieved from config dict in GitHub Action (debug mode)?
I'm encountering a strange issue with a Python script running inside a GitHub Action where the secrets.GITHUB_TOKEN seems to get truncated after being stored in a configuration dictionary, but only ...
0
votes
1
answer
26
views
Using fnm on Windows CMD: "failed printing to stdout: The pipe is being closed" Error
I'm trying to set up Node.js using fnm on my Windows machine (using the Command Prompt). I installed fnm via winget and then installed Node.js version 22 with the following commands:
winget install ...
1
vote
1
answer
76
views
Node.JS: how do I set an environment variable in 1 file to be read all others?
I have a bunch of files that run various tests and return results to a log file.
I have helper functions that create and log file and add to it.
I want to dynamically name that log file, based off the ...
0
votes
1
answer
45
views
Dockerfile and container gets ENV from k8s Statefulset [closed]
I need to process the ENV from k8s Statefulset in the container before it starts up.
Dockerfile:
RUN echo CREDENTIALS: $CREDENTIALS
ARG user="${CREDENTIALS%/*}"
ARG password="${...
1
vote
1
answer
29
views
Gradle build fails after adding new dependency in Flutter [duplicate]
I tried adding the url_launcher plugin to my Flutter project. After adding the dependency and implementing it in my code, the Gradle build failed with an error similar to:
Could not create task 'xxx'. ...