TypeError: Cannot read property 'versions' of null
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- cli
Research direction
Reproduce the publish command shown in the report, then inspect _build/exec/extension/_lib/publish.js around line 406 and the validation flow reached after publishing. Trace which response is null and determine the expected behavior when validation data is unavailable; done means publishing no longer throws this TypeError and the reported workflow completes or shows a useful error.
Written by the indexing model from the issue text.
Description
Getting the above error when trying to publish an extension that I created.
Full stack trace below:
/tmp $ ./scripts/320-tfx-extension-publish.sh
TFX - Publish
TFS Cross Platform Command Line Interface v0.7.11
Copyright Microsoft Corporation
2020-01-27T08:12:30.874Z : Publishing /tmp/test-decorator.vsix
Checking if this extension is already published
2020-01-27T08:12:30.885Z : Read vsix as zip... Size (bytes): 1951
2020-01-27T08:12:30.904Z : Files in the zip: [Content_Types].xml, extension.vsomanifest, manifests/, manifests/decorator-post-job-clean.yaml, manifests/decorator-pre-job-init.yaml, extension.vsixmanifest
It isn't, create a new extension.
== Extension Validation In Progress ==
This should take only a few seconds, but in some cases may take a bit longer. You can choose to exit (Ctrl-C) if you don't want to wait. To get the validation status, you may run the command below. If you don't want TFX to wait for validation, use the --no-wait-validation parameter. This extension will be available after validation is successful.
tfx extension isvalid --publisher jenkins-test-publisher --extension-id test-decorator --version 0.0.1 --service-url https://marketplace.visualstudio.com/ --token <your PAT>
2020-01-27T08:12:45.545Z : TypeError: Cannot read property 'versions' of null
2020-01-27T08:12:45.545Z : at /usr/lib/node_modules/tfx-cli/_build/exec/extension/_lib/publish.js:406:40
2020-01-27T08:12:45.545Z : at processTicksAndRejections (internal/process/task_queues.js:94:5)
error: TypeError: Cannot read property 'versions' of null
I'm not sure what versions property that I did not set.
I was able to previously publish the same extension, (PS: i'm actually publishing not as version 0.0.1, i had to redact that)
I tried updating the tfx-cli using npm i --global tfx-cli still with the same result.
- Dominant language
- TypeScript
- Stars
- 386
- Forks
- 142
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 7
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/tfs-cli
-
Area: tfx-cli DevOps enhancement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Area: tfx-cli triage
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Area: tfx-cli triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Area: tfx-cli triage
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Area: tfx-cli triage
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in microsoft/tfs-cli
Similar issues
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
joinmarket-webui/jam#1496 · 1 comment ·
-
Tech
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
opencrvs/opencrvs-core#13865 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
linagora/twake-calendar-frontend#1377 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EclipseFdn/open-vsx.org#13385 · 1 comment ·