I'm using the Functional\map function from here as follows:
use function Functional\map;
$jsonData = map($someArray, function ($item) {
return ...;
});
Apparently, atom-autocomplete-php fails at this point because map is a standalone function and is not being accesses via the full namespace. Any idea why this is happening?
Atom Version: 1.8.0
System: Mac OS X 10.11.5
Thrown From: atom-autocomplete-php package, v0.18.9
Stack Trace
Uncaught TypeError: Cannot read property 'map' of undefined
At /Users/ilijatovilo/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:686
TypeError: Cannot read property 'map' of undefined
at Object.module.exports.getMemberContext (/Users/ilijatovilo/.atom/packages/atom-autocomplete-php/lib/services/php-file-parser.coffee:686:32)
at FunctionProvider.module.exports.FunctionProvider.getTooltipForWord (/Users/ilijatovilo/.atom/packages/atom-autocomplete-php/lib/tooltip/function-provider.coffee:18:25)
at FunctionProvider.module.exports.AbstractProvider.showPopoverFor (/Users/ilijatovilo/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:109:24)
at HTMLSpanElement.<anonymous> (/Users/ilijatovilo/.atom/packages/atom-autocomplete-php/lib/tooltip/abstract-provider.coffee:78:22)
at HTMLDivElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
at HTMLDivElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
I'm using the
Functional\map
function from here as follows:Apparently,
atom-autocomplete-php
fails at this point becausemap
is a standalone function and is not being accesses via the full namespace. Any idea why this is happening?Atom Version: 1.8.0 System: Mac OS X 10.11.5 Thrown From: atom-autocomplete-php package, v0.18.9
Stack Trace
Uncaught TypeError: Cannot read property 'map' of undefined
Commands
Config
Installed Packages