question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning in package.json when specifying icon without https repository

See original GitHub issue
  • VSCode Version: 1.42.1
  • OS Version: Windows 10 (Windows_NT x64 10.0.16299)
  • vsce version: 1.73.0

This is basically the issue described in #30434, but the warning message does not seem to be “true” in my case. I am opening this issue because that one is closed.

I am building an extension for company internal use only. My source code repository is not available over https, but the icon works fine when I’ve package the extension as a VSIX.

Here’s a screenshot of the warning: image

I’ll admit it disappointed me when I thought I could not have an icon in my extension. My 1.0.0 version did not have an icon because of the warning message. For 1.0.1, I decided to try it anyway, and it worked.

Maybe, it’s true for extensions published on the marketplace? If so, it may be better to indicate such in the message. Maybe change the text to something like this: “An icon requires a repository with HTTPS protocol to be specified in this package.json, when publishing to the marketplace”?

Steps to Reproduce:

  1. Add a relative icon reference to an extension package.json
  2. Do not have a repository that is available over https. (Mine is a directory on a shared drive.)
  3. See the path to the icon get orange squiggles under it with the hover text “An icon requires a repository with HTTPS protocol to be specified in this package.json.”

Does this issue occur when all extensions are disabled?: Yes

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
zimmskicommented, Sep 12, 2021

@chrmarti can this issue please be reopend. The warning seems to be invalid, e.g. https://github.com/marp-team/marp-vscode/blob/main/package.json#L37 is doing a relative path and including their icons into the extension. The marketplace shows the icon https://marketplace.visualstudio.com/items?itemName=marp-team.marp-vscode

I looked at other open source extensions too that are on the current top list.

0reactions
saqibRafiquecommented, Aug 24, 2022

I’ve added webpack process image rule but no luck 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set icon or logo for extension in vscode - Stack Overflow
But when i added the icon in package.json. It gave me a wired error saying "HTTPS protocol is not specified". I fixed it...
Read more >
Extension Manifest - Visual Studio Code
Every Visual Studio Code extension needs a manifest file package.json at the root of the extension directory structure. Fields. Name, Required, Type, Details ......
Read more >
Semver explained - why is there a caret (^) in my package.json?
When executing npm install on a fresh checkout without existing node_modules, everything works nicely. The package.json file is evaluated, and satisfying ...
Read more >
Options - TypeDoc
All command line arguments that are passed in without a flag will be parsed as ... If not specified TypeDoc will look for...
Read more >
Dependency Scanning - GitLab Documentation
Dependency Scanning automatically detects the languages used in the repository. All analyzers matching the detected languages are run. There is usually no need ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found