Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

警告やエラーの行がズレる問題 #1189

Open
kujirahand opened this issue Apr 17, 2022 · 0 comments
Open

警告やエラーの行がズレる問題 #1189

kujirahand opened this issue Apr 17, 2022 · 0 comments

Comments

@kujirahand
Copy link
Owner

https://nadesi.com/cgi/kaizen3/index.php?m=thread&threadid=31
より

改行コードがCR+LFの場合、見た目の行と警告・エラーの行がズレる

・再現方法
windowsのメモ帳に改行を10回いれて10行目に「エラー発生」を書く
プログラムをコピーして貯蔵庫のエディタに貼り付けして実行

見た目のエラー発生は10行目
[実行時エラー]main.nako3(5行目): エラー『』が発生しました。
→実行時エラーは5行目

10行目のエラー発生を消しての代わりに「未定義を戻す」にして実行
[警告]main.nako3(7行目): ユーザ関数からundefinedが返されています
→警告は7行目

・備考
エラーはCR+LFが2個ごとに+1行でカウント
警告は1~5行目のCR+LFは+1行でカウント、その後は2個ごとに+1行
webkit版のmain.nako3でも発生する

・バージョン
 貯蔵庫でバージョンを変えながら試したところ
 貯蔵庫v3.2.35 大丈夫
 貯蔵庫v3.2.36 ズレる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant