Comments (10)
Is this an ADO repo or a repo from some other Git provider (GitHub, etc.)?
Can you also go to the Output pane (Ctrl+Shift+U), select the "Azure Pipelines" log, and paste its contents here?
from azure-pipelines-vscode.
It is indeed an internal MS ADO repo.
That said, it seems something has changed in the background as I no longer get the Select Azure DevOps Organization prompt when opening an yml pipeline file. Without the prompt popping up, I don't know how to attempt to select an ADO Organization to get you the requested output logs as the option does not seem to be within the command palette.
The extension still seems to be the same version:
Whereas, VS Code is a newer version:
from azure-pipelines-vscode.
Interesting, if you're in an ADO repo, the detection should happen silently :) (because it can figure out what organization it needs from the Git URL!).
Since you're not seeing this anymore, that's a good sign it was able to perform the schema detection properly this time. You can test this out by seeing if internal tasks have warning squigglies (bad) or descriptions on hover (good).
I don't think we can investigate this further at the moment, so I'm going to close this - but if you start seeing the prompt again, or the squigglies are showing up, we can re-open :).
from azure-pipelines-vscode.
Since you're not seeing this anymore, that's a good sign it was able to perform the schema detection properly this time. You can test this out by seeing if internal tasks have warning squigglies (bad) or descriptions on hover (good).
@50Wliu , clarifying question about this statement:
Are you saying that I would not be seeing these yellow squiggles if the extension had correctly determined the ADO organization? Both of these pipelines work as intended when ran as the tasks are currently available within the organization.
EDIT:
I left the first yml file open, closed VS Code, and reopened VS Code which caused the following to be outputted:
from azure-pipelines-vscode.
I got the popup notification again today. Nothing seems to be in the Azure Pipelines output log though:
Still same VSCode and extension versions as noted here: #538 (comment)
from azure-pipelines-vscode.
@VanessaRussell, we released a new version this week that should have much-improved logging; would you mind trying again? Sorry for the hassle 😅.
from azure-pipelines-vscode.
From the Azure Pipelines output:
(9/21/2023, 2:38:00 PM) [SchemaDetection] Detecting schema for workspace folder NotificationSystem
(9/21/2023, 2:38:06 PM) [SchemaDetection] Found remote URL for NotificationSystem: ScrubbedByVanessa
(9/21/2023, 2:38:06 PM) [SchemaDetection] NotificationSystem is an Azure repo
(9/21/2023, 2:38:07 PM) [SchemaDetection] Error auto-detecting schema for workspace folder NotificationSystem: TypeError: Cannot read properties of undefined (reading 'authenticatedUser')
(9/21/2023, 2:38:07 PM) [SchemaDetection] Using hardcoded schema for workspace folder NotificationSystem: /c:/Users/VanessaAlias/.vscode/extensions/ms-azure-devops.azure-pipelines-1.228.0/service-schema.json
(9/21/2023, 2:38:07 PM) [ExtensionActivated] Extension has been activated!
(9/21/2023, 2:38:10 PM) [SchemaDetection] Detecting schema for workspace folder NotificationSystem
(9/21/2023, 2:38:11 PM) [SchemaDetection] Found remote URL for NotificationSystem: ScrubbedByVanessa
(9/21/2023, 2:38:11 PM) [SchemaDetection] NotificationSystem is an Azure repo
(9/21/2023, 2:38:11 PM) [SchemaDetection] Error auto-detecting schema for workspace folder NotificationSystem: TypeError: Cannot read properties of undefined (reading 'authenticatedUser')
(9/21/2023, 2:38:11 PM) [SchemaDetection] Using hardcoded schema for workspace folder NotificationSystem: /c:/Users/VanessaAlias/.vscode/extensions/ms-azure-devops.azure-pipelines-1.228.0/service-schema.json
From the Azure Pipelines Language output:
getSchemaForResource
resource: file:///c%3A/Repos/NotificationSystem/.pipelines/templates/pipelines/BuildProjectTemplate.yml
this.customSchemaProvider: yes
getSchemaForResource
resource: file:///c%3A/Repos/NotificationSystem/.pipelines/templates/pipelines/BuildProjectTemplate.yml
this.customSchemaProvider: yes
loadSchema
getSchemaForResource
resource: file:///c%3A/Repos/NotificationSystem/.pipelines/templates/pipelines/BuildProjectTemplate.yml
this.customSchemaProvider: yes
loadSchema
getSchemaForResource
resource: file:///c%3A/Repos/NotificationSystem/.pipelines/templates/pipelines/BuildProjectTemplate.yml
this.customSchemaProvider: yes
loadSchema
I tried open/close VS Code a few times and didn't get the popup asking to select the ADO Repo which makes sense since the logs indicate that it is identifying it correctly.
from azure-pipelines-vscode.
(9/21/2023, 2:38:07 PM) [SchemaDetection] Error auto-detecting schema for workspace folder NotificationSystem: TypeError: Cannot read properties of undefined (reading 'authenticatedUser')
Woo, something to go off of! Thanks, I'll see if I can make any progress on why you're hitting an error.
On a hunch...what happens if you navigate to https://app.vssps.visualstudio.com/_apis/connectiondata in your browser? You should get a JSON blob back with - crucially - an authenticatedUser
object.
from azure-pipelines-vscode.
I get this JSON blob. I've removed the values to post publicly. Feel free to reach out on Teams if the values matter 🙂
{
"authenticatedUser": {
"id": "",
"descriptor": "",
"subjectDescriptor": "",
"providerDisplayName": "",
"isActive": true,
"properties": {
"Account": {
"$type": "",
"$value": ""
}
},
"resourceVersion": 0,
"metaTypeId": 0
},
"authorizedUser": {
"id": "",
"descriptor": "",
"subjectDescriptor": "",
"providerDisplayName": "",
"isActive": true,
"properties": {
"Account": {
"$type": "",
"$value": ""
}
},
"resourceVersion": 0,
"metaTypeId": 0
},
"instanceId": "",
"deploymentId": "",
"deploymentType": "",
"locationServiceData": {
"serviceOwner": "",
"defaultAccessMappingMoniker": "",
"lastChangeId": 0,
"lastChangeId64": 0
}
}
from azure-pipelines-vscode.
I have the same issue. I'm also able to retrieve the authenticatedUser
object.
(9/29/2023, 11:57:17 AM) [SchemaDetection] Detecting schema for workspace folder myRepo
(9/29/2023, 11:57:18 AM) [SchemaDetection] Found remote URL for myRepo: https://myADOurl/org/project/_git/myRepo
(9/29/2023, 11:57:18 AM) [SchemaDetection] myRepo has no remote URL or is not an Azure repo
(9/29/2023, 11:57:18 AM) [SchemaDetection] Prompting for organization for myRepo
(9/29/2023, 11:57:18 AM) [SchemaDetection] Using hardcoded schema for workspace folder myRepo: /c:/Users/myUser/.vscode/extensions/ms-azure-devops.azure-pipelines-1.228.0/service-schema.json
Version: 1.82.2 (user setup)
Commit: abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
Date: 2023-09-14T05:55:25.390Z
Electron: 25.8.1
ElectronBuildId: 23779380
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.22000
Extension version v1.228.0
from azure-pipelines-vscode.
Related Issues (20)
- Variable only templates reporting missing property "stages"
- Azure Pipelines schema error HOT 1
- Support validation of fully qualified task names (Especially for tasks installed as extensions). HOT 1
- Syntax validation PowerShell@2 HOT 1
- Feature Request: Disable Indenting within Inline Scripts
- Command Text: `Configure Pipeline` to `Sign In` HOT 2
- [Bug] Azure Pipelines Language server crashed 5 times in the last 3 minutes HOT 2
- How do I make this work with `NODE_EXTRA_CA_CERTS`? HOT 3
- Github Enterprise Server - Couldn't get repository details HOT 3
- Disable "Sign in to Azure..." notification HOT 5
- Icons Not Showing For Associated Files HOT 3
- images not showing when embed in Md file HOT 1
- warn only for missing fields when required in context HOT 1
- Simulate template expansion locally
- Azure pipeline language is not picked automatically for files that have additional words in file name. HOT 1
- Incorrect type. Expected "string | array | object(Azure Pipelines)" when using default value in boolean parameter HOT 2
- schema: maxParallel/parallel should be integer, not string
- File icon not being displayed HOT 1
- schema: `#/definitions/any` doesn't include all types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-vscode.