280 questions
0
votes
0
answers
43
views
Why isnt CMake recognized by the command prompt when its in a path in my environment variables [duplicate]
I am trying to get CMake working with powershell but even though CMake is in my program files and added to both system paths and user paths in enviornment variables, powershell wont recognize CMake.
...
0
votes
2
answers
94
views
`conda --version` command not working in Powershell or WSL bash
I have Anaconda installed in Windows 11 under C:\Users\user\anaconda3. I also have WSL. I am trying to run conda --version in both Powershell and the WSL terminal and in both cases I am getting an ...
0
votes
3
answers
104
views
How can I use C# to check if a user has a minimum Python version installed and accessible to my code?
I am working on a C# program that has to run some Python code for one particular task. (The Python code is complex and was developed by another team. Reproducing its functionality in C# is not an ...
1
vote
0
answers
125
views
How to output files from Bazel tests to be used in Github Artifacts
I have tests made with Jest and Puppeteer under a Bazel configuration. I Have screenshots and html-pages and hopefully videos in the near future being saved to a file(s) during tests that have errors. ...
-2
votes
1
answer
163
views
How to fix the PathVariable is not working and throw 500 Error Server?
I'm coding Java Spring and I don't understand why when I use PathVariable in function retrieveTodoForUser to access this function, an Internal Server Error 500 occurs.
enter image description here
...
1
vote
2
answers
147
views
Computer can't find installed libraries
I use VSCode
Anytime I install a python library, I get this notification:
WARNING: The scripts auto-py-to-exe.exe and autopytoexe.exe are
installed in 'C:\Users\PC\AppData\Local\Packages\...
2
votes
2
answers
396
views
Using Spring's @RequestMapping with multiple endpoints
@RequestMapping(value = { "/abc/xyz/redirect",
"/abc/xyz/redirect/{refPath}",
"/abc/xyz/redirect/*" })
public String handleRequest (ServletRequest ...
1
vote
1
answer
1k
views
How to fix Windows system incorrectly assuming python.exe path?
I'm trying to run a pip installation on my Windows machine using the command:
pip install -r requirements.txt
But when I try to execute that command, I get the following error:
Fatal error in ...
0
votes
0
answers
67
views
Custom annotation for date validation in a pathVariable in the controller is working incorrectly
There is an annotation being used in a dto to validate a DateTime variable, which is working correctly, returning a 400. However, when I try to use this annotation in the controller, it returns an ...
0
votes
0
answers
67
views
Exception when using PreAuthorize annotation alongwith path-variables that contian special characters
Here is my set-up:
We have a spring-boot application 2.6.4.
It has a RestController class with a GET api endpoint as /v1/permissions/{appname}/users/{username}, where appname and username are path-...
0
votes
2
answers
2k
views
Spring boot PathVariable not passed getting 404 URL doesn't exists
While creating a GET endpoint in a Spring web application I have a path variable(annotated with @PathVariable) passed to my API.
If I don't pass any value on path, the controller responds with HTTP ...
0
votes
1
answer
76
views
Read path variable in Think PHP
I am using the format $pathVariable = $request->param('variableName/s', ''); to read path variable from ThinkPHP but am not successful. What is the right way to read path variable from URL?
3
votes
2
answers
6k
views
eas : The term 'eas' is not recognized as the name of a cmdlet, function, script file, or operable program - expo
every thing was working fine with development build until I edited some user variables mistakenly .
then all eas commands end with this error:
eas : The term 'eas' is not recognized as the name of a ...
0
votes
1
answer
2k
views
AWS API Gateway, lambda function with path parameter in python?
Does someone have an example of an API Gateway lambda function that receives a path parameter, that is written in python? Every example I can find is written in javascript, and doesn't quite connect ...
0
votes
1
answer
285
views
How to revert wrong setting of path variable LD_LIBRARY_PATH
I erroneously override the LD_LIBRARY_PATH variable on a Ubuntu 22.04 system when I only wanted to add a new path to the variable.
Now I am looking for a way to revert my mistake. I am afraid there ...
1
vote
2
answers
864
views
How do I create a temporary path within a PowerShell script?
Given the code below, how do I set a variable that I can use to call the 7z executable? The env:Path approach at the top works once but then the terminal must be reloaded or the command cannot be ...
2
votes
1
answer
176
views
Trying to run a clojure project on emacs but Java error: Cannot run program powershell.exe
I am trying to run a clojure jar file on emacs using cider and I get the error below:
ERROR:ERROR: Unhandled REPL handler exception processing messageUnhandled REPL handler exception processing ...
0
votes
1
answer
41
views
Finding specific folder within path, and add altered version to the %PATH% [duplicate]
I'm looking to find path with client_1 string, replace client_1 part with client_1\bin, and set PATH=%PATH%;%newpath%.
I've tried
@echo off
setlocal EnableDelayedExpansion
set newpath=
for %%a in (&...
0
votes
1
answer
714
views
Powershell Doesn't Identify Git Commands Even With Environment Variable
My Power Shell does not recognize the "git" command at all even after I have reinstalled my Windows 10 after deleting my environment variable and not even after I have reinstalled Git. The ...
1
vote
1
answer
1k
views
Forward path variables from API gateway to HTTP URI
I'm using an API gateway that acts as a proxy API between my client and a third-party API.
The third-party API accepts dynamic query param values that I need to forward from my proxy API.
So, I've set ...
3
votes
1
answer
10k
views
Flutter on Windows: "Unable to find git in your PATH" if terminal is not in admin mode
I eventually solved this issue (see here) but wanted to share it here so that more people see it.
Issue is that after installing Flutter on Windows, you try to run flutter doctor and get 'Unable to ...
0
votes
1
answer
223
views
Use of character ';' in delete API path variable value
Path variable = "476%3B"
In a delete API, in path variable value, the character ';' is included in Id and is encoded as '%3B'
The id is passed as a string and later on in the app, it is ...
2
votes
2
answers
4k
views
Flutter Unable to find git in your PATH (Windows)
I created a new user on my windows PC and can't get flutter to work on it.
Flutter and git are both installed in a shared folder (like C:\shared_programs\...).
I made sure that both users have full ...
0
votes
1
answer
697
views
Front slash(/) and special characters in rest url [duplicate]
Restful web services : GetMapping url has a variable which should be passed as a path variable but that variable contains front slash and special characters in it. Any suggestions on how to handle ...
0
votes
1
answer
2k
views
How to add path variables to fetch api in Javascript?
Im using mockapi for a very simple project. In order to change data, i have to send PUT request. I can send the request using PostMan like in the pictures below. And everything works perfect. But i ...
0
votes
1
answer
1k
views
Can't appear environment variables editor when edit Path (System environment variable) on Windows 11
I freshly install C/C++ compiler in my new window 11 laptop using MinGW Installer. and when i try add bin folder path to System environment path variable (System Environment Variable > Path) there ...
0
votes
0
answers
360
views
Restore the previous system path variable (windows)
a question regarding messing with Windows Path variable.
My situation is quite specific:
I was trying to install ffmpeg according to this tutorial https://www.geeksforgeeks.org/how-to-install-ffmpeg-...
4
votes
4
answers
4k
views
How can I tell if a specified folder is in my PATH using PowerShell?
How can I tell if a specified folder is in my PATH using PowerShell?
A function like this would be great:
function FolderIsInPATH($Path_to_directory) {
# If the directory is in PATH, return true, ...
0
votes
1
answer
80
views
Spring: What happens when request matches multiple RequestMapping values?
If I have two controllers:
@RestController
public class ContentController {
@GetMapping("/specialContent")
public Map<String, String> handleSpecialContent() {
Map<...
1
vote
0
answers
855
views
Dynamic Context path causes issue when using path variable in spring boot
I am trying to implement dynamic context path I have followed this [blog] (https://www.broadleafcommerce.com/blog/configuring-a-dynamic-context-path-in-spring-boot)
I am able to achieve the required ...
0
votes
1
answer
2k
views
Module not found error in Visual Studio Code despite the fact that I have just installed it
I want to run a python script with the cherrypy module. I use pip install cherrypy to install it and all looks ok. Then I click the "Run python file" button and I face the error ...
0
votes
1
answer
151
views
Discrepancy between `conda list` and importable python packages / libraries
Edited:
Issue:
I am experiencing a discrepancy between what Anaconda says is installed and what can actually be imported using Python.
I have installed in a virtual anaconda environment (gis) ...
1
vote
3
answers
12k
views
Messed up $PATH(i think) in zsh
When i try to do ls in the terminal, it says command not found.
Before I broke everything, the output of echo $PATH was something like this:
/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:...
0
votes
1
answer
1k
views
Mandatory Validation for pathVariable not working
Currently we are adding mandatory validation for pathVariable - having customized message in response.
When @PathVariable is removed, then it is giving 404 error and not going into any of the ...
0
votes
1
answer
902
views
"No Python at..." error after installing different version and changing the path variable
I use Windows 10. I was trying to pip install Vectorbt but the installation could not have been finished because there was an error when numba and llvmlite were suppose to be installed. I was using ...
1
vote
1
answer
8k
views
Path variable having special characters like # in Spring boot
I'm using Spring Boot 2.4.6. For delete APIs getting 405 method not found. My endpoint is like: beauty/v1/sites/addressTemplates/:templateId
Path variable: #@$%#
Can someone please suggest what can be ...
0
votes
1
answer
630
views
I have deleted my path variable in Environment variable how can I now add MinGw compiler
I have deleted my path variable in Environment variable how can I now add MinGw compiler.How can I now add path for MinGw compiler in my device .Pls Help....
1
vote
1
answer
130
views
Cant start angular project
I was having some problems with an angular project so i reinstalled nodejs and angular cli however now when i try to run
ng serve
i get this error:
enter image description here
now ive done the ...
2
votes
1
answer
1k
views
How can I specify which JDK nativescript should use
I have several JDKs installed on my Windows 10, including versions 8, 11 and 17. My system default is 17, since I want to use latest features in new programs.
I am trying nativescript, and trying to ...
3
votes
2
answers
961
views
How can I make spring MVC PathVariable more robust?
In PathVariable example below:
@GetMapping("/{id}")
SomeReturn get(@PathVariable Long id)
{
....
}
If I call this API like /api/100abc, will get a number format exception.
Is there ...
1
vote
1
answer
329
views
How to configure VSCode to find a third-party tool (e.g. stack, yamllint) if these tools are installed through anaconda?
Assuming that VSCode is installed and an anaconda environment is setup. The default conda environment contains language analysis and compilation tools like stack (for haskell) and yamllint (for yaml). ...
1
vote
2
answers
2k
views
Retrieve data from Path Variable and Insert to Model
i'm new in Java Springboot. i want inserting ID from Path Variable ("/id") to my model and save it to database.
i have Request Body
{
"firstName" : "John",
"...
8
votes
2
answers
29k
views
How can I change PATH variable in zsh?
I want to change my PATH variable in zsh.
Problem: I don't understand where in the .zshrc file I have to make modifications.
Normally, I would look for the assignment to the PATH variable and set the ...
3
votes
2
answers
8k
views
VS code terminal can't find AWS SAM even though windows terminal can
I installed AWS SAM from the msi installer from AWS for windows.
after running the installer, I ran sam --version in cmd and powershell.
PS C:\Users\dgupta> sam --version
SAM CLI, version 1.26.0
...
1
vote
1
answer
3k
views
how do I persistently remove from $PATH on macOS (Z Shell)
I used a command of the form
echo 'export PATH="..."' >> ~/.zshrc
As a result, the path has been added persistently. Now, I want to remove it. How do I do this? I know that there are ...
1
vote
1
answer
4k
views
GET request with Path Parameter in RestAssured API Testing
I have tested my API Through Postman
GET - https://url:8332/v1/agreement/:agreementId?agreementType=posted
If I use abouve url in postman I am getting result what I expected.
Where
https://url:8332 ...
1
vote
3
answers
8k
views
No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program
I know this has been asked several times but I can't seem to get rid of this error.
Setup:
I have installed java on ubuntu 20.04 with sudo apt install default-jre
echo $JAVA_HOME gives /usr/lib/jvm/...
1
vote
2
answers
4k
views
JPA Repository search by custom field
I am trying to get a list of the objects with the same field.
I have a model named Song, with the fields: name, genre, artist and id.
I read online about how to implement the method in the repository ...
1
vote
1
answer
926
views
How can I call Environment.GetEnvironmentVariable without losing the %PathVariableName% such as %SystemRoot%
Thanks to the posts like this and this, I am able to get the PATH env variable and modify it as I please.
However, once I call System.Environment.GetEnvironmentVariable(name, scope), the returned ...
0
votes
1
answer
1k
views
Spring boot getting (and editing) an entity with multiple path variables
I am in a very similar situation to the question here: Spring boot how to edit entity.
I have an "Item" entity for which I want to edit a number of attributes (possibly one, possibly all of ...