How to use IDE macros?

已回答

I'm trying to use the IDE macros in RubyMine but they don't seem to work at all.

For example, I'm configuring a Shell Script from the Edit configurations, and in the `Script Options` section I put $FileDir$ and when the script runs it sends the string `$FileDir$` to the script, not the current file path.

Any ideas on how to use these?

评论操作 固定链接

Hello,

Currently they aren't supported in Shell script run configurations: https://youtrack.jetbrains.com/issue/IDEA-293079/Add-macros-support-for-script-path-script-options-in-Shell-Script-RC

Please follow the issue for updates.

0
评论操作 固定链接

Thanks Yaroslav, bummer!  I'm just trying to automatically run RubyCritic against the open file, can you suggest any ways to do it via the IDE?

0
评论操作 固定链接

Hello,

If it's a gem, then you can try using Gem Command run configuration:

https://www.jetbrains.com/help/ruby/run-debug-configuration-gem-command.html

0

请先登录再写评论。