Netbeans 7.4 doesn't recognise PHP short tag - netbeans

I recently updated Netbeans to 7.4 version and I actually get plenty of "errors": all the code included in short php tag is not parsed and considered almost like comment (I guess).
Does anyone knows how to fix that?
thanks

Ctrl-1 to open your Project window
Right-click on your project and click on Properties
Enable Allow short tags (<?)
Press Ok

Maybe you want to uncheck this option.
Option >> Editor >> Uncheck Giving Space After Short Php Tag
Settings ScreenShot

Related

Eclipse Content Assist Showing Same Options Everywhere

I am using the latest version of Eclipse (4.3) and every time I go to use the dot operator it shows the same options every single time. Here is what it shows.
As you can see it only displays things such as "create new object" which does not make any sense for an import. Can anyone explain why this is happening and show me how to get it back to normal?
You can check and activate the available autocompletion suggestion providers via Window > Preferences, Java > Editor > Content Assist > Advanced.

Eclipse problem

In Eclipse, I no longer have the function that would sort of auto complete my statement. Such as if I typed in "Integer." and then a list of available methods would show up and I would be able to pick it. How do you activate this function?
Active your code assist option in Windows/Preferences/ and just type code assist..
In your preferences, (Window->Preferences->Java->Editor-Content Assist) have you enabled "Auto activation"? If so, what is the delay set there? Also look into the Advanced section and see whether there are any proposals checked.
window/preference, type content assist, click Java/Editor/Content Assist.then check the checkbox under Auto Activation in the bottom,right side of the preference window.and you may also set the Aoto Activation triggers.
hope it's useful.
If it was before and just gone, then try to clean your project.
Had this problem after installing eclipse 4.2.2.
It looks like the Preferences->Java->Editor->Content Assist->Advanced tab no longer has "Java Proposals (Task Focussed)" in version 4.2.2 of eclipse, which is the one I previously had checked.
Version 4.2.2 does have a "Java Proposals" checkbox (unchecked in my fresh installation, using a previous workspace), checking that box restores the auto completion popup.

NetBeans. Disable error checking underline

How to disable error checking in NetBeans 6.9.1?
It is very annoying to have red line in the source code.
This is similar to NetBeans - Turn off - wavy red underlines - How?, but I want to disable underlines at all, not only when typing.
(It incorrectly parses PHP sources and omits syntax errors.)
Netbeans has a vast array of settings but this might do it. Try changing the drop down labelled "Wave Underlined" to "None":
Update:
Since I don't do PHP development I wasn't originally aware of the PHP plugin for Netbeans. You can find it listed in the plugins (Tools > Plugins) for Netbeans and should provide a much better environment for PHP work, with, I'm assuming, better PHP parsing and syntax highligting.
I would just click on the hint on the left side by the line numbers, it should create a pop-up, while that's still up click on the hint again. Now another pop-up will be there asking if you want to turn off the error check for either that single file, or for all files. Choose for that file, b/c it should be off by default.
I have no 6.9 at hands, but in 7.x (and believe so, for some time)
go to Options->Editor->Hints-> and uncheck
[ ] CSS (all those rules together)
[ ] HTML Validator (ditto)
Did the trick for me, when working with proprietary template files, 'coincidentally' named .html ...

How to let Eclipse accept the canvas tag?

I installed the Aptana plugin in my Eclipse, and I use canvas tag in my html file.
I find that the Eclipse can't recognize the canvas tag, it highlight my canvas tags, and display follow msg:
< canvas > is not recognized
How can I fix this problem? thx in advance.
This is most likely coming from the Tidy HTML validator packaged with Aptana's version of Eclipse. If you open the preferences for your HTML browser within Aptana, you can add a regular expression to filter the validation errors.
This can be done by going to the Window > Preferences dialog window. Then, expand Aptana > HTML and select 'Validation'.
The filter would probably look like this:
.*<canvas> is not recognized.*
The specific rule under the Aptana>Editors>HTML>Validation filter is
.*<\s*canvas\s*> is not recognized.*
Doing something more generic like .* is not recognized.* lets any Bad Tag in
The answer, in clear terms, is to go to the HTML>Validation view under preferences as Malaxeur said (for Aptana2 on OSX it was Aptana Studio>Preferences, then Aptana>Editors>HTML>Validation), and create a new rule that resembles the following.
.* is not recognized.*
that's what worked for me. how or why it works, i can't explain.
The error will disappear if using the HTML5 doctype and a more recent version of Eclipse. I'm running Eclipse IDE for Java EE Developers (Build id: 20110218-0911) and do not have this issue.
I think it's already fixed in the current Aptana 3 beta. But in Aptana 2 it's still a problem.
To allow not all, but multiple HTML5 Tags you could do it with a filter rule like that:
<(nav|header|section|article|canvas)> is not recognized.
Of course there are some more tags to consider. Just add the ones you need.

Eclipse Search Menus disabled randomly

I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with Ctrl+H, I am able to access the search functionality. Does anyone know why this happens? Has it been fixed in Eclipse 3.4?
window > close all perspective works for me.
Using Eclipse 4.3(!) this happened to me after doing a case-sensitive search.
Window -> Close All Perspectives didn't fix it and neither did restarting Eclipse using -clean. While messing with the search box, I discovered that simply clicking to a previous search entry allowed me to edit it and search again! Clicking back to the case-sensitive search grayed the option out again.
So before you reset anything in your workspace, try pulling up an older search entry using the Down Arrow.
I think this answer is what you all need to solve the issue on all versions.
I am using RAD 8 and I have also faced this problem than I removed org.eclipse.search directory in (workspace currently using) workspace/metadata/plugins folder then restart the eclipse.
That's all.
I don't have an exact answer. I will recommend that you try to correlate the disablement with which perspective is active. Likewise, which view is active. I have been using 3.4 and not experienced this issue.
Darn! I have that problem too -- in Eclipse 3.4.2.
Seems to be related to Navigator and Project Explorer views:
- Switch to Debug perspective: Search menu items are there.
- Switch to Java or Java EE perspective: Search menu items still there.
- Click on a project in Navigator or Project Explorer: Search menu items all DISABLED.
(Curse! I use search in Selected Resources a lot! )-:
Hmmm... It may slso depend on the file type currently open in the editor. (Like Java vs xml.)
Still present in Eclipse 3.5.2 -- and for the first time really sticky.
I checked out the "close all opened files and open any other file afterwards" answer and that brought back the Search menu items. Additionally, if you were lucky and have the Search result view open, than indeed there is this little link "Open search dialog".
By the way, additionally lots of other project-related menu items seem to be greyed out also together with this, and they did not reanimate :-( But I did not really check out if these are only items for which it is useful and planned to be greyed out in this situation.
I'm using RAD 7.5.1 which runs on Eclipse 3.4 and I get this problem frustratingly often. It doesn't matter which perspective or view I'm in, or which editor I have open.
Restarting RAD usually clears it up, but because that's such a colossal pain, I found that you can get around it in the Search View, there is a link; "Start a search from the search dialog" which will bring up the search dialog.
This isn't a great workaround because the link only shows if you have no search history. To do another search, you'll have to clear your search history in the view.
A late comment for anyone getting bitten by this, but I found "eclipse -clean" fixed it => this does a cleanup of the workspace before starting
Thanks http://letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/ for the tip, after I guessed my workspace might be corrupt.
Before search, check you may choose scope in empty Working set. Most Search menu disables Search button when you choose it. And mine, too :)
window > close all perspectives worked for me too.
But if you are just looking for a text search in the project you could press Ctrl+Alt+G on a marked text
I couldn't get it to work even when restarting Eclipse.
Here's what worked for me: Closing all open files and opening a different file. The different file happened to be .java, but not sure if that had anything to do with it.
I get this problem from time to time.
In the past I've fixed by starting eclipse with the -clean option.
Once when that didn't work I created a new workspace.
I followed these instructions for those two solutions.
The clean option didn't work for me today and I found this thread because I didn't want to create a new workspace. The closing all files and reopening one file did work however.
I had this issue also in eclipse 3.6.2: Helios Service Release 1.
Closed all the editor windows, and the search has been enabled.
Switching to another perspective, then back, works quickly for me.
I've faced similar issue in Ctrl+H "File Search" tab. The "Search" and "Replace" button was grayed out (disabled). The solution is fill the "File name patterns" text box (for eg, *.py). May be this is by design!
I have this problem with MyEclipse 7 (eclipse 3.4) under Debian Lenny. Perspective doesn't seem to matter. I get around it with the shortcut Ctrl+H but I was hoping for a better way.
Just had this problem in Eclipse Neon 3. It is a very common problem in RAD. I could find using in the console, then switch back to the source and search. RAD would disable the find/search options per source file open. This is very frustrating.
I had this problem too. It appeared when I installed the m2eclipse plugin.
I had not found a solution, but you can use Ctrl+H shortcut instead.
And you can navigate between tabs with Ctrl+PgDown or Ctrl+PgUp keys.
I've uninstalled the following pluings and it worked.
Maven integration
PMD
eclipse checkstyle plugin
EclEmma (coverage)
I don't know which of those cause the problem. To uninstall a plugin: Help -> Software Updates...-> "Installed Software" tab.