[Logo] JForum - Powering Communities
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

Eclipse-Juno: Problem when doing a File-Search on the project JForum RSS feed
Forum Index » Developer Forum
Author Message
bender


Joined: 2013/10/25
Messages: 11
Offline
I loaded the current trunk into my eclipse juno installation. Everything works fine, except when I want to search an expression by a file search (Ctrl-H) using a filter which includes htm files. At the end of the search always an error box appears with following message:

Problems encountered during text search.
File 'jforum/src/main/resources/templates/default/bookmark_insert.htm' has been skipped, problem while reading: ('${encoding}').
${encoding}
File 'jforum/src/main/resources/templates/default/admin/header.htm' has been skipped, problem while reading: ('${encoding}').
${encoding}


I examined these files, the culprit seems to be the meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=${encoding}" />
in it. I even cannot open the file in eclipse itself (complaining the same). But I also found many other htm files which contain the same or a similar meta tag and which I can open without problems in eclipse and which do not seem to have the problem while searching.

Any ideas how to solve this are welcome!

andowson


Joined: 2011/6/30
Messages: 252
Offline
You can check the trunk/.settings/org.eclipse.core.resources.prefs and see if there is an encoding setting for the html template file.

#Fri Nov 18 23:23:51 CST 2011

eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/main/resources/templates/default/admin/admin_index.htm=UTF-8
encoding//src/main/resources/templates/default/admin/admin_welcome.htm=UTF-8
encoding//src/main/resources/templates/default/admin/menu.htm=UTF-8
encoding//src/main/resources/templates/default/header.htm=UTF-8
encoding//src/main/resources/templates/default/install.htm=UTF-8
encoding//src/main/resources/templates/default/install_check_info.htm=UTF-8
encoding//src/main/resources/templates/default/install_error.htm=UTF-8
encoding//src/main/resources/templates/default/install_finished.htm=UTF-8
encoding//src/main/resources/templates/default/list_smilies.htm=UTF-8
encoding//src/main/resources/templates/default/pm_finduser.htm=UTF-8
encoding//src/main/resources/templates/default/pm_review_message.htm=UTF-8
encoding//src/main/resources/templates/default/topic_review.htm=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8
bender


Joined: 2013/10/25
Messages: 11
Offline
Thanks. This helped. Thanks a lot.

I added the culprit files to this settings. Maybe you should update the file in trunk:

#Fri Nov 18 23:23:51 CST 2011
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/main/resources/templates/default/admin/admin_index.htm=UTF-8
encoding//src/main/resources/templates/default/admin/admin_welcome.htm=UTF-8
encoding//src/main/resources/templates/default/admin/header.htm=UTF-8
encoding//src/main/resources/templates/default/admin/menu.htm=UTF-8
encoding//src/main/resources/templates/default/bookmark_insert.htm=UTF-8
encoding//src/main/resources/templates/default/header.htm=UTF-8
encoding//src/main/resources/templates/default/install.htm=UTF-8
encoding//src/main/resources/templates/default/install_check_info.htm=UTF-8
encoding//src/main/resources/templates/default/install_error.htm=UTF-8
encoding//src/main/resources/templates/default/install_finished.htm=UTF-8
encoding//src/main/resources/templates/default/list_smilies.htm=UTF-8
encoding//src/main/resources/templates/default/pm_finduser.htm=UTF-8
encoding//src/main/resources/templates/default/pm_review_message.htm=UTF-8
encoding//src/main/resources/templates/default/topic_review.htm=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8
 
Forum Index » Developer Forum
Go to:   
Mobile view
Powered by JForum 2.8.3 © 2024 JForum Team • Maintained by Andowson Chang and Ulf Dittmer