question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nonexisting target error

See original GitHub issue

I’m using the latest version (1.11.1) of DotBot and my current setup looks like the following:

~/.dotfiles
    dotbot
    install
    install.conf.yaml

My install file:

#!/usr/bin/env bash

set -e

CONFIG="install.conf.yaml"
DOTBOT_DIR="dotbot"

DOTBOT_BIN="bin/dotbot"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

cd "${BASEDIR}"
git submodule update --init --recursive "${DOTBOT_DIR}"

"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"

My install.conf.yaml file:

- defaults:
    link:
      create: true
      relink: true

- clean: ['~']

- link:
    ~/.iterm2: iterm2
    ~/.vscode: vscode

- shell:
  - [git submodule update --init --recursive, Installing submodules]

Every time I run install I get the message:

All targets have been cleaned
Nonexistent target ~/.iterm2 -> iterm2
Nonexistent target ~/.vscode -> vscode
Some links were not successfully set up
Installing submodules [git submodule update --init --recursive]
All commands have been executed

==> Some tasks were not executed successfully

I’m using the very much close to default as I could, but clearly I’m missing something…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
pabloportuguescommented, Aug 15, 2017

That worked! I don’t know why, but I thought that DotBot would move the nonexistent folders and create the symlinks for them. (I’m actually creating my first .dotfiles, hence not having any folders). Anyway, thank you for shedding some light on my noobness @anishathalye and @arcticicestudio

0reactions
HenryC-3commented, Oct 18, 2022

Hi @anishathalye.

Backgroud

I checked README, set the dir, then ran with the ./install command, and dotbot said Some tasks were not executed successfully.

I thought I missed something, so I checked recommended tutorial, and found out I have to copy the dotfile to the newly created directory. And still a failure.

Finally, I got here and realized I have to delete the original dotfile.

I think the issue above is caused by the line To get started, you just need to fill in the install.conf.yaml and Dotbot will take care of the rest. Dotbot is not taking care of all the things.

Advice

I suggest it would be better to provide a simple 1~x guide under the Quickstart section, it would be

  1. setup dotbot
  2. config install.conf.yml
  3. copy the original dotfile to the directory created above
  4. delete the original dotfile
  5. run ./install

Thank you for creating dotbot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CMake non-existent-target error when trying to build OpenCV ...
CMake non-existent-target error when trying to build OpenCV 3 world module on Ubuntu - Stack Overflow. Stack Overflow for Teams – Start collaborating...
Read more >
cmake does not report an error when linking to nonexisting target ...
cpp to compile because of header problems, where I'm assuming that transitive interface include_directories are coming from target special_lib ... but oh man......
Read more >
Error 'File is a symlink to a non-existent target' - Ask Ubuntu
The autosaved file is #sum.cpp# . The symlink .#sum.cpp is used by Emacs to store some internal data (seems like user name, host...
Read more >
How to solve 'add_dependencies Adding dependency to non ...
After I finished it and ran catkin_make , error occurred. add_dependencies Adding dependency to non-existent target: example_node.
Read more >
lookup field enster non existing data in target column
Solved: Hi I have a list edited with powerapps. Lookup field takes info from other field in site. Can i confoigure this field...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found