AtomLinter/linter-gcc

Uncaught TypeError: Cannot read property 'getPath' of undefined

Opened this issue · 0 comments

Got this error when opening a file. Path to file includes non-ASCII charecters, like Á. It has been failing to detect the path for a while now. It usually put an extra "" at the end of the path, like "C:\folder\project\", but now it just fails. I don't think I've seen this issue on my linux VM.

Atom: 1.17.0 ia32
Electron: 1.3.15
OS: Windows 10
Thrown From: linter-gcc package 0.7.1

Stack Trace

Uncaught TypeError: Cannot read property 'getPath' of undefined

At C:\Users\Sergio\.atom\packages\linter-gcc\lib\config.js:13

TypeError: Cannot read property 'getPath' of undefined
    at Object.module.exports.settings (/packages/linter-gcc/lib/config.js:13:59)
    at Object.buildCommand (/packages/linter-gcc/lib/utility.js:127:23)
    at Object.lint (/packages/linter-gcc/lib/main.js:110:36)
    at /packages/linter-gcc/lib/main.js:180:26

Commands

     -0:26.9.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always)

Non-Core Packages

activate-power-mode 1.4.0 
atom-beautify 0.29.24 
atom-material-syntax-dark 1.0.0 
atom-material-ui 2.0.3 
autocomplete-java 1.2.5 
autocomplete-java-minus 0.14.0 
busy 0.7.0 
busy-signal 1.4.1 
code-peek 1.4.20 
color-picker 2.2.5 
comment 0.6.1 
cpp-refactor 2.2.3 
file-icons 2.1.5 
highlight-selected 0.13.1 
intentions 1.1.2 
java-generator 2.2.3 
java-importer 1.4.1 
language-batch 0.4.0 
linter 2.1.4 
linter-gcc 0.7.1 
linter-javac 1.9.4 
linter-ui-default 1.3.0 
material-monokai-syntax 1.0.1 
material-ui 1.0.10 
merge-conflicts 1.4.4 
minimap 4.28.2 
minimap-bookmarks 0.4.2 
minimap-codeglance 0.4.6 
minimap-cursorline 0.2.0 
minimap-find-and-replace 4.5.2 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.6.1 
minimap-linter 2.0.0 
minimap-pigments 0.2.2 
minimap-selection 4.4.0 
pdf-view 0.58.0 
pigments 0.39.1 
qolor 0.4.1 
refactor 0.11.4