 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) ->

        if result
          # This is probably "undefined" error
          errors.push {
            file: path.basename(result[1]),
            row: result[2],
            col: 0,
            type: 'error',

{SelectView} = require 'spark-dev-views'

$$ = null
SerialHelper = null
SettingsHelper = null
