Code Monkey home page Code Monkey logo

Comments (2)

ralph-mcardell avatar ralph-mcardell commented on August 19, 2024 1

I have encountered this error when attempting to create a new site with Hugofy after creating a VS Code Remote-Container container with my Hugo and related tools installed plus the Hugofy extension and placing the .devcontainer files under Git control.

Asking for the Hugo version with Hugofy: Version is fine.
Asking for a new site with Hugofy: New Site fails with a "Error getting hugo version, Make sure hugo is available in path." error.

After some investigation, toggling Developer Tools on (on Help menu) and reading a bit of the extension source here on GitHub, this seems to be because:

1/ the error message for some Hugofy commands appears to have been copy and pasted from the Version command handler, hence misleadingly mentions hugo version.

2/ The actual error logged on the browser debug console was:
"[Extension Host] stderr: Error: /workspaces/project_root_dir already exists and is not empty. See --force."
(project_root_dir not the real workspace directory name).

The workspace directory is not empty as it already contains VSCode .devcontainer and Git .git directories. I would think sort of situation might occur quite often - even if not using a container. A developer might modify some settings causing a .vscode directory and files to be created before attempting to create a new site, and of course they may also get their project under source control early as well.

from hugofy-vscode.

wmturner avatar wmturner commented on August 19, 2024

FYI I get this as well. I can even perform get version correctly.

from hugofy-vscode.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.