-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching Pull Requests Failed: Project Name Required #61
Comments
I am uncomfortable posting the logs as is since I am working in a work repository so I removed identifying info. Hopefully this can still be useful. [Debug 1636063835.116s] C:\Users\jmaggio.ssh\config: ENOENT: no such file or directory, open 'C:\Users\jmaggio.ssh\config' |
Its not able to find the repository which is open in VSCode in AzDO. Have you opened the correct repo in VSCode? Is there any special character in your repo name? The code figures out the repo name by looking into git remote fetchUrl. You can look at this fetchUrl using command |
That's weird. The repo name is only alphabetic characters no numbers or spaces. It's two words using PascalCase. The URL found using Edit: I can also confirm that following the url found using |
Weird, can you paste the URL in |
|
I think the casing is the problem. Can you create a new remote with URL containing the correct casing as it appears on AzDO portal by running |
I was wondering if that meant something! It works! I am now able to see the PRs. Would it be possible to make a change to get this working without manually needing to change the url? I might look into making a PR to fix that if I can figure it out later, but I've never done work on a VSCode extension before so it'd be new. |
➕ 1️⃣ Issue happens for my project as well: Project name contains spaces and the actual result is an error as was described above. Will be happy to help to fix it! |
@scripnichenko I have the exact same problem and hoping to get some helps. Could you share the steps you've done to address it? |
@ankitbko and @scripnichenko I am running into this issue as well, the project name has spaces and is capitalized for each word
I also tried Debug:
Current settings:
|
Finally got it to work. I had to reload the window anytime I make a change to the settings. SO testing different settings did not take until reload, but this is what ended up working:
|
Yeah, just had this issue. Project names with spaces need to be configured unencoded it seems. Would be nice for that to be documented in an FAQ or Known Issue or something. |
We have configured our local repos using SSH instead of HTTP and the extension doesn't seem to be able to parse the URLs correctly, so adding a new remote ("vscodepr") using HTTP and setting current output of
|
Issue Type: Bug
I have set the project name in both User and Workspace settings, but the error always says "A project name is required in order to reference a Git repository by name."
One weird thing is that the project name for my work has spaces so the URL project name is Something like "Company%20Name%20Applications." I tried both with "Company Name Applications" and with the space.
Extension version: 0.0.25
VS Code version: Code 1.61.2 (6cba118ac49a1b88332f312a8f67186f7f3c1643, 2021-10-19T14:57:20.575Z)
OS version: Windows_NT x64 10.0.18363
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: