Coder Social home page Coder Social logo

atom-lcov-info's Introduction

this. is. me.

I build stuff. And hopefully you find some of it useful. If not, let me know via an issue, or even better, get a PR ready and I'll owe you a drink of your choice.

If you want to know a bit more about me, my IPNS-accessible jacogr.info site has some small tidbits.

atom-lcov-info's People

Contributors

jacogr avatar lslezak avatar toff9 avatar wdullaer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

atom-lcov-info's Issues

Uncaught TypeError: Cannot read property '1' of undefined

[Enter steps to reproduce below:]

  1. Toggle lcov-info
  2. Click on the "coverage" header in the lcov-info panel to try sort list by coverage

Atom Version: 1.0.19
System: Mac OS X 10.10.5
Thrown From: lcov-info package, v0.10.5

Stack Trace

Uncaught TypeError: Cannot read property '1' of undefined

At /Users/daniel/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:84

TypeError: Cannot read property '1' of undefined
  at Object.Tablesort.sortTable (/Users/daniel/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:84:63)
  at HTMLTableCellElement.onClick (/Users/daniel/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:38:22)

Commands

  2x -1:35.5.0 core:move-down (atom-text-editor.editor.is-focused)
     -1:34.7.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -1:34.4.0 core:select-up (atom-text-editor.editor.is-focused)
     -1:34.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:32.7.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -1:32.7.0 core:cancel (atom-text-editor.editor.is-focused)
  2x -1:32.5.0 core:move-down (atom-text-editor.editor.is-focused)
  6x -1:32 core:move-left (atom-text-editor.editor.is-focused)
     -1:30.9.0 editor:add-selection-above (atom-text-editor.editor.is-focused)
     -1:30.5.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -1:30.3.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -1:30 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
  2x -1:29.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -1:28.8.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
  2x -1:28.4.0 core:move-down (atom-text-editor.editor.is-focused)
     -1:27.4.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "chester-atom-syntax"
    ],
    "disabledPackages": [
      "coffee-autocompile",
      "vim-mode"
    ],
    "projectHome": "/Users/daniel/Projects"
  }
}

Installed Packages

# User
atom-beautify, v0.28.14
autocomplete-ruby, v0.1.0
change-case, v0.6.0
chester-atom-syntax, v0.1.1
coffee-compile, v0.19.0
file-icons, v1.6.9
language-glsl, v2.0.1
language-jade, v0.6.2
lcov-info, v0.10.5
linter, v1.8.1
linter-coffeelint, v1.1.0
linter-eslint, v3.1.1
linter-ruby, v1.2.0
preview, v0.16.3
ruby-block, v0.3.5
ruby-slim, v0.2.0

# Dev
No dev packages

Uncaught TypeError: undefined is not a function

[Enter steps to reproduce below:]

  1. ctrl+shift+P
  2. select Lcov Info: Toggle

Atom Version: 1.0.0
System: Mac OS X 10.9.5
Thrown From: lcov-info package, v0.10.4

Stack Trace

Uncaught TypeError: undefined is not a function

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:128

TypeError: undefined is not a function
  at /Users/dx202/.atom/packages/lcov-info/lib/lcov-info-view.coffee:24:64
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:338:18
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:375:27)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:362:26
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:326:20)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:297:14)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:479:16
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:756:13)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:516:49
  at flush (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:110:17)
  at process._tickCallback (node.js:357:13)

Commands

     -1:24.9.0 command-palette:toggle (input.hidden-input)
     -1:23 core:confirm (input.hidden-input)
     -1:23 lcov-info:toggle (input.hidden-input)
     -0:03.0 fuzzy-finder:toggle-file-finder (input.hidden-input)
     -0:00.9.0 core:confirm (input.hidden-input)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".idea",
      ".DS_Store",
      "*.zip",
      "*.png",
      "*.gif",
      "*.jpg",
      "node_modules/"
    ],
    "projectHome": "/Users/dx202/",
    "audioBeep": false,
    "followSymlinks": false,
    "themes": [
      "one-dark-ui",
      "base16-tomorrow-dark-theme"
    ]
  }
}

Installed Packages

# User
atom-pair, v1.1.6
editor-stats, v0.17.0
editorconfig, v1.0.1
language-javascript-jsx, v0.3.6
lcov-info, v0.10.4
linter, v1.1.0
linter-eslint, v1.0.11
linter-jscs, v1.12.0
react, v0.12.3
react-snippets, v0.1.4
terminal-status, v1.6.8

# Dev
No dev packages

Configurable lcov.info path

Is a configurable lcov path something that is on the horizon?

I am working with a build task that builds coverage for multiple components into a structure similar to:

coverage/<component>/PhantomJS/
<component 1>/
<component 2>/

Ideally I would configure coverage per component.

Thanks for your time

Uncaught TypeError: Cannot read property '2' of undefined

[Enter steps to reproduce below:]

  1. create lcov (using istanbul)
  2. toggle lcov
  3. click sort

Sample of the report (column alignment is pretty close in example)
Test Coverage Coverage Percent Lines Hits/line
========= 100% 13/13 4.08

Percent/coverage are misaligned, looks like what's in the percent column is actually the hits/line data.
Lines is missing entirely. Test Coverage is the label for the filename

Looks like something is odd between the columns and the headers.

Atom Version: 1.3.2
System: Mac OS X 10.10.5
Thrown From: lcov-info package, v0.10.5

Stack Trace

Uncaught TypeError: Cannot read property '2' of undefined

At /Users/x/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:84

TypeError: Cannot read property '2' of undefined
    at Object.Tablesort.sortTable (/Users/x/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:84:63)
    at HTMLTableCellElement.onClick (/Users/x/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:38:22)

Commands

     -0:19.1.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:17.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:17.3.0 lcov-info:toggle (atom-text-editor.editor)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "solarized-dark-syntax"
    ],
    "projectHome": "/Users/x/Development"
  }
}

Installed Packages

# User
fonts, v1.0.0
highlight-line, v0.11.0
highlight-selected, v0.11.1
jsonlint, v1.1.2
lcov-info, v0.10.5
linter, v1.11.3
linter-jshint, v1.2.1
minimap, v4.18.4
sync-settings, v0.6.0
terminal-plus, v0.14.5

# Dev
No dev packages

ctrl+alt+c no longer works

First of all: awesome plugin! I use it frequently.

This could be user error. I just upgraded atom and all plugins and ctrl+alt+c now no longer maps to lcov-info:toggle. If I use ctrl+shift+p I can toggle lcov-info so the functionality is still there. If I look at key binding resolver it lists lcov-info:toggle at the top of the list of 3 items for ctrl+alt+c.

Ideas?

keybindingresolver

suggestion for useful features

At least I didn't stumble about that being already available, if I'm wrong - my pardon.

So here my ideas:

  • auto update the screen in case the coverage report got re-run or at least provide a little icon or context menu to allow a refresh. Up to now I need to toggle the package twice to get things refreshed.
  • possibility to configure the coverage report generator command. e.g. in our case, we simply execute "npm test". Would be great to have a project based context menu item allowing to rerun coverage report generating process.

Uncaught TypeError: Cannot read property '4' of undefined

[Enter steps to reproduce below:]

  1. turned on lcov
  2. clicked sort on hits/line

Atom Version: 1.5.3
System: Mac OS X 10.10.5
Thrown From: lcov-info package, v0.11.0

Stack Trace

Uncaught TypeError: Cannot read property '4' of undefined

At /Users/andrew/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:84

TypeError: Cannot read property '4' of undefined
    at Object.Tablesort.sortTable (/Users/andrew/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:84:63)
    at HTMLTableCellElement.onClick (/Users/andrew/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:38:22)

Commands

     -0:14.9.0 fuzzy-finder:toggle-file-finder (div.panels-item)
     -0:12.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:06.7.0 command-palette:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:05.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:05.2.0 lcov-info:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

Config

{
  "core": {
    "projectHome": "/Users/andrew/Development",
    "themes": [
      "one-dark-ui",
      "solarized-dark-syntax"
    ]
  },
  "lcov-info": {
    "coveredType": "Uncovered Lines Only"
  }
}

Installed Packages

# User
atom-ternjs, v0.13.2
autocomplete-paths, v1.0.2
fonts, v1.1.0
highlight-selected, v0.11.2
jsonlint, v1.1.2
lcov-info, v0.11.0
linter, v1.11.3
linter-jscs, v3.4.6
linter-jshint, v1.3.1
minimap, v4.19.0
remote-edit, v1.8.24
sync-settings, v0.6.0
terminal-plus, v0.14.5

# Dev
No dev packages

VM lcov paths vs. Atom host paths

I run my tests in a VM, so the paths in the lcov.info file are different from the ones used by Atom which is running on my host. It would be nice if this package allowed for some kind of mapping.

Uncaught NotSupportedError: Failed to execute 'registerElement' on 'Document': Registration faile...

[Enter steps to reproduce below:]

  1. Install package from Atom

Atom Version: 1.0.5
System: Microsoft Windows 7 Enterprise
Thrown From: lcov-info package, v0.10.4

Stack Trace

Uncaught NotSupportedError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'coverage-table-row'. A type with that name is already registered.

At C:\Users\tg7081\.atom\packages\lcov-info\lib\panel-row.coffee:50

Error: Failed to execute 'registerElement' on 'Document': Registration failed for type 'coverage-table-row'. A type with that name is already registered.
  at Error (native)
  at Object.<anonymous> (C:\Users\tg7081\.atom\packages\lcov-info\lib\panel-row.coffee:50:27)
  at Object.<anonymous> (C:\Users\tg7081\.atom\packages\lcov-info\lib\panel-row.coffee:1:1)
  at Module._compile (module.js:452:26)
  at Object.requireCoffeeScript (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\coffee-cash\lib\coffee-cash.js:85:19)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Object.<anonymous> (C:\Users\tg7081\.atom\packages\lcov-info\lib\panel.coffee:1:12)
  at Object.<anonymous> (C:\Users\tg7081\.atom\packages\lcov-info\lib\panel.coffee:1:1)
  at Module._compile (module.js:452:26)
  at Object.requireCoffeeScript (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\coffee-cash\lib\coffee-cash.js:85:19)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Object.<anonymous> (C:\Users\tg7081\.atom\packages\lcov-info\lib\lcov-info-view.coffee:5:13)
  at Object.<anonymous> (C:\Users\tg7081\.atom\packages\lcov-info\lib\lcov-info-view.coffee:1:1)
  at Module._compile (module.js:452:26)
  at Object.requireCoffeeScript (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\coffee-cash\lib\coffee-cash.js:85:19)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Object.<anonymous> (C:\Users\tg7081\.atom\packages\lcov-info\lib\lcov-info.coffee:1:16)
  at Object.<anonymous> (C:\Users\tg7081\.atom\packages\lcov-info\lib\lcov-info.coffee:1:1)
  at Module._compile (module.js:452:26)
  at Object.requireCoffeeScript (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\coffee-cash\lib\coffee-cash.js:85:19)
  at Module.load (module.js:347:32)
  at Function.Module._load (module.js:302:12)
  at Module.require (module.js:357:17)
  at require (module.js:376:17)
  at Package.module.exports.Package.requireMainModule (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\src\package.js:759:34)
  at Package.module.exports.Package.activateConfig (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\src\package.js:261:14)
  at PackageDetailView.module.exports.PackageDetailView.activate (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:150:26)
  at PackageDetailView.module.exports.PackageDetailView.updateInstalledState (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:187:12)
  at C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:232:24
  at Emitter.module.exports.Emitter.emit (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\event-kit\lib\emitter.js:82:11)
  at PackageManager.module.exports.PackageManager.emitPackageEvent (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\settings-view\lib\package-manager.js:587:27)
  at C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\settings-view\lib\package-manager.js:378:26
  at exit (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\node_modules\settings-view\lib\package-manager.js:59:16)
  at triggerExitCallback (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\src\buffered-process.js:213:47)
  at C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\src\buffered-process.js:227:18
  at Socket.<anonymous> (C:\Users\tg7081\AppData\Local\atom\app-1.0.5\resources\app.asar\src\buffered-process.js:98:18)
  at emitOne (events.js:82:20)
  at Socket.emit (events.js:166:7)
  at Pipe.close (net.js:464:12)

Commands

 71x -7:28.7.0 core:move-down (atom-text-editor.editor.is-focused)
  9x -7:23.6.0 core:move-up (atom-text-editor.editor.is-focused)
  2x -7:10.2.0 core:move-left (atom-text-editor.editor.is-focused)
     -7:06.9.0 core:move-right (atom-text-editor.editor.is-focused)
     -7:06.7.0 core:move-down (atom-text-editor.editor.is-focused)
     -7:06.1.0 core:save (atom-text-editor.editor.is-focused)
 57x -6:29 core:move-up (atom-text-editor.editor.is-focused)
 73x -6:17.2.0 core:move-down (atom-text-editor.editor.is-focused)
 15x -6:08.4.0 core:move-up (atom-text-editor.editor.is-focused)
 55x -6:07.0 core:move-down (atom-text-editor.editor.is-focused)
 52x -6:02.8.0 core:move-up (atom-text-editor.editor.is-focused)
 36x -5:07.6.0 core:move-down (atom-text-editor.editor.is-focused)
 62x -5:05.6.0 core:move-up (atom-text-editor.editor.is-focused)
 46x -5:02.7.0 core:move-down (atom-text-editor.editor.is-focused)
     -3:27.1.0 settings-view:open (atom-text-editor.editor.is-focused)
     -3:21.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ]
  }
}

Installed Packages

# User
node-debugger, v1.1.8

# Dev
No dev packages

tab bar broken after toggling lcov-info

To reproduce:

  1. Start Atom
  2. Open a file
  3. Toggle lcov-info
  4. Toggle lcov-info back off
  5. Double-click another file in the tree view

Instead of the file opening in another tab as normal, The file seems to open in the same buffer as my current file, but the name of the tab stays the same as the original file.

Also, normally clicking a file once is enough to open it up. When I'm in this state I see the following behavior:

  1. Start with file A open
  2. Click file B (nothing happens)
  3. click file C (nothing happens)
  4. click file B again (now file B opens up in the same tab, but the tab title still says A.

Deprecated selector in `lcov-info/styles/lcov-info.atom-text-editor.less`

As reported by Atom 1.13.1:

In lcov-info/styles/lcov-info.atom-text-editor.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • .atom-text-editor .line-number.lcov-info-no-coverage::after, :host .line-number.lcov-info-no-coverage::after => .atom-text-editor .line-number.lcov-info-no-coverage::after,atom-text-editor .line-number.lcov-info-no-coverage::after

  • .atom-text-editor .line-number.lcov-info-has-coverage::after, :host .line-number.lcov-info-has-coverage::after => .atom-text-editor .line-number.lcov-info-has-coverage::after,atom-text-editor .line-number.lcov-info-has-coverage::after

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

Uncaught TypeError: Cannot read property '0' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.9.9
System: Mac OS X 10.11.6
Thrown From: lcov-info package, v0.12.0

Stack Trace

Uncaught TypeError: Cannot read property '0' of undefined

At /Users/adaltojunior/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:84

TypeError: Cannot read property '0' of undefined
    at Object.Tablesort.sortTable (/Users/adaltojunior/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:84:63)
    at HTMLTableCellElement.onClick (/Users/adaltojunior/.atom/packages/lcov-info/node_modules/tablesort/src/tablesort.js:38:22)

Commands

     -0:30.7.0 symbols-view:go-to-declaration (atom-text-editor.editor.is-focused)
     -0:14.4.0 testcoverage:show (atom-text-editor.editor.is-focused)
     -0:04.2.0 lcov-info:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "automaticallyUpdate": false,
    "disabledPackages": [
      "markdown-preview",
      "jshint",
      "language-javascript-jsx"
    ],
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [
      "lcov-info",
      "dark-flat-ui"
    ],
    "themes": [
      "dark-flat-ui",
      "atom-dark-syntax"
    ]
  },
  "lcov-info": {
    "highlightType": "gutter"
  }
}

Installed Packages

# User
atom-jasmine, v0.8.1 (active)
atom-ternjs, v0.15.0 (active)
autocomplete, v0.47.0 (inactive)
autocomplete-json, v5.1.0 (active)
autocomplete-ruby, v0.1.0 (active)
autocomplete-swift, v1.0.2 (active)
autoprefixer, v3.2.1 (inactive)
color-picker, v2.2.2 (active)
coverage-gutter, v0.19.0 (active)
csscomb, v0.3.1 (inactive)
csslint, v1.1.5 (active)
dark-flat-ui, v1.2.4 (active)
editor-stats, v0.17.0 (active)
editorconfig, v1.4.1 (active)
emmet, v2.4.3 (active)
esformatter, v2.0.1 (inactive)
file-icons, v1.7.19 (active)
git-plus, v5.16.2 (inactive)
highlight-line, v0.11.1 (active)
javascript-snippets, v1.2.1 (active)
language-gherkin, v1.0.4 (active)
language-javascript-jsx, v0.3.7 (inactive)
language-swift, v0.4.0 (active)
lcov-info, v0.12.0 (active)
linter, v1.11.16 (active)
linter-eslint, v7.2.4 (active)
linter-jshint, v2.1.0 (active)
markdown-preview-plus, v2.4.0 (active)
merge-conflicts, v1.4.4 (active)
node-debugger, v1.7.0 (active)
project-plus, v0.9.0 (active)
refactor, v0.9.2 (active)
ruby-test, v0.9.17 (inactive)
Stylus, v3.0.0 (active)
sync-settings, v0.7.2 (active)
uglify, v1.2.6 (inactive)
atom-dark-syntax, v0.27.0 (active)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (inactive)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.1 (inactive)
metrics, v0.53.1 (active)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.1 (active)
symbols-view, v0.113.0 (active)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Option to only see gutter

In the main README.md you mention

Highlights are configurable to either show as a line (default) or in the gutter (less obtrusive)

but i can't seem to find the option to set it

Sorry if it is in an obvious location

coverage is mapping the wrong file (when there are underscores (_) in the path

I was using the plug in today and noticed that the results I was getting for the assert_Number.litcoffee file were wrong:

image

Initially I though that the prob was in the lcov data created (maybe an issue with jscover and litcoffee files), but looking at the lcov data using an html reported, showed that the raw data was good:

image

This was also confirmed by looking at the actually lcov data (in lcov.info):

image

Trying to figure out where the data shown in assert_Number.litcoffee was coming from, I looked at the other data in lcov.info and was able to track it down to the Number.litCoffee file:

image

So the prob seems to be that the assert_Number.litcoffee file is showing the code coverage of the Number.litCoffee file

Document workflow to develop and debug this plugin

Can you point me (or write it here) on where I can find more details about customising this Atom plugin. I would like to send a couple PR (Pull Requests) with fixes but am new to Atom Plugin development

Thanks

(Btw sorry for all these issues , I hope you don't mind all these questions)

Solution to auto execute tests and show results

I really helps with TDD if we can have a mode with this workflow

a) make change in the code
b) change is picked up (by watcher or mocha)
c) code is instrumented
d) tests execute
f) lcov data is reloaded

All without user interaction

For reference that is the environment that I had when I was coding in C# with NCrunch (see couple of my blog posts on that topic)

toggled off but still has visible gutter

i think that it would be better if we keep gutter indicators intact and change visibility of the test coverage pane at the same time.

currently, both toggle together.

@Toff9 how can I add this feature to atom-lcov-info?

Toggle test coverage panel from the status bar

I think it would be great if the overall code coverage was always displayed in the status bar and clicking this would toggle the code coverage panel and code highlighting. This way it would be easy to get an overview of your coverage then drill down into more detail if necessary.

Deprecated selector in `lcov-info\styles\lcov-info.atom-text-editor.less`

In lcov-info\styles\lcov-info.atom-text-editor.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • .atom-text-editor .line-number.lcov-info-no-coverage::after, :host .line-number.lcov-info-no-coverage::after => .atom-text-editor .line-number.lcov-info-no-coverage::after,atom-text-editor .line-number.lcov-info-no-coverage::after

  • .atom-text-editor .line-number.lcov-info-has-coverage::after, :host .line-number.lcov-info-has-coverage::after => .atom-text-editor .line-number.lcov-info-has-coverage::after,atom-text-editor .line-number.lcov-info-has-coverage::after

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

Completely hide coverage info

It's quite upsetting that there's no way to hide the coverage info completely.
It would be nice if there was a way to, not only closing the panel but also hiding the gutters or line highlights.

I know that's just the opposite of what was done in https://github.com/jacogr/atom-lcov-info/pull/44/files but I don't understand why would someone want to show the coverage info while he's working on something other than tests.

Also I'd like to raise #39 as I think being able to toggle the coverage info easily could improve a lot the workflow.

Failed to activate the lcov-info package

  1. Toggle lcov

Atom Version: 1.0.19
System: Mac OS X 10.10.5
Thrown From: lcov-info package, v0.10.5

Stack Trace

Failed to activate the lcov-info package

At Failed to execute 'registerElement' on 'Document': Registration failed for type 'coverage-table-row'. A type with that name is already registered.

Error: Failed to execute 'registerElement' on 'Document': Registration failed for type 'coverage-table-row'. A type with that name is already registered.
    at Error (native)
    at Object.<anonymous> (/Users/gerhardk19/.atom/packages/lcov-info/lib/panel-row.coffee:72:29)
    at Object.<anonymous> (/Users/gerhardk19/.atom/packages/lcov-info/lib/panel-row.coffee:77:4)
    at Module._compile (module.js:428:26)
    at Object.defineProperty.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:169:21)
    at Module.load (module.js:353:32)
    at Function.Module._load (module.js:308:12)
    at Module.require (module.js:363:17)
    at require (module.js:382:17)
    at Object.<anonymous> (/Users/gerhardk19/.atom/packages/lcov-info/lib/panel.coffee:6:14)

Commands

     -0:03.4.0 lcov-info:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "language-jade"
    ],
    "themes": [
      "one-dark-ui",
      "chester-atom-syntax"
    ]
  }
}

Installed Packages

# User
Atom-Syntax-highlighting-for-Sass, v0.5.0
atom-jade, v0.3.0
autocomplete-ruby, v0.1.0
chester-atom-syntax, v0.1.1
coverage, v0.6.1
file-icons, v1.6.11
language-slim, v0.5.0
lcov-info, v0.10.5
linter, v1.9.1
linter-coffeelint, v1.1.2
linter-eslint, v3.1.1
linter-jade, v0.3.2
linter-ruby, v1.2.0
pretty-json, v0.4.1
rspec-snippets, v0.4.0
ruby-slim, v0.2.0

# Dev
No dev packages

Uncaught TypeError: ev.getEditor is not a function

[Enter steps to reproduce below:]

  1. open a file
  2. toggle lcov-info
  3. close the file
  4. open a different file

Atom Version: 1.0.15
System: Mac OS X 10.10.5
Thrown From: lcov-info package, v0.10.4

Stack Trace

Uncaught TypeError: ev.getEditor is not a function

At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:128

TypeError: ev.getEditor is not a function
  at /Users/daniel/.atom/packages/lcov-info/lib/lcov-info-view.coffee:24:64
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:342:18
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:352:27)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:339:26
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:345:20)
  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:313:14)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:489:16
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:794:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:823:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:756:13)
  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:564:44
  at flush (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/q/q.js:110:17)
  at doNTCallback0 (node.js:416:9)
  at process._tickCallback (node.js:345:13)

Commands

     -2:59.2.0 core:cancel (atom-text-editor.editor.is-focused)
     -2:58.9.0 core:save (atom-text-editor.editor.is-focused)
     -2:55.4.0 core:move-right (atom-text-editor.editor.is-focused)
  2x -2:55.2.0 core:move-left (atom-text-editor.editor.is-focused)
     -2:53.4.0 core:move-right (atom-text-editor.editor.is-focused)
     -2:49.1.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -2:49.1.0 core:cancel (atom-text-editor.editor.is-focused)
     -2:48.8.0 core:save (atom-text-editor.editor.is-focused)
     -2:45.3.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -2:45.3.0 core:cancel (atom-text-editor.editor.is-focused)
     -2:45 core:save (atom-text-editor.editor.is-focused)
     -0:55.5.0 lcov-info:toggle (atom-text-editor.editor.is-focused)
  3x -0:16.3.0 core:close (atom-text-editor.editor.is-focused)
     -0:03.5.0 fuzzy-finder:toggle-file-finder (atom-pane.pane.active)
  2x -0:02.3.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:01.3.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ],
    "disabledPackages": [
      "coffee-autocompile",
      "vim-mode"
    ],
    "projectHome": "/Users/daniel/Projects"
  }
}

Installed Packages

# User
atom-beautify, v0.28.8
autocomplete-ruby, v0.1.0
change-case, v0.6.0
coffee-compile, v0.16.1
file-icons, v1.5.8
language-glsl, v2.0.1
language-jade, v0.5.1
lcov-info, v0.10.4
linter, v1.2.4
linter-coffeelint, v1.0.0
linter-eslint, v3.0.2
linter-ruby, v0.1.6
ruby-block, v0.3.4
ruby-slim, v0.2.0

# Dev
No dev packages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.