anchor.diff:                                          else
                                               let projectStr =
                                                   if not settings.AddToCurrentProject then "" else
  -                                                let path = Globals.atom.workspace.getActiveTextEditor().buffer.file.path
  -                                                " project \"" + path + "\""
  +                                                try
  +                                                    let path = Globals.atom.workspace.getActiveTextEditor().buffer.file.path
  +                                                    " project \"" + path + "\""
  +                                                with
  +                                                | _ ->
  +                                                    notice true "Paket error" ".*proj file needs to be open"
  +                                                    ""
   
                                               "update nuget " + name + projectStr |> spawnPaket :> obj)
   
  
positive.code:                                         else
                                              let projectStr =
                                                  if not settings.AddToCurrentProject then "" else
                                                  let path = Globals.atom.workspace.getActiveTextEditor().buffer.file.path
                                                  " project \"" + path + "\""
  
                                              "remove nuget " + name + projectStr |> spawnPaket :> obj)
  
  
negative.code:                                         else
                                              let projectStr =
                                                  if not settings.AddToCurrentProject then "" else
                                                  try
                                                      let path = Globals.atom.workspace.getActiveTextEditor().buffer.file.path
                                                      " project \"" + path + "\""
                                                  with
                                                  | _ ->
                                                      notice true "Paket error" ".*proj file needs to be open"
                                                      ""
  
                                              "add nuget " + name + projectStr |> spawnPaket :> obj)
  
  