Open OvermindDL1 opened 8 years ago
Manually creating ./tmp/web/elm
directories seems to have fixed it, it should probably be creating those on its own though?
Yeah, it should create the directories automatically. Can you try the latest release? Your "source-directories" idea is in there, too. Thanks!
So I saw! Just got to work, Atom has an update for linter-elm-make, installing, restarting, ./tmp was already cleared from last night, and testing, and:
Error: ENOENT: no such file or directory, open 'C:\Users\<username>\Projects\my_server\tmp\web\elm\MessengerApp.elm'
at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:159:20)
at Object.fs.writeFileSync (fs.js:1234:33)
at Object.compileInWorkDirectory (C:/Users/<username>/.atom/packages/linter-elm-make/lib/linter-elm-make.js:584:8)
at Object.lint (C:/Users/<username>/.atom/packages/linter-elm-make/lib/linter-elm-make.js:396:25)
at promises.push.Promise.then._this.emitter.emit.linter (C:/Users/<username>/.atom/packages/linter/lib/linter-registry.js:63:26)
at C:/Users/<username>/.atom/packages/linter/lib/linter-registry.js:62:23
at Set.forEach (native)
at LinterRegistry.lint (C:/Users/<username>/.atom/packages/linter/lib/linter-registry.js:60:18)
at file:///C:/Users/<username>/.atom/packages/linter/lib/linter.coffee:98:16
at Function.module.exports.Emitter.simpleDispatch (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:125:28)
at C:/Users/<username>/.atom/packages/linter/lib/editor-linter.js:86:22
at file:///C:/Users/<username>/.atom/packages/linter/lib/helpers.coffee:25:18
And the tmp directory is still entirely empty, it looks like it did not try copying the files over?
Version of linter-elm-make is listed at 0.13.1.
By "./tmp was already cleared", did you mean the entire directory was removed or just the files inside? If the tmp directory already exists, the linter will not copy the project files anymore, but will still watch the directory for changes.
There's already 0.13.2 that shows notifications when linter is copying files to the work/temporary directory and when it's finished copying. It's safer to wait for the "Copied project files to work directory" message to appear first. Mind trying that out?
Thanks!
Ah currently our system at night has it that whenever we git commit
it wipes the projects tmp directory, however the directory remains existing, just empty. If we do a fresh git clone
the tmp directory will not exist at all. So in this case ./tmp/
existed, but was empty. The ./tmp
directory is used for a couple of things as kind of a 'cache that should not persist' specific to this projects releasing process (so it usually remains empty anyway unless we are doing a release).
Checking for updates, found update for linter-elm-make, updating, complete, setting working directory back to ./tmp
, rebooting atom, accessing one of the main files, it came up and did not freeze however it did display this at the bottom:
r
elm-make.exe: elm-lang-html-66b1583: MoveFileEx "elm-lang-html-66b1583" "elm-lang\\html\\1.1.0": permission denied (Access is denied.)at line 1 col 1 in web\elm\MyApp2.elm
Where MyApp2.elm is the elm file I had open.
Oh and no copy to tmp either
Will leaving the Work Directory
blank work for you in the meantime?
I have been yep. :-)
This happens for me either with a temporary directory or if I specify the folder... I think I will completely remove this package since it doesn't work as it should... I have also had troubles with it finding elm-make. I guess this package is not stable enough.
Hi @Positive07, can you check if these are relevant to your issue? https://github.com/mybuddymichael/linter-elm-make/issues/100, https://github.com/mybuddymichael/linter-elm-make/issues/101. Also, can you also try leaving the Work Directory
blank? Thanks!
I left the directory black, I haven't tried entering on dev mode, I have already uninstalled the package.
I tried using elm-make from the project, elm-make globally installed and elm-make installed with npm. Nothing helped, there was always one error, either it didn't find elm-make or it couldn't copy the files.
I tried relatives. absolute and empty paths when setting the Work Directory
. I have enabled and disabled Lint on the fly
it doesn't work right anyway, I trigger a Lint from the command panel.
Also the issues posted here in GitHub seem to magically solve themselves and wheren't helpful at all, I would expect developers to help fixing this issues with this plugin but doesn't seem like it, everyone fixes the problem on their own and don't provide much feedback on how.
About the plugins I have, I use elmjutsu and elm-format. I have laguage-elm autocompletion disabled. I have other not Elm related plugins like build.
I wouldn't go through the hassle of removing all my plugins and installing them from zero just for the sake of debugging this. I have no experience with rebuilding plugins or modules whatever that is so I can follow the instructions you mentioned in #101
Windows 10 x64, Atom 1.13.0-beta6 ia32
Hi, I completely understand your frustration. Issues like this, though, are trickier to debug since they usually involve user configuration (and I don't have a Windows 10 machine which makes it trickier :cry:). There are also Atom idiosyncrasies like that in https://github.com/mybuddymichael/linter-elm-make/issues/101. There's even an Elmjutsu issue before that was caused by another plugin modifying the default Atom behavior.
There seems to be 2 issues:
(1) The package couldn't find elm-make
(2) Uncaught Error: ENOENT: no such file or directory
For (1), you didn't mention the Elm version, but I'm assuming it's 0.18? I honestly don't know yet why some folks (using Windows) are having issues after they upgraded to 0.18 :(
For (2), you can try the following:
elm-package.json
file.Lint On The Fly
.Always Compile Main
.Work Directory
to blank.
Work Directory
in the settings./tmp
, enabledLint On The Fly
, exited settings.Atom Version: 1.8.0 System: Microsoft Windows 10 Pro Thrown From: linter-elm-make package, v0.12.2
Stack Trace
Uncaught Error: ENOENT: no such file or directory, open 'C:\Users\Projects\my_project\tmp\web\elm\MyApp.elm'
Commands
Config
Installed Packages