 
 module.exports =
   config:
-    linterjuliaport:
-      title: 'Julia Lint Server Port'
+    column:
+      title: 'Error message column end, the column start is 0'
       type: 'string'
-      default: '2223'
-      description: "julia -e \"using Lint; lintserver(2223)\""
+      default: '80'
+      description: "Lint.jl doesn't return the error column, thus the whole line
+                    is used, meaning column end is 80. To get back to the
+                    previous behavior change the column end to 1"
       order: 1
-    linterjuliadomain:
-      title: 'Julia Lint Server Domain'
-      type: 'string'
-      default: 'localhost'
-      description: "julia -e \"using Lint; lintserver(2223)\""
-      order: 2
   activate: ->
-    spawn 'julia', ['-e', 'using Lint; lintserver(2223)']
+    global.named_pipe = tmp.tmpNameSync({ prefix:'lintserver',postfix: 'sock'})
+    jcode = "using Lint; lintserver(\"#{named_pipe}\")"
+    console.log jcode
+    jserver = spawn 'julia', ['-e', jcode]
+    jserver.stdout.on 'data', (data) -> console.log data.toString().trim()
+    jserver.stderr.on 'data', (data) -> console.log data.toString().trim()
+
+  deactivate: ->
+    # Removes the socket when shutting down
+    fs.unlinkSync(named_pipe)
 
   provideLinter: ->
     provider =

doSomeMagic = (data,textEditor) ->
  filePath = textEditor.getPath()
  inptext = textEditor.getText()
  linteroutput = [ ]

  lines = data.split("\n")

net = require 'net'
{spawn} = require 'child_process'
tmp = require('tmp')
fs = require('fs')

lintfromserver = (socket, str, fname) ->
  # This plus one probably because Julia starts index from 1
