IntelliJ does not export to exe - intellij-idea

I have seen many guides where artifacts menu contains Native bundle field. But I don't have it. Moreover, after building the project, the EXE file doesn't appear in any folder. See pic

The option is there but the bottom panel hides it. Please resize the panel and you get the option back. There is similar report on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-183544

Related

vb.net add icon to form title bar

This is a Visual studio 2019 WinForms project on a Windows 7 64 bit machine
I know how to use the Properties to add an icon but if the icon is to be embedded with the EXE file that is not the process to use. I have also created a folder named Resources and place the icon in the folder not sure that is the best idea based on the EXE might not include the folder
Here is what I have tried Right Click Project > Properties > Application > Icon ComboBox > Browse
Select the icon which is named s.ico and is 32 X 32
I also tried to cut and paste from the solution explore to the Debug folder BIG MISTAKE
Now I have no Release folder ?
The question is this the correct process ?
Do I still need code to make this icon show on all the project forms ?
One form does not have a title bar
OK I am adding to this Question
I created a test project with only a form. textbox and button
I added a icon to the button and it shows when the project is run
For some reason when I added the icon to the button a Resource Folder was created that contained the cat.ico I DID NOT CREATE the FOLDER( See New Screen Shot )
Now I followed the steps to add an icon to the titlebar NO LUCK
Here is where I have no idea what is going on
If I right click on the two icon files One says the Build Action is "content"
If I right click on the other icon the Build Action is "None"
I see the option to select Build Action "Embedded Resource"
Question What does Build Action do?
And if "Embedded Resource" is selected does that mean the file is included in the EXE?
New Screen Shot
I am not sure this is a good way to solve the question
WHY because I do not understand how the code works BUT IT WORKS
Here is what I did I Right Click Project > Properties > Application > Icon ComboBox > Browse Select the icon
The icon in question is in the project > See the Screen Shot
Then I added this 7 year old code I found on SO
Stackoverflow Link
Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath)
OK So now someone please explain how this works ?
Based on my limited knowledge I would say this will include the icon in the EXE file
(Project > Properties > Application > Icon ComboBox > Browse
Select the icon)
this indeed is the right way to select an icon for your project.
The icon will be found after that in your project folder not the debug folder.
After debugging your Project it will be embedded with it and the EXE file icon will be changed to the selected Icon.
No need to add it to the resources.
Finally, to set the same icon for all your forms, take a look at this topic:
Set same icon for all my Forms
or of course, you could change it manually one by one in the (properties) menu, in (Icon), then browse to your Ico File.

JavaFX exe wont run

I have recently finished building a mini-app using IntelliJ IDEA in javaFx. It is my first time using this ide and language, so I am having difficulties manufacturing an exe file. I watched all sorts of youtube videos and different methods.
It does generate an exe file but when I click it, nothing happens.
Any idea?
I do know that with IntelliJ Ultimate edition you can build down with an EXE file.
There are a couple things you need to double check.
First, is that in your project structure under artifacts, you have the "Type:" set to JavaFx Application(which is on the top right of the window).
Secondly, switch to the Java FX tab and make sure Application class is set to your main class.
Thirdly, Select "all" under Native bundle: which is located towards the bottom of the window.
Lastly, Select the Output Layout tab and move all your available elements to output root then click on the module of your application and look at the settings that appear at the bottom. "Make sure that main class setting is in fact the main class to your application.
Side note: make sure you delete your artifacts build folder just to start from a clean slate. Also make sure your Environment variables are set to the system path correctly.

List of all errors in project in CLion

CLion 2016.2 helpfully detects potential errors in the file you're editing, which can be seen in the validation bar to the right of the code.
That's just a single file though, is there a way (like a tool window) to get a list of all such warnings in the whole project, or specific parts of it?
Bonus points if it also lists warnings and errors from the compiler, though that's less important, because the compiler output already includes any it found.
Yes, it is possible. The feature you are looking for is called the Inspector.
Do: Find Action... | Inspect Code. It will show a pop-up that will allow you to select the scope: file, whole project, custom, and the Inspection profile (you can choose the type of errors you want to see):
After clicking OK, this is an example of the output, that you can navigate with the mouse or with keyboard shortcuts:
In version 2017.2, I have it under Code | Inspect Code....
You can also right click a folder in Project view and select Inspect Code... there to be able to check only that folder.

Using a 3rd party control

Please excuse the noobness that is probably about to follow...
I'm making an vb.net 2010 app which needs to have a calendar system in which the user can add appointments and events etc.
I've downloaded the source for a control which looks promising (http://www.codeproject.com/Articles/10840/Another-Month-Calendar) but I have no idea how to add this in to my project. I've googled for help on adding the control but have had no luck.
If I right click on my toolbox, go 'choose items...' and try and add it there, it tells me it couldnt be opened.
Any help is appreciated!
Well you've downloaded the source code.
Place the source code in a specific location on your pc and then compile it 9If your planning to use this control in your own project then compile it in release mode. Assuming that there are no compile errors close visual studio and then open up the project of your own that you want to use this control in.
Right click on the general tab in the toolbox and click choose items. Using the bowse button in the choose items dialog navigate to the folder in which you placed the source code for the control you want to use.
Now locate the 'Bin' folder and in that locate the 'release' folder. Inside that you will see a dll (named presumably something like MothCalendar.dll. Select that dll and then click add and OK (Button sequence will vary according to vs version). The control should then appear in your toolbox under the general tab and you should then be able to drag it onto your forms for use in your project.

Preference bundle icon for theos tweak

possibly an easy answer to this.?
I have a theos built tweak with a preference bundle displayed in the settings app.
This allows me to activate / deactivate my tweak.
My question is, how do you put an icon on the main settings app list along side the title.
I can put an icon by the switch, but thats it.
I have not included any code as the preference bundle is working, it just doesn't have an icon.
The default way to do this is to drag your icon named icon.png into /Resources/.
If you want, you can rename it by editing icon entry in your /layout/Library/PreferenceLoader/Preferences/<yourbundlename>.plist file.