-
Notifications
You must be signed in to change notification settings - Fork 3
Rewrite in JS #41
Rewrite in JS #41
Conversation
Some problem with the package activation:
|
Taken care of, can you please try again? |
Sorry, I was busy earlier. Still the error with installation remains:
|
That is purely a network or ISP interception issue. Can you try manually installing the Linter v2? That error should not affect the end users of this package in any way |
I ran: Press Ctrl - Shift - P: Update Package Dependencies: Update and after the restart the installer start installing dependencies. Now I'm debugging why the lintserver doesn't want start. |
lib/server.js
Outdated
export async function getPipePath(): Promise<{ subscription: CompositeDisposable, path: string }> { | ||
const subscription = new CompositeDisposable() | ||
let path = await new Promise(function(resolve, reject) { | ||
tmp.file(function(error, tempPath, fd, cleanupCallback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess tmp.file creates a temporary file. Unfortunately this won't work, because the lintserver() wants to create the file and cannot, if the file already exists:
julia> a = "/tmp/tmp-17077g9zhwjrfaehc.tmp"
"/tmp/tmp-17077g9zhwjrfaehc.tmp"
shell> ls $a
ls: cannot access /tmp/tmp-17077g9zhwjrfaehc.tmp: No such file or directory
shell> touch $a
shell> ls $a
/tmp/tmp-17077g9zhwjrfaehc.tmp
julia> lintserver(a,"standard-linter-v2")
ERROR: ArgumentError: could not listen on path /tmp/tmp-17077g9zhwjrfaehc.tmp
in listen(::String) at ./stream.jl:944
in lintserver(::String, ::String) at /home/tero/.julia/v0.5/Lint/src/Lint.jl:468
shell> rm $a
julia> lintserver(a,"standard-linter-v2")
Server running on port/pipe /tmp/tmp-17077g9zhwjrfaehc.tmp ...
^CServer closed
shell> ls $a
ls: cannot access /tmp/tmp-17077g9zhwjrfaehc.tmp: No such file or directory
It looks that if lintserver closes properly it will clean the temporary file as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged, didn't know that. Working on a fix
Really nice work. |
As discussed, contains a rewritten package with Linter v2 support general bugfixes and Flow/ESLint with Circle CI configuration