atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

sqlite ErrorBusy #145

Closed gregwebs closed 8 years ago

gregwebs commented 8 years ago

This happens when saving a file.

SQLite3 returned ErrorBusy while attempting to perform step.

-3.809s: Running ghc-modi command info,/home/greg/karius/volcano/src/Volcano.hs,--,flip
-3.411s: Got response from ghc-modi:
flip :: (a -> b -> c) -> b -> a -> c    -- Defined in ‘GHC.Base’
OK
-3.411s: Ended interactive action block in /home/greg/karius/volcano
-0.099s: running ghc-mod check,/home/greg/karius/volcano/src/Volcano.hs,-- with options.cwd = /home/greg/karius/volcano,options.env = [object Object],options.encoding = utf-8
-0.092s: running ghc-mod lint,/home/greg/karius/volcano/src/Volcano.hs,-- with options.cwd = /home/greg/karius/volcano,options.env = [object Object],options.encoding = utf-8
-0.068s: ghc-mod said: Getting project config file from STACK_YAML environment
-0.063s: ghc-mod said: Getting project config file from STACK_YAML environment
-0.001s: ghc-mod said: SQLite3 returned ErrorBusy while attempting to perform step.
0s: ghc-mod ended with code 1
0s: code 1: Getting project config file from STACK_YAML environment
SQLite3 returned ErrorBusy while attempting to perform step.
lierdakil commented 8 years ago

Try running stack build on your project.

lierdakil commented 8 years ago

Provided it's actually a stack project. Otherwise, cabal configure.

gregwebs commented 8 years ago

yeah, it is built already. Maybe its a problem with stack running in docker.

lierdakil commented 8 years ago

So... this happens every time?

Another idea: disable linting on save. Maybe there's a race condition there.

lierdakil commented 8 years ago

Closing due to inactivity.