본문 바로가기

Template Language/freemarker

freemarker : Found substring, expecting one of 오류

이클립스에서 보면 스크립트 잘못됬을 경우에 나타나는 빨간 X동그라미가 뜨면서 나를 불편하게 만든다. 내용을 보면 다음과 같다.

Found substring, expecting one of:  is_date,  last,  root,  j_string,  contains,  is_hash,  long,  float,  ends_with,  namespace,  matches,  time,  values,  seq_last_index_of,  uncap_first,  byte,  is_transform,  web_safe,  groups,  seq_contains,  is_macro,  index_of,  word_list,  int,  is_method,  eval,  parent,  xml,  number,  capitalize,  if_exists,  rtf,  node_type,  double,  is_directive,  url,  size,  default,  is_boolean,  split,  node_name,  is_enumerable,  seq_index_of,  is_sequence,  sort,  is_node,  sort_by,  left_pad,  cap_first,  interpret,  children,  node_namespace,  chop_linebreak,  date,  short,  last_index_of,  is_collection,  ancestors,  length,  trim,  datetime,  is_string,  reverse,  keys,  upper_case,  js_string,  has_content,  right_pad,  replace,  is_hash_ex,  is_number,  new,  is_indexable,  lower_case,  string,  exists,  html,  first,  starts_with

이상한 것은 빌드하면 동작은 잘 된다는 것이다. 그래서 구글링을 해보니, 버젼을 확인해보란다. 그러고 보니, 참고한 프리마커 레퍼런스 버젼이 최신 버젼인듯 하여 가지고 있는 freemarker.jar를 열어 보았다.
압축 파일 안에  freemarker 디렉토리 안에 보면 version.properties파일이 있어서 메모장으로 열어 보았더니 "version.properties,v 1.21.2.13"라고 써있다. 구버젼인게 틀림 없다. 프리마커 사이트에서 보니, 거기는 2.3버전을 다루고 있었다. 안되면 버젼도 확인해보자.

참고: http://freemarker.624813.n4.nabble.com/substring-builting-broken-td624937.html 

'Template Language > freemarker' 카테고리의 다른 글

숫자 랜덤으로 생성  (0) 2015.04.01
이클립스 Kepler에 플러그인 설치  (0) 2014.02.06