首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法解析配置文件的Tmuxinator

无法解析配置文件的Tmuxinator
EN

Stack Overflow用户
提问于 2014-11-09 23:41:15
回答 1查看 2.3K关注 0票数 2

我用"brew卸载python“从我的系统中删除了Python,突然tmuxinator停止工作。我不知道这个问题是否与我删除Python有关。

当我输入~/.tmuxinator并运行tmuxinator start myapp时,我得到的唯一输出是Failed to parse config file. Please check your formatting.

下面是我的.zshrc (在从~/.bin/tmuxinator.zsh到源tmuxinator.zsh的末尾有一行):

代码语言:javascript
复制
export EDITOR="vim"

export PS1="%/$ "

# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="sunrise"

# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"

# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(osx git git-flow fabric groovy grails python)

# Aliases
alias github='cd ~/Desktop/Github'
alias l='ls'

# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install

alias rvm=$HOME/.rvm/bin/rvm
source $ZSH/oh-my-zsh.sh

# Add RVM to PATH for scripting
export PATH="$PATH:$HOME/.rvm/bin"

# Tmuxinator Source
source ~/.bin/tmuxinator.zsh

下面是我的问题的截图:

如上所述,不存在~/..bin/tmuxinator.szh。

如何才能使用myapp启动tmuxinator会话?

编辑:

我通过在我的myapp.yml文件中查找语法错误来解决我的问题(如下所示)。我在Sublime和Vim之间切换,Sublime的制表符等于四个空格,Vim的制表符只占用两个空格,从而导致Tmuxinator抛出一个错误。错误发生在底部的"Windows“部分。

~/.tmuxinator/myapp.yml

代码语言:javascript
复制
# ~/.tmuxinator/myapp.yml

name: myapp
root: ~/Desktop/myapp

# Optional tmux socket
# socket_name: foo

# Runs before everything. Use it to start daemons etc.
# pre: sudo /etc/rc.d/mysqld start

# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
# pre_window: rbenv shell 2.0.0-p247

# Pass command line options to tmux. Useful for specifying a different tmux.conf.
# tmux_options: -f ~/.tmux.mac.conf

# Change the command to call tmux.  This can be used by derivatives/wrappers like byobu.
# tmux_command: byobu

windows:
  - editor:
      layout: main-vertical
      panes:
        - vim
        - guard
  - zsh: 
  - vim: vim .
  - foreman: bundle exec foreman start
  - git: git pull
  - console: bundle exec rails console
  - server: bundle exec rails server
  - logs: tail -f log/development.log
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-11 05:23:10

原来tmuxinator试图解析的"config文件“实际上是~/.tmuxinator目录中的~/.tmuxinator文件。

我只是在文件的底部出现了一些语法错误(问题被编辑以显示原始的.yml文件),这些错误涉及到空间的缺乏,这导致了Tmuxinator解析器失败。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26834650

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档