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

Error during compiling on windows #1634

Closed
flip111 opened this issue Feb 4, 2020 · 2 comments
Closed

Error during compiling on windows #1634

flip111 opened this issue Feb 4, 2020 · 2 comments

Comments

@flip111
Copy link
Contributor

flip111 commented Feb 4, 2020

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
Copy link
Contributor Author

flip111 commented Feb 4, 2020

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
Copy link
Member

jneira commented Feb 4, 2020

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

@jneira jneira closed this as completed Feb 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants