2013-10-26 147 views
0

我试着这样做:符号链接到webstorm,不工作

sudo ln -s "/Applications/WebStorm.app/Contents/MacOS/webide" /bin/webstorm 

,然后,如果我运行它,它抛出

013-10-26 15:40:56.191 webstorm[12210:1f03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString hasPrefix:]: nil argument' 
*** First throw call stack: 
(
    0 CoreFoundation      0x00007fff895cc41c __exceptionPreprocess + 172 
    1 libobjc.A.dylib      0x00007fff863eae75 objc_exception_throw + 43 
    2 CoreFoundation      0x00007fff895cc2cc +[NSException raise:format:] + 204 
    3 CoreFoundation      0x00007fff894e572a -[__NSCFString hasPrefix:] + 90 
    4 webstorm       0x0000000100001f03 satisfies + 435 
    5 webstorm       0x000000010000245d findMatchingVm + 1213 
    6 webstorm       0x0000000100003832 -[Launcher launch] + 98 
    7 Foundation       0x00007fff8fdf170b __NSThread__main__ + 1318 
    8 libsystem_pthread.dylib    0x00007fff847bd899 _pthread_body + 138 
    9 libsystem_pthread.dylib    0x00007fff847bd72a _pthread_struct_init + 0 
    10 libsystem_pthread.dylib    0x00007fff847c1fc9 thread_start + 13 
) 
libc++abi.dylib: terminating with uncaught exception of type NSException 

所以,我怎么从一开始webstorm终奌站?

ps。有趣的是,如果我运行它直接运行

"/Applications/WebStorm.app/Contents/MacOS/webide" 

,但我喜欢的东西比

回答

5

短哦......我做错了......有一个在Webstorm一个选项...“工具 - >创建命令行启动器“ 它很好用。我喜欢这个IDE。 “JetBrains” - 你们真棒!

0

代码不期望从符号链接运行。一种错误,但我猜是一个晦涩的错误。你可以把它放在PATH上(或者添加一个别名,但这不是解决这个问题的普通方法)。这里是如何把它放在你的PATH - 我想,这可能仍然会遇到同样的错误。所以先尝试一下 - 如果有效,请将其添加到您的$HOME/.bashrc文件中。

+0

更简单的解决方法是..检查我自己的答案 – Agzam