Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

build of project is not done #204

@andrewufrank

Description

@andrewufrank

i use the test-stack-multiproject (https://github.com/lierdakil/test-stack-multiproject.git) setup to experiment and reconstruct problems i observe:

checking a module when saving is promptly done (and usually without a ghc-mod crash), but changes in other modules are not used.
for example: change in LibA.hs the type of thirdFunc to String -> IO (). save. there is no indication that Main.hs in a is now wrong. Fix Main.hs by adding the now missing argument. result: wrong error message (because the change in a is not seen).

i do not see how to run build from within atom. build project seems not to do anything in this setup.

the build target seems to depend on the file which has the focus. Correct? if yes, then it is very subtle. if i try to set the target manualy, i.e. typing a into the field set build target i get Uncaught TypeError: string.indexOf is not a function.

using stack build in the project dir does of course build the project, despite the error message when saving Main.hs.

can you reproduce this behavior? i would suggest that the target can be selected by typing the package name.

i also found that the need to select the mode of buidling (stack/cabal/none) with a not very prominent button is confusing - why not include it in the ghc-mod settings. i do not expect that users change this very often.

in general, it works, but i hope you can further improve it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions