Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[purs ide] Add import chomps line on windows #2833

Closed
nwolverson opened this issue Apr 14, 2017 · 1 comment
Closed

[purs ide] Add import chomps line on windows #2833

nwolverson opened this issue Apr 14, 2017 · 1 comment

Comments

@nwolverson
Copy link
Contributor

Running on windows, with a source file with CRLF line endings, add import seems to be removing a line after the import section. Converting to LF line endings, seems to be fine with everything else unchanged.

e.g.

module Main.Module where

import Prelude
import Control.Monad.Eff.Console (log)
main = do
  log "Hello sailor!"
  logShow

becomes

module Main.Module where

import Prelude
import Control.Monad.Eff.Console (log, logShow)
  log "Hello sailor!"
  logShow

Called as addImport with temp file as input/output

Originally raised as nwolverson/vscode-ide-purescript#52

@paf31
Copy link
Contributor

paf31 commented Apr 14, 2017

@kritzcreek Please reprioritize these if you think they're not good for 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants