How to use clang-format with Netbeans.
I need to run clang-format when the currently edited file is saved.
thanks for your answers.
Related
I am working on the selenium test framework and for this, I had to integrate an executable file into my project (chromedriver).
But there is an icon with a question mark on the file in IntelliJ. The file type is not recognized.
I’m on Linux ubuntu, my browser is chrome.
What did I do wrong?
chromedriver is an executable. IntelliJ can't handle this file since it's not a source file, but that doesn't mean you did anything wrong. You don't need to edit this file, just transparently use it.
I am using netbeans IDE for development. I want to check my code using cppcheck. Can any one tell me , is cppcheck plugin available for netbeans. If yes how to do that..?
Not exactly. There's an open bug for this functionality and the start of a module.
See https://netbeans.org/bugzilla/show_bug.cgi?id=201680 and https://github.com/johngull/nb-cppcheck
You could always add a custom makefile target that calls cppcheck. Maybe cppcheck's output will be something that NetBeans can recognize and provide hyperlinks to the source lines in the output window.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Are there any gradle plugins for WiX which are available to the public?
By searching the web, I only found some references to the artifactory server of echocat.org where some maven wix plugin is referenced. But the files stored there seem to be non-public since a username/password is required for viewing and downloading. So I could not check if these maven plugin might also be used within a gradle build process.
You can try the SetupBuilder Gradle plugin. We are working on a Gradle plugin that will create setups for Windows, OSX and Linux. It use the WiX Toolset on Windows to build a *.msi setup file from the settings in the Gradle script. And other tools on the other platforms.
Edit: In the meantime the plugin has a stable version 1.5 and can be used in production.
There is a new tool being developed: jpackage - and it uses WiX for building MSI packages for Windows
If your project is build using Gradle then you can easily use the Badass jlink plugin: https://github.com/beryx/badass-jlink-plugin
to build an installer / package using jpackage with a bundled JVM
Here's an article how to build an app image using OpenJDK 11 and using OpenJDK 14 with jpackage only for building the installer / package:
https://walczak.it/blog/distributing-javafx-desktop-applications-without-requiring-jvm-using-jlink-and-jpackage
I have not been able to find any either; it doesn't appear they exist. I need to use WiX as part of our build process as well.
My plan is to download the WiX distribution as a dependency, extract it and then create Exec tasks to run candle.exe and light.exe directly.
From the research a co-worker has done, these tools are stand-alone so we should be able to run them right from where ever we extract them in the build directory. I'll let you know how it goes and post updates here with examples as I get something working.
If we start using more functionality in WiX, I will probably move my work into an open-source gradle-wix-plugin.
Try the javafx plugin for JDK 8 to JDK 10.
https://github.com/FibreFoX/javafx-gradle-plugin
Otherwise, I make an Exec task to run the packager tool included in the JDK. It will use WiX to produce a .msi file.
For Java 8,9,10 use javapackager
For Java 11 your out of luck - have Java 10 installed just for the javapackager command
For Java 12 will have a jpackage replacement
Check out the org.beryx.jlink plugin.
It relies on jpackager, which uses WiX for Windows builds.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
It would be great to have something like intellisense or code auto-complete for php/js/jquery..
I'm using Windows, and I've tried only NetBeans so far, can you suggest another all-in-one IDE ?
Thanks in advance, best regards.
Eclipse for PHP with aptana plugin works great for me. I had some trouble getting it to work, so I listed up all the steps to take.
Install Eclipse for PHP: http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliossr1
Install Aptana 2 as Eclipse plugin: You do this by opening eclipse and going to Help -> Install new software and add this link: http://d3lq98emif3szr.cloudfront.net/tools/studio/plugin/install/studio/2.0.5.1278522500/
Then select Aptana Studio, next, next and restart Eclipse.
Install JQuery support: do this by creating a temporary new default web project (File -> New -> Project -> Web (the first one) -> Default Web Project), Choose a name, Click Next, Click Install Javascript Libraries at the bottom of the window, Expand Javascript Libraries, select JQuery Support and click Install. Then Next, next and restart Eclipse
Change the default Javascript editor to Aptana JS Editor: In eclipse, go to windows -> preferences -> general -> editors -> file associations, click *.js in the first list, then click Aptana JS Editor in the second one, and finaly click Default to make this your default Javascript Editor
Enable JQuery in the Aptana JS Editor: In Eclipse, go to windows -> preferences -> aptana -> editors -> javascript -> code assist, check JQuery 1.3, and finally click OK.
Now, all of your js-files (no mather if they are in PHP-project or any other project) will have JQuery auto-complete and documentation popups. If you would like to enable JQuery support for other file types (like *.html, *.tpl,...) do again as described in step 4, but instead of *.js, just select (or add) the desired filetype, and then make Aptana JS Editor the default. The only problem I have found is that, if you enable Aptana JS Editor for *.php, the php-editor doesn't work very good. You can work around this by either putting all your javascript in a JS-file (which is actually good practice), or you can enable the Aptana JS Editor for php everytime you want to edit some inline javascript, and just change it back to the default Javascript editor when you are done.
Netbeans has autocompletion for PHP, HTML, javascript and Jquery
phpDesigner 7 has all of the features you're looking for. It has built-in HTML, CSS, JS, PHP editor. Debugging tools, code completion, syntax highlighting, code checking etc, also supports popular JS frameworks. It's commercial but you can use trial version and see it yourself.
The best free editor for HTML/CSS/Jquery/PHP is Eclipse
The best commerical editor for HTML/CSS/Jquery/PHP is PHPStorm
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I recently started a JavaFX project, and I'd like to use Maven as my compiler/deployment tool.
Is there a good tutorial or plugin to integrate JavaFX and Maven?
Starting with Java 7u9 I think JavaFX is shipped together with Java SE runtime and the rest, so it makes it pretty easy to create a Maven-based JavaFX project.
Here is what you do (assuming you have latest Java SE 7 runtime environment):
Go to directory where your JRE libs are installed: cd "/c/Program
Files/Java/jre7/lib"
Find what is the version of the JavaFX by reading the javafx.properties file. cat javafx.properties will produce something like: javafx.runtime.version=2.2.3
Now you are ready to install the JavaFX runtime package to Maven: mvn install:install-file -Dfile=jfxrt.jar -DgroupId=com.oracle -DartifactId=javafx -Dpackaging=jar -Dversion=2.2.3
Finally, create a simple Maven project, in say NetBeans, open your pom.xml file and add the following dependency:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>javafx</artifactId>
<version>2.2.3</version>
</dependency>
Once you save the pom.xml you can continue using your typical Maven workflow.
Please note I used the MSYS (http://www.mingw.org) environment on Windows in the examples above in the case you get confused. If you prefer Windows CMD it would be very much similar. I just do not feel comfortable without BASH and GNU tools such as sed, grep, etc...
This helped me a lot:
Blog Entry
In the beginning of the Blog Entry the author mentions another great Article that can be found here...:
Another Blog
The main "magic" is getting "settings.xml" right...
Afterwards...it is not that difficult.
I released a new version of the FEST JavaFX Compiler Maven Plug-in. This new version supports compilation of test sources. For more details please visit http://alexruiz.developerblogs.com/?p=1197
There is a maven plugin developped by an user of javafx.
See this mailling post :
http://mail.openjdk.java.net/pipermail/openjfx-dev/2012-October/003969.html
and the github site :
https://github.com/zonski/javafx-maven-plugin
Alex Ruiz had a really good post on this recently and released a Maven plugin that should help you:
http://alexruiz.developerblogs.com/?p=725