Mac OS X El Capitan(10.11.4)にarcachistの新しいコピーを/usr/local/phabricator/arcanist
にインストールしました。新規インストール(Mac OS X)でRocksDBでarcanistエラーが発生しました
I最初cd
/usr/local/phabricator/arcanist
にする場合とbin/arc
またはちょうどarc
のいずれかを実行します(私は私のPATH
に/usr/local/phabricator/arcanist/bin
を追加として)、すべての罰金です。私が試してみて、私のシステムで私のrocksdbディレクトリからarc lint
実行する場合しかし、その後、私は常に致命的なエラーを取得し、出力は次のようになります。
$ arc lint --trace
ARGV '/usr/local/phabricator/arcanist/bin/../scripts/arcanist.php' 'lint' '--trace'
LOAD Loaded "phutil" from "/usr/local/phabricator/libphutil/src".
LOAD Loaded "arcanist" from "/usr/local/phabricator/arcanist/src".
Config: Did not find user configuration at "/Users/aretter/.arcrc".
Config: Did not find system configuration at "/etc/arcconfig".
Working Copy: Reading .arcconfig from "/Users/aretter/code/rocksdb/.arcconfig".
Working Copy: Path "/Users/aretter/code/rocksdb" is part of `git` working copy "/Users/aretter/code/rocksdb".
Working Copy: Project root is at "/Users/aretter/code/rocksdb".
Config: Did not find local configuration at "/Users/aretter/code/rocksdb/.git/arc/config".
Loading phutil library from '/Users/aretter/code/rocksdb/arcanist_util'...
[2016-06-14 09:31:17] EXCEPTION: (PhutilMissingSymbolException) Failed to load class or interface 'ArcanistBaseWorkflow': the class or interface 'ArcanistBaseWorkflow' is not defined in the library map for any loaded phutil library.
If you are not a developer, this almost always means that a library is out of date. For example, you may have upgraded `phabricator` without upgrading `libphutil`, or vice versa. It might also mean that you need to restart Apache or PHP-FPM. Make sure all libraries are up to date and all services have been restarted.
If you are a developer and this symbol was recently added or moved, your library map may need to be rebuilt. You can rebuild the map by running 'arc liberate'. For more information, see:
https://secure.phabricator.com/book/phabcontrib/article/adding_new_classes/ at [<phutil>/src/__phutil_library_init__.php:25]
arcanist(head=master, ref.master=c13e5a629535), arcanist_util(head=java-wb-save-restore-points, ref.master=fda098461b3f, ref.java-wb-save-restore-points=dd6d2e75d836), phutil(head=master, ref.master=fb1e159d3640)
#0 __phutil_autoload(string)
#1 spl_autoload_call(string) called at [<arcanist_util>/config/FacebookArcanistConfiguration.php:7]
#2 include_once(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:226]
#3 PhutilBootloader::executeInclude(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:216]
#4 PhutilBootloader::loadLibrarySource(string, string) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:381]
#5 PhutilSymbolLoader::loadSymbol(array) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:256]
#6 PhutilSymbolLoader::selectAndLoadSymbols() called at [<phutil>/src/__phutil_library_init__.php:22]
#7 __phutil_autoload(string)
#8 spl_autoload_call(string) called at [<arcanist>/scripts/arcanist.php:186]
私はそれを再インストールしてもarc liberate
を実行しようとしたが、どちらもしていることに注意してください問題を修正しました。
私のシステムで何が問題なのか誰かに教えてもらえますか?
私はまた私のarcanistは確かに正しいとあるGitリポジトリをチェックして最新:
$ cd /usr/local/phabricator/arcanist
$ git remote -v
origin github.com/phacility/arcanist.git (fetch)
origin github.com/phacility/arcanist.git (push)
$ git status
On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean
$ git pull
Already up-to-date.
私もこの機構を介して再インストールしてみました:
$ cd /usr/local/phabricator
$ rm -rf arcanist libphutil
$ git clone https://github.com/phacility/libphutil.git
$ git clone https://github.com/phacility/arcanist.git
私のrocksdbディレクトリの中で 'arc lint'を実行すると、実際にはエラーが発生しているようです。上のトレースロギングから、「/ user/aretter/code/rocksdb/arcanist_util''からphutilライブラリをロードしています」というメッセージが表示されるので、この問題はRocksDB Arcanistの設定で間違っていると思います - https://github.com/facebook/rocksdb/tree/master/arcanist_util。 – adamretter
あなたの答えをありがとう、私は正しいパスに私を入れた。私は今、Arcanistの最新版である 'arcanist_util'モジュールを修正するためにRocksDBにPRを送りました - https://github.com/facebook/rocksdb/pull/1168 – adamretter