Title: [purs ide] Add import chomps line on windows · Issue #2833 · purescript/purescript · GitHub
Open Graph Title: [purs ide] Add import chomps line on windows · Issue #2833 · purescript/purescript
X Title: [purs ide] Add import chomps line on windows · Issue #2833 · purescript/purescript
Description: 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...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/purescript/purescript/issues/2833
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[purs ide] Add import chomps line on windows","articleBody":"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.\r\n\r\ne.g.\r\n```purescript\r\nmodule Main.Module where\r\n\r\nimport Prelude\r\nimport Control.Monad.Eff.Console (log)\r\nmain = do\r\n log \"Hello sailor!\"\r\n logShow\r\n```\r\nbecomes\r\n\r\n```purescript\r\nmodule Main.Module where\r\n\r\nimport Prelude\r\nimport Control.Monad.Eff.Console (log, logShow)\r\n log \"Hello sailor!\"\r\n logShow\r\n```\r\n\r\nCalled as `addImport` with temp file as input/output\r\n\r\nOriginally raised as https://github.com/nwolverson/vscode-ide-purescript/issues/52","author":{"url":"https://github.com/nwolverson","@type":"Person","name":"nwolverson"},"datePublished":"2017-04-14T11:35:20Z","url":"https://github.com/purescript/purescript/issues/2833"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:76623028-1620-5aa9-39b6-5e38e83e1870 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAAE:A7C8F:983720:C568B3:6B00DF27 |
| html-safe-nonce | ee38f18d97b8d6be55e0f9d615ba552d2945c02ea11075978a5633deb3a8c11a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUFFOkE3QzhGOjk4MzcyMDpDNTY4QjM6NkIwMERGMjciLCJ2aXNpdG9yX2lkIjoiNDUyODc2NjAyMDEwMTM5ODMxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 64e2c8dd55fff0aa5021e6a1193b3b74dd2209e4aa1a0b250a229dfeeb70f466 |
| hovercard-subject-tag | issue:221793375 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript/purescript/2833/issue_layout |
| twitter:image | https://opengraph.githubassets.com/406cf370545840a8f7712fe19ea49c733d03804772abb4da81e5f91cc8fc9920/purescript/purescript/issues/2833 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/406cf370545840a8f7712fe19ea49c733d03804772abb4da81e5f91cc8fc9920/purescript/purescript/issues/2833 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nwolverson |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript/purescript git https://github.com/purescript/purescript.git |
| octolytics-dimension-user_id | 6556677 |
| octolytics-dimension-user_login | purescript |
| octolytics-dimension-repository_id | 13206906 |
| octolytics-dimension-repository_nwo | purescript/purescript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13206906 |
| octolytics-dimension-repository_network_root_nwo | purescript/purescript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width