I'm using Netbeans for web application projects. There I use smarty with some custom tags. Now the syntax checker of Netbeans throws syntax errors and mark all files with these tags as files with errors.
Are there options to add my own tag rules to the syntax checker to get a correct result or to ignore these explicit error type?
I'm using Netbeans 10.0.
Thanks a lot,
Chris
Related
I recently brought an existing maven project into Eclipse 2020-03. The project contains a jetty folder which itself contains a file:
modules/somefile.mod
The *.mod file pattern seems to be associated with the DTD content type, and this association is "locked". Because my file is not a DTD, it fails the validation.
Eclipse's Bugzilla lists a 7-year old bug, Bug 420688, which describes this problem, but the workarounds there don't seem to work for me.
The validation error I get is
The markup declarations contained or pointed to by the document type declaration must be well-formed.
Is there a way to
Disable the validation of this particular file, or preferably
Disassociate it from the DTD content type?
Thanks for any advice or direction.
I have started using Play 2.1.0 and I would like to be able to use NetBeans to develop Play Java applications. I'm not really interested in using the IDE to run or test the applications since I can do that from the command line (not that I would mind if I could also have IDE support for that) but I would like to be able to open and edit my project in NetBeans without getting annoying errors where they don't really exist. I am currently using NetBeans 7.3 so I first tried to use the nbplay plugin, however it wouldn't recognise all my imports or managed classes produced by Play. I then tried to import the project as Eclipse project, as described in this and this question, which worked better, but while working my way through one of Play's Java tutorials I am still getting the following errors which make it really annoying to work with NetBeans:
I get an "Expected an operand but found error" error in main.scala.html where #content is used, although I have instructed the IDE to disable HTML error checking for this file.
In my model classes I get errors because the classes do not declare a no-argument constructor and have public variables for persistent attributes.
Any other errors I have not come across yet?
Has anyone managed to make Play 2.1.0 work with NetBeans without getting any of the above errors? I could probably live with the first one (although it would really annoy me) but the rest are showstoppers.
Be aware that the Java hints can be enable or disable in Tools -> Options -> Editor -> Hints -> Select java language.
NetBeans now has Native Support for Play Framework 2.3.x and above: http://nbpleasureplugin.com/documentation/installation.html No Command line needed at all.
The most important features are:
Create, run, debug and test your app directly in the IDE
Routes files support (Syntax coloring, Syntax Error highlighting, Autocompletion, Code navigation, Show implementation code (without navigate to source), Hint to Create method when it doesn’t exist, formatting, Mark occurrences)
Scala Template support (Syntax coloring, Syntax Error highlighting, Autocompletion, Code navigation, Show implementation code (without navigate to source), formatting, Mark occurrences)
application.conf support (Syntax coloring, autocompletion with documentation, formatting, mark occurrences)
Dependency Management (Search on Maven and add them to build.sbt)
2 Code Coverage too.s supported (jacoco and scoverage)
Test Single File
SBT file minimal support
Configurations (Formatting indentation, syntax coloring, port to use, activator parameters, etc.)
*Support play version from 2.3.x and above
Note: I created this plugin.
Also I see this could help you: How do I use Play Framework 2.0 in netbeans
I want to use groovy 2.0 in Netbeans 7.1.2 because I want to use the static type checking.
By default that Netbeans uses the library Groovy 1.6.4 - groovy-all.jar
How do I get Netbeans to use Groovy 2.0.
I tried to just delete the groovy 1.6.4- groovy-all.jar library and add the groovy2.0-groovy-all.jar.
I tried to go to tools -> libraries -> groovy 1.6.4 and replace the jar with the groovy 2.0 jar there.
Both result in the same error:
The includeAntRuntime=false option is not compatible with fork=false
/root/NetBeansProjects/myProject/nbproject/build-impl.xml:606: The following error occurred while executing this line:
/root/NetBeansProjects/myProject/nbproject/groovy-build.xml:23: Compilation Failed
NetBeans 7.2 came out today, and that ups internal Groovy support to v1.8.6
I don't think you can just drop Groovy 2.0 into NetBeans and expect it to support it (so much has changed)
However, this doesn't stop you using your own Ant/Gradle (there's a work in progress Gradle plugin here) build script and using this to manage your dependencies. But NetBeans won't know anything about the type checking, so you will probably have to ignore some stuff that it says is an error (but which isn't)
Just replace the netbeans-7.2.1/groovy/modules/ext/groovy-all.jar for the new one, but respecting the name groovy-all.jar, and the compilations will be done using groovy 2.
Test it executing :
println GroovySystem.getVersion()
I am learning Apache Tapestry, but can't get Netbeans' autocomplete to work.
I am using namespace
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
But Netbean show error on mouse over "No library found for this namespace".
And the auto complete feature won't work. I want Netbeans to show me list of Tapestry components when I type
<t:
I have also copied tapestry taglib from https://github.com/downloads/exanpe/tapestry-tldgen/t5.2.5.tld to my project's
src\META-INF
but doesn't work.
Though tried facelet-taglib from Netbeans bug page and it works fine, but not the custom one.
I also added the schema to DTD & XML of Netbeans but no joy.
Any idea on how I can get it to work?
kind regards,
Zerone
Would somebody be able to walk me through the proper way of adding the latest JFXtras package to a project in Netbeans? I'm not sure what I'm doing wrong... whether it be importing incorrectly, implementing incorrectly, or just simply downloading the wrong jar files. I'm using JavaFX 1.3 and NetBeans 6.9.
I've been able to get NetBeans to recognize the components in the library (I type XCustomNode, and it prompts me to import from org.jfxtras.scene.) Upon trying to build/run, however, I get a compiler error such as the following:
Note: An internal error has occurred in the OpenJFX compiler. Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates. Include in your report:
- the following diagnostics
- file C:\Documents and Settings\me\Local Settings\Temp\javafx_err_4220242024568343160.txt
- and if possible, the source file which triggered this problem. Thank you. C:\Documents and Settings\me\My Documents\NetBeansProjects\project\src\input\NumberWithLabelNode.fx:24: cannot access com.sun.javafx.runtime.location.ObjectVariable class file for com.sun.javafx.runtime.location.ObjectVariable not found public class NumberWithLabelNode extends XCustomNode { 1 error
I don't think I really need to go report this to Openjfx... my gut says I'm missing a file.
Not sure what version of JFXtras you're using, but I've had much better success with version 0.7rc alongside JavaFX 1.3.
In addition to making sure Common and Controls jars in in your library, I've had to add miglayout-3.7.jar and swing-worker-1.2.jar as well, available on the project downloads page
The problem you are facing is incorrect version of library. You are trying to use JFXtras compiled with JavaFX 1.2.* and your project is using JavaFX 1.3.. As you can learn on official site, JavaFX is not backward compatible yet. Get newer library or rebuild sources with JavaFX 1.3.