No icon for addon created with jpm - firefox-addon-sdk

I can't seem to get my addon icon to show up when I use jpm. The relevant items in package.json are
"icon": "icon.png",
"icon64": "icon64.png",
and when I unpack the extension, I see them in install.rdf as
<em:iconURL>icon.png</em:iconURL>
<em:icon64URL>icon64.png</em:icon64URL>
They are 48x48 and 64x64px png files, respectively.
Both of those files are in the root directory of the extension. If I read the docs correctly, I shouldn't even have to specify those names, as they are the default.
I don't see any extension icon in the Addons-manager. What am I doing wrong?

This is a known issue with jpm, and I just updated that bug report asking for an update on what we can do about it. It's a mystery to me why it doesn't work as-is.

it's a bug.
If you're working on jpm 1.0.1, the only way it works is:
"icon": "resource://#youraddonname/icon.png",
rename your icon as "icon". Don't know why it works that way..

For new jpm tool, you can use like this:
"icon :" "resource://<ADDONID>/data/icon.png"
Note: In cfx you have id that is some things like jid1-O1iNqbs7ifwqvA but in new jpm tool , we dont have any id, instead the name field use instead of #jetpack...
for example for an old cfx addon with id of jid1-O1iNqbs7ifwqvA we must do like this
"id": "jid1-O1iNqbs7ifwqvA#jetpack",
"icon": "resource://jid1-O1iNqbs7ifwqvA-at-jetpack/data/icon.png"
also you can add icons for menu bar, addon page, open menu Menu like below:
"icons":{
"16":"./data/icon-16.png",
"32":"./data/icon-32.png",
"64":"./data/icon-64.png",
"128":"./data/icon-128.png",
"256":"./data/icon-256.png",
"512":"./data/icon-512.png"
},
useful Links:
Learn Make Package.json
file
JPM Manual

Related

Files in Folder named "templates" don't apply colors and suggest in VisualStudioCode

If I name the folder "templates" or "template", the files in the folder don't apply colors or suggest in VisualStudio Code.
1st image shows when I named the folder "templates", and 2nd one shows when I named the folder "foo" (flutter).
I'm not sure but this happens maybe because of a extension that I added?
Please tell me how can I avoid this.
This is my setting of files.associations:
As indicated by the asker in the comments, the issue is due to file associations. Check your settings.json file to see if you have anything set in the "files.associations" setting that could be causing this. Otherwise, try disabling extensions that aren't needed to see if they are related to the issue. You can also change what file association is being used by clicking the lanugage indicator on the bottom right of the screen that has a "Select Language Mode" hover message. The same action can be done by using the command palette and using the "Change Language Mode" command.

How to implement dark mode in BlueJ using Github link

I am new to programming and have been using the IDE BlueJ. I wanted to change to dark mode using the code given in this GitHub link:
https://github.com/t-ye/bluej-dark-theme
The instructions there say to "Replace path/to/BlueJ/lib/stylesheets with the stylesheets in this project". I'm not really sure how to do that. I've tried searching for files within my Mac Finder, but haven't found anything. I'm assuming this is a pretty easy thing to do because the instructions on the Github don't say much, but I'm just not sure how to proceed. Sorry if it's a dumb question!
Thanks :)
First off locate the blueJ application in finder, and then right click(or control+click), and click "Show Package Contents", then navigate to Contents/Resources/Java/stylesheets, then look for a css file named "java-colors.css". You can then either replace the file as a whole with a predefined darkmode css file or manually edit the colours to your liking.

How to sort files by type in folder view of Visual Studio Code

Using Visual Studio Code, how can I sort files by type when I open folder view?
To sort the files of the explorer view by type, add the following option to your user settings (settings.json):
"explorer.sortOrder": "type"
This feature is available since vscode release 1.15
search "explorer" in settings page and you can change the control of sorting order there.
Seems that from version 1.67 there are new values for this setting, for example, to support file nesting like this one:
"explorer.sortOrder": "foldersNestsFiles"
There does not appear to be a way to specify a "full extension" to sort by though:
app.component.css
grid.component.css
app.component.html
grid.component.html
app.component.ts
grid.component.ts
app.model.ts
grid.model.ts

(Xcode 6) - Code completion not work (UIKit, Foundation...)

I need help with Xcode 6.
It only happens with the project I'm working with. For the other one, code suggestion works.
What's wrong with my project?
The answer was to delete ~/Library/Developer/Xcode/DerivedData/ModuleCache (while Xcode is closed)
I have been researching the same issue on StackOverflow and here are what most threads suggest: delete Derived Data folder files (or maybe just the files relevant to your troublesome project!). It worked for me hence this answer. Details below:
Fix manually by deleting all the files in ~/Library/Developer/Xcode/DerivedData
Note: If Library folder is new to you, follow this CultOfMac article:
Library access on.
Open a Finder window and then navigate to the Home folder. That’s the one represented by the cute little house icon over in the sidebar. If you don’t see it, click on something like the Desktop or Documents folder, and then Command-click on the title bar of the window. You’ll get a drop-down menu that shows the file path of the current folder, which–if you’ve picked a folder from your Home directory–will show the Home folder somewhere in the list. Click on it to go to the Home folder.
Now, once you’re there, hit Command-J to bring up the View Options panel. You’ll see a checkbox to “Show Library Folder” somewhere in that panel, depending on the view your Finder window is in. Simply check it to show your User account’s Library folder. Now you can go in there and mess around to your heart’s content.
Note: Some StackOverflow members suggested pressing 'Escape' key or Command and + keys after the dot (.), others suggested typing a white space (control+space bar). However, your post seems to suggest it's project-specific (works for the other project) so it may prove useful to try different approaches. Hope this helps.
Swift files will NOT have code completion for UI classes (e.g. UIImage, UIDevice) unless there is an "import UIKit" at the top of the file.

Sigplus and Aidanews2

I have problem with Aidanews2 and Sigplus gallery plugin.
My problem is that, in article there are sigplus gallery added like {gallery}mygallery{/gallery}. So the aidanews only shows the plain text {gallery}mygallery{/gallery}, but not gallery link.
I have set "Strip Plugins" in aidanews setting to "no", but it still wont work. Any options to get it work?
The problem is that Joomla does not automatically run plugins within a module. The "Strip Plugins" option is supposed to be used to strip out plugin code so it doesn't show up like it is in your case.
In order to make it work, you are going to have to change the the view for the module and have it run any plugins before outputting the content. You can get a pretty good idea of the code you need to add here - http://www.alltogetherasawhole.org/group/developers/forum/topics/running-joomla-content-plugins