[GH-ISSUE #2355] [Makefile] make dev command failing because CURDIR variable contains space in their path #292

Open
opened 2026-02-17 17:19:34 -05:00 by yindo · 0 comments
Owner

Originally created by @Devpatel1901 on GitHub (Jan 24, 2026).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/2355

Type of issue:

issue/ Other

Description:

I faced issue while running doc website locally. According to setup Quick Start Guide, we should use make dev command to spin up a local instance of doc website. But I was facing an error like below:

Starting development mode...
PYTHONPATH=/Users/user1/Desktop/abcd/Personal Projects/langchain/docs uv run pipeline dev
/bin/sh: Projects/langchain/docs: No such file or directory
make: *** [dev] Error 127

Root Cause:

The issue occurs because my current working directory contains a folder name with a space. As a result, the command fails to locate files properly. This error only appears when the working directory path includes a space.

Solution:

We should use quotes around $(CURDIR) variable in our dev and build command of Makefile.

Should we consider incorporating above changes? If yes, then I am happy to do that.

Originally created by @Devpatel1901 on GitHub (Jan 24, 2026). Original GitHub issue: https://github.com/langchain-ai/docs/issues/2355 ### Type of issue: issue/ Other ### Description: I faced issue while running doc website locally. According to setup [Quick Start Guide](https://docs.langchain.com/oss/python/contributing/documentation#quick-start-local-development), we should use `make dev` command to spin up a local instance of doc website. But I was facing an error like below: ```bash Starting development mode... PYTHONPATH=/Users/user1/Desktop/abcd/Personal Projects/langchain/docs uv run pipeline dev /bin/sh: Projects/langchain/docs: No such file or directory make: *** [dev] Error 127 ``` ### Root Cause: The issue occurs because my current working directory contains a folder name with a space. As a result, the command fails to locate files properly. This error only appears when the working directory path includes a space. ### Solution: We should use quotes around `$(CURDIR)` variable in our `dev` and `build` command of Makefile. Should we consider incorporating above changes? If yes, then I am happy to do that.
yindo added the external label 2026-02-17 17:19:34 -05:00
yindo changed title from [Makefile] make dev command failing because CURDIR variable contains space in their path to [GH-ISSUE #2355] [Makefile] make dev command failing because CURDIR variable contains space in their path 2026-06-05 17:26:07 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#292