2017年4月21日金曜日

nclでループが閉じていない時に出るエラー

nclで止まる時、errorを吐いてもよく分からない時がある。
それが

$ ncl hoge.ncl  
Copyright (C) 1995-2015 - All Rights Reserved 
University Corporation for Atmospheric Research 
NCAR Command Language Version 6.3.0 
The use of this software is governed by a License Agreement. 
See http://www.ncl.ucar.edu/ for more details. 
fatal:syntax error: line ××× in file hoge.ncl before or near \n  
end 
---^ 

fatal:error in statement 
fatal:syntax error: line -1 before or near   

^

fatal:error in statement 

これ。
大抵の場合(というか今のところ)、ループが閉じていない時に出るerrorなので、ループ文を確認すること。

0 件のコメント:

コメントを投稿

githubの基本用語

ある仕事でGithubをちゃんと使うようになって、いろんな基本用語(知識)があやふやなことに気付いたのでメモ。 リポジトリ ファイルやディレクトリの状態を保存する場所。 手元の端末 にある「ローカルリポジトリ」とサーバなどネットワーク上にある「リモートリポジトリ」の...