我开始学习本地反应,然而,当我用atom和nuclide包打开一个项目时,它给了我一条消息,说明在PATH中找不到流二进制文件是不可能的
从我跑过的终端开始:
$ which flow
# Outputs: ~/.nvm/versions/node/v6.2.2/bin/flow
$ echo $PATH | tr -s ":" "\n"
# Outputs: /home/myuser/.nvm/versions/node/v6.2.2/bin ... and other paths
那么,为什么原子不能找到它的任何线索呢?
答案 0 :(得分:2)
我已经解决了我的问题,似乎核素有一个设置来添加流二进制文件的路径。要改变它,你可以
def self.send_notifications
expiry_time = Time.now + 59
while (Time.now < expiry_time)
Rails.logger.info "Triggered NotificationChecker"
if RUN_SCHEDULER == "true" || RUN_SCHEDULER == true
Rails.logger.info "Running Performer"
Note.uncached do
notes = Note.unprocessed.uncached
if notes.present?
notes.each do |note|
RealtimeNotificationChecker.performer(note.user_id,"note_created")
note_hash = {}
note_hash[:note_id] = note.id
url = URI.parse(PROCESS_NOTE_API_URL)
resp, data = Net::HTTP.post_form(url, note_hash)
end
end
end
end
sleep 20 #seconds
end
end
以查找Flow可执行文件所在的位置并复制并粘贴该路径。which flow
,并将Nuclide-flow
的路径更改为终端的Path to Flow executable
值。