haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 211 forks source link

Error during compiling on windows #1634

Closed flip111 closed 4 years ago

flip111 commented 4 years ago
Copying from C:\Users\flip111\haskell\haskell-ide-engine\.stack-work\install\58a8ec84\bin\hie.exe to C:\Users\flip111\AppData\Roaming\local\bin\hie.exe
copyFile:atomicCopyFileContents:withReplacementFile:renameFile:renamePath:MoveFileEx "C:\\Users\\flip111\\AppData\\Roaming\\local\\bin\\.copyFile10424-0.tmp" "C:\\Users\\flip111\\AppData\\Roaming\\local\\bin\\hie.exe": permission denied (Access is denied.)

********************************************************************************
Building failed, Try running `stack clean` and restart the build
If this does not work, open an issue at
        https://github.com/haskell/haskell-ide-engine
********************************************************************************

Error when running Shake build system:
  at want, called at src\Development\Shake\Internal\Args.hs:83:69 in shake-0.18.3-IRERdPfMZ9DD4F7hwTPAXM:Development.Shake.Internal.Args
* Depends on: hie
  at apply1, called at src\Development\Shake\Internal\Rules\Rerun.hs:41:5 in shake-0.18.3-IRERdPfMZ9DD4F7hwTPAXM:Development.Shake.Internal.Rules.Rerun
* Depends on: latest
  at apply1, called at src\Development\Shake\Internal\Rules\Rerun.hs:41:5 in shake-0.18.3-IRERdPfMZ9DD4F7hwTPAXM:Development.Shake.Internal.Rules.Rerun
* Depends on: hie-8.6.5
* Raised the exception:
user error (Development.Shake.command, system command failed
Command line: stack --stack-yaml=stack-8.6.5.yaml install
Exit code: 1
Stderr:
stty: 'standard input': Inappropriate ioctl for device
z-haskell-ide-engine-z-hie-test-utils-1.0.0.0: unregistering (Dependency being unregistered: haskell-ide-engine-1.0.0.0)
haskell-ide-engine-1.0.0.0: unregistering (missing dependencies: hie-plugin-api)
hie-plugin-api-1.0.0.0: unregistering (local file changes: Haskell\Ide\Engine\ArtifactMap.hs Haskell\Ide\Engine\Compat.hs Haskell\Ide\Engine\Config.hs Haske...)
flip111 commented 4 years ago

Even with admin privileges on cmd this was not fixed. It eventually dawned on me that vscode was preventing hie.exe from being overwritten

jneira commented 4 years ago

Thanks for the pr with the note. I've hit by this dozens of times and i did not think in add to README