sinedied / hads

:books: Markdown superpowered documentation for Node.js
MIT License
167 stars 28 forks source link

hads -o ,Unhandled rejection Error: ENOENT: no such file or directory #7

Closed yjdwbj closed 7 years ago

yjdwbj commented 7 years ago

Hi,all. what is the problem,when i run this commands.

lcy@debian8:~$ npm install -g hads
/home/lcy/DEV_LIB/node-v6.10.0-linux-x64/bin/hads -> /home/lcy/DEV_LIB/node-v6.10.0-linux-x64/lib/node_modules/hads/bin/hads
/home/lcy/DEV_LIB/node-v6.10.0-linux-x64/lib
└── hads@1.3.2 

lcy@debian8:~$ hads -o 
Unhandled rejection Error: ENOENT: no such file or directory, stat '/home/lcy/.kde/socket-debian8'
    at Error (native)

<--- Last few GCs --->

   89267 ms: Mark-sweep 1324.2 (1408.9) -> 1323.9 (1414.9) MB, 719.4 / 3.1 ms [allocation failure] [GC in old space requested].
   89960 ms: Mark-sweep 1323.9 (1414.9) -> 1323.9 (1414.9) MB, 692.9 / 3.3 ms [allocation failure] [GC in old space requested].
   90670 ms: Mark-sweep 1323.9 (1414.9) -> 1325.9 (1408.9) MB, 709.2 / 3.7 ms [last resort gc].
   91378 ms: Mark-sweep 1325.9 (1408.9) -> 1327.9 (1408.9) MB, 707.9 / 3.3 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x1cb573acfb51 <JS Object>
    1: indexOf [native string.js:~68] [pc=0x1ddfad760b22] (this=0x253da50a479 <String[158]: /home/lcy/poky/build/tmp/work/x86_64-linux/acl-native/2.2.52-r0/acl-2.2.52/include/sys/sys/acl/acl/sys/sys/sys/acl/acl/acl/sys/sys/sys/sys/sys/sys/buildmacros>,z=0xf349893c2f1 <String[1]\: \x00>,A=0x1cb573a04381 <undefined>)
    2: arguments adaptor frame: 1->2
    3: /* anonymous */ [/home/lcy/DEV_LIB/n...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [node]
 2: 0x10983ec [node]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
 5: v8::internal::Factory::NewRawOneByteString(int, v8::internal::PretenureFlag) [node]
 6: v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, v8::internal::PretenureFlag) [node]
 7: v8::internal::StringMatch(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::String>, int) [node]
 8: v8::internal::Runtime_StringIndexOf(int, v8::internal::Object**, v8::internal::Isolate*) [node]
 9: 0x1ddfad2092a7
Aborted
sinedied commented 7 years ago

Seems like the indexer is having trouble with the /home/lcy/.kde/socket-debian8 file. You may try creating a new empty folder and running the tool from there?

When searching for markdown files, a filter should be applied to ignore .* files or folder anyways, so I'll take this as a bug.