 path = null
 
 module.exports =
-class CompileErrorsView extends SelectListView
+class CompileErrorsView extends SelectView
   initialize: ->
     super
 
-    {$, $$} = require 'atom-space-pen-views'
+    {$$} = require 'atom-space-pen-views'
     {CompositeDisposable} = require 'atom'
 
-    @panel = atom.workspace.addModalPanel(item: this, visible: false)
+    @prop 'id', 'spark-dev-compile-errors-view'
 
-    @disposables = new CompositeDisposable
-    @workspaceElement = atom.views.getView(atom.workspace)
-    @disposables.add atom.commands.add 'atom-workspace',
-      'core:cancel', =>
-        @hide()
-      'core:close', =>
-        @hide()
-
-    @addClass 'overlay from-top'
-    @prop 'id', 'spark-dev-compile-errors-view'
+  @fixFilePath: (filename) ->
+    splitFilename = filename.split path.sep
+    path.join.apply this, splitFilename.slice(2)
 
   # Parse gcc errors into array
   @parseErrors: (raw) ->

{SelectListView} = require('atom-space-pen-views')

$ = null
$$ = null
SerialHelper = null
SettingsHelper = null

    opening = atom.workspace.open filename, { searchAllPanes: true }
    opening.done (editor) =>
      editor.setCursorBufferPosition [item.row-1, item.col-1],
    @hide()

  getFilterKey: ->
    'message'
