Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit a597236

Browse files
authored
Merge pull request #1459 from flip111/patch-2
Update README.md to improve suggestions about the long paths issue in windows
2 parents d64467c + a9dd337 commit a597236

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ we talk to clients.__
2727
- [Installation from source](#installation-from-source)
2828
- [Common pre-requirements](#common-pre-requirements)
2929
- [Linux-specific pre-requirements](#linux-specific-pre-requirements)
30-
- [Windows-specific pre-requirements (optional)](#windows-specific-pre-requirements-optional)
30+
- [Windows-specific pre-requirements](#windows-specific-pre-requirements)
3131
- [Download the source code](#download-the-source-code)
3232
- [Building](#building)
3333
- [Install specific GHC Version](#install-specific-ghc-version)
@@ -172,15 +172,14 @@ sudo apt install libicu-dev libtinfo-dev libgmp-dev
172172
sudo dnf install libicu-devel ncurses-devel
173173
```
174174

175-
#### Windows-specific pre-requirements (optional)
175+
#### Windows-specific pre-requirements
176176

177-
In order to avoid problems with long paths on Windows you can do the following:
177+
In order to avoid problems with long paths on Windows you can do either one of the following:
178178

179-
1. In the `Local Group Policy Editor`: `Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem` set `Enable Win32 long paths` to `Enabled` (Works
180-
only for Windows 10).
179+
1. Clone the `haskell-ide-engine` to a short path, for example the root of your logical drive (e.g. to
180+
`C:\hie`). If this doesn't work or you want to use a longer path, try the second option.
181181

182-
2. Clone the `haskell-ide-engine` to the root of your logical drive (e.g. to
183-
`C:\hie`)
182+
2. If the `Local Group Policy Editor` is available on your system, go to: `Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem` set `Enable Win32 long paths` to `Enabled`. If you don't have the policy editor you can use regedit by using the following instructions [here](https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#enable-long-paths-in-windows-10-version-1607-and-later). You also need to configure git to allow longer paths by using unicode paths. To set this for all your git repositories use `git config --system core.longpaths true` (you probably need an administrative shell for this) or for just this one repository use `git config core.longpaths true`.
184183

185184
#### Download the source code
186185

0 commit comments

Comments
 (0)