Foros: 一般話題(質疑・要望等) (Thread #43611)

サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-26 21:17 by exp #86835)

サクラエディタ x64版を使っているのですが、2.4.2.3370以降
サクラ電卓 sakuraCalc.vbs Ver1.0 が使えなくなってしまいました。

数式を入力して Shift + Enter を押すと
「マクロ 0 (sakuraCalc.vbs) の実行に失敗しました」
と表示されます。

ご対応お願いします

Responder al #86835×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-26 21:42 by AC #86836)

マクロファイルが移動して見つからない場合にそのようなメッセージが出ると思いますが
exp さんの方で原因を推測することはできますか?

*マクロファイルの存在確認
*マクロフォルダ(共通設定)の場所確認

設定が正しく読み込めていなかったりするでしょうか。
Responder al #86835

Responder al #86836×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-26 21:55 by exp #86837)

早速のご回答ありがとうございます。

サクラ電卓以外にも Google検索 ac_001.js を使っていますが、
同様に実行出来ません。
マクロファイルは sakura.exe と同じフォルダに置いてあり、
共通設定のマクロの項目にも登録しています。

上の2つのマクロしか使っていないので、他のマクロでも
実行不可になるのかどうかは分かりませんが。

最近のバージョンだと 2.4.3369、2.4.3355 では実行出来ますが、
他のバージョンでは実行出来ません。

検証をお願いします。
Responder al #86836

Responder al #86837×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-26 23:11 by exp #86846)

ファイル構成は以下の通りで、最低限のファイルしか置いていません。
サクラ電卓の実行が成功した場合は sakuraCalc.ini が生成されます。

C:\<独自フォルダ>\sakura\sakura.exe
C:\<独自フォルダ>\sakura\sakura.ini
C:\<独自フォルダ>\sakura\ac_001.js
C:\<独自フォルダ>\sakura\sakuraCalc.vbs

先程更新された 2.4.2.3388 も使ってみましたが、実行出来ませんでした。
アンチウイルスは COMODO Internet Security Premium 12.2.2.7098 を
使っていますが、ウイルス検知関連機能を全て停止しても変わりません。

バージョンアップする際、sakura.exe 以外のファイル構成は全く変更せずに
使っていても症状が出る為、私には原因が推測出来ません。
Responder al #86836

Responder al #86846×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-27 00:03 by AC #86849)

詳細な報告で参考になります。

こちらでも 2.4.2.3379 をダウンロードして sakura.exe と同じフォルダに置いた
テキトーなマクロファイルを登録、実行してみたところ、普通に実行されました。

ですので、バージョンアップによって一切のマクロが実行できなくなったわけではなく、以前の設定が正しく読み込まれなくなったせいではないかと想像して、マクロ実行に失敗するバージョンでマクロ設定がどのように表示されるか確認をお願いした次第でした。
Responder al #86846

Responder al #86849×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-27 00:24 by AC #86850)

> 先程更新された 2.4.2.3388 も使ってみましたが、実行出来ませんでした。

GitHub を自分で使っていないと非常にわかりにくいと思いますが、3388 は第三者によって書かれた Pull Request によって駆動された生成物ですので、実行はおすすめしません。

未だ取り込まれていない、捨てられるかもしれない、海のものとも山のものとも知れないプログラムです。
Responder al #86846

Responder al #86850×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-27 00:36 by exp #86851)

3369 と 3388 で共通設定のマクロの項目に変化はありませんでしたが
ディレクトリの入力欄が「\」となっていた所に
「C:\<独自フォルダ>\sakura\」と入力すると実行出来るようになりました。
3355 や 3369 では実行出来ていたのが不思議ですが…
お手数をおかけして申し訳ありませんでした。
Responder al #86850

Responder al #86851×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-27 00:42 by AC #86852)

マクロフォルダなどの設定を exe からの相対パスに対応させる修正が以前になされたと記憶しています(未確認)。
ですのでこれは貴重なデグレ(機能退行)の報告だったと思います。
Responder al #86851

Responder al #86852×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-27 00:45 by AC #86853)

ありました。

「設定画面のファイル選択ダイアログで相対パスにできるときはする (svn:4160 upatchid:985 Moca)」
http://sakura.qp.land.to/?cmd=read&page=History%2F2.3.2.0
Responder al #86851

Responder al #86853×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-27 01:14 by AC #86854)

> 269 268 2021/01/23(土) 20:58:37.70ID:UBVVx7900
> 1.0.3358以降で実行出来なかった
https://egg.5ch.net/test/read.cgi/software/1587603412/268

と答えが書いてあるのですから

「exeと設定ファイルのパス取得関数をリファクタリングしてテストできるようにする #1512」
https://github.com/sakura-editor/sakura/pull/1512

の変更内容を調べればいいのではないでしょうか>誰?
Responder al #86851

Responder al #86854×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-01-27 19:32 by AC #86874)

> ディレクトリの入力欄が「\」となっていた所に
> 「C:\<独自フォルダ>\sakura\」と入力すると実行出来るようになりました。

これに関連してですが、マクロフォルダ設定が「\」となっているときに
ドライブルートにマクロファイルをコピーすると、マクロの実行に成功しました。

std::filesystem など、普通はそういう扱いでしょうね。
Responder al #86851

Responder al #86874×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar

Re: サクラ電卓 sakuraCalc.vbs Ver1.0 が使えません (2021-02-01 10:39 by berryzplus #86900)

Reply To Message #86835
> 数式を入力して Shift + Enter を押すと
> 「マクロ 0 (sakuraCalc.vbs) の実行に失敗しました」
> と表示されます。

アーカイブがリンク切れになっており、再現確認ができておりません。
http://sakura.qp.land.to/?Macro%2F%C5%EA%B9%C6%2F120
http://web.archive.org/web/20080525122511/http://www.aa.isas.ne.jp/v-tails/delphi/sakuracalc.html
http://web.archive.org/web/2/http://www.aa.isas.ne.jp/v-tails/delphi/sakuracalc.zip

昔は sakura.ini にバージョン互換性があったんですかね?
v2以降では考慮されていない認識です。
(過去、掲示板のトラシューでsakura.iniを消してやり直せな指示を見かけました。)

個人的には、相対パスを受け入れる入力欄に「\」といれたのにドライブルートと解釈されない実装のが異常だと思います。こういうケースを「異常じゃないよ」と説明するために「独自仕様」という言葉があります。

まぁ、そうは言っても、結局元に戻すんじゃないかなと思ってます。
いままで動いてた設定で使えなくなるのはダメだと思うので。
Responder al #86835

Responder al #86900×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Entrar