Comments (2)
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.
FYI I get this as well. I can even perform get version correctly.
from hugofy-vscode.
Related Issues (10)
- Server Start "Default theme not set" HOT 2
- Error Running Server HOT 3
- Feature request: add support for ref/relref
- use the default theme archtype default for post headers HOT 1
- Error: Cannot find module 'vscode' HOT 4
- Custom content/posts folder setting HOT 2
- Error running server HOT 4
- option to disable console log
- Error running server HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugofy-vscode.