bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.63k stars 94 forks source link

The intelephense server crashed 5 times in the last 3 minutes. The server will not be restarted. #2319

Closed KleberMarioti closed 2 years ago

KleberMarioti commented 2 years ago

The intelephense server crashed 5 times in the last 3 minutes. The server will not be restarted.

cakebake commented 2 years ago

Same here. Instantly after I purchased the (very cheap #2245) license.

KleberMarioti commented 2 years ago

I paid for a support that doesn't exist

shuffgy commented 2 years ago

Have you found a fix for this or is the plugin just not usable now?

KleberMarioti commented 2 years ago

So far the bug has not been resolved by those responsible for the product.

bmewburn commented 2 years ago

Are there any errors in the output tab that might help debug this? Anything further you can share about your project? Does it happen with all folders or just one in particular? Can you share any code that reproduces the issue?

shuffgy commented 2 years ago

@bmewburn i'm using docker and ddev for TYPO3 and NEOS Projects. As soon as i open any php File the Indexing starts and the crashing happens.

Output Tab shows this:

[Info  - 10:57:27 AM] Indexing started.
/Users/<myusername>/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/node_modules/intelephense/lib/intelephense.js:2
(()=>{var __webpack_modules__={63113:(e,t,n)=>{"use strict";var r,i,a,o,s,c;e=n.nmd(e),r=e,(c=n(15686)).js_beautify=c.js,c.css_beautify=c.css,c.html_beautify=c.html,r.exports=(a=c,o=c,(s=function(e,t){return i.js_beautify(e,t)}).js=(i=c).js_beautify,s.css=a.css_beautify,s.html=o.html_beautify,s.js_beautify=i.js_beautify,s.css_beautify=a.css_beautify,s.html_beautify=o.html_beautify,s)},91985:e=>{"use strict";function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.t=t},21977:e=>{"use strict";var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var r=e.exec(this.__input);return!r||t&&e.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var r,i="";return e&&(r=this.match(e))&&(i+=r[0]),!t||!r&&e||(i+=this.readUntil(t,n)),i},n.prototype.readUntil=function(e,t){var n,r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var r=null,i="g";return n&&t&&(i="y"),"string"==typeof e&&""!==e?r=new RegExp(e,i):e&&(r=new RegExp(e.source,i)),r},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.g=n},3428:e=>{"use strict";function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function n(e,t){var n,i={};for(n in e=r(e))n!==t&&(i[n]=e[n]);if(t&&e[t])for(n in e[t])i[n]=e[t][n];return i}function r(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},t.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Ei=t},18430:e=>{"use strict";function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,r){this.__indent_cache=new n(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_inde[Error - 10:57:27 AM] Connection to server got closed. Server will not be restarted.
KleberMarioti commented 2 years ago

@bmewburn

ERR Connection got disposed.: Error: Connection got disposed. at Object.dispose (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:238477) at Object.dispose (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:122920) at w.handleConnectionClosed (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:123133) at w.handleConnectionClosed (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:183539) at t (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:121222) at invoke (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:240091) at o.fire (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:240852) at Y (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:227735) at invoke (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:240091) at o.fire (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:240852) at d.fireClose (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:248734) at ChildProcess. (/home/kleber/.vscode/extensions/bmewburn.vscode-intelephense-client-1.8.2/lib/extension.js:1:259700) at ChildProcess.emit (node:events:538:35) at maybeClose (node:internal/child_process:1092:16) at Socket. (node:internal/child_process:451:11) at Socket.emit (node:events:526:28) at Pipe. (node:net:687:12)

taelisa commented 2 years ago

@KleberMarioti

Hi, I had same problem, in my case it was a laravel project and I solved excluding some folder from indexing using "intelephense.files.exclude". If you have big folders or cache folders you can try excluding them.

KleberMarioti commented 2 years ago

@KleberMarioti

Hi, I had same problem, in my case it was a laravel project and I solved excluding some folder from indexing using "intelephense.files.exclude". If you have big folders or cache folders you can try excluding them.

Thanks for the tip

tercero-ainuler commented 10 months ago

Still not fixed [Error - 8:01:42 AM] The intelephense server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory 1: 00007FF7EB543376 node::SetTracingController+80086 2: 00007FF7EB543603 node::OnFatalError+595 3: 00007FF7EE232D33 v8::Function::NewInstance+835 4: 00007FF7EE232CC3 v8::Function::NewInstance+723 5: 00007FF7EE2FB6E7 v8::CppHeap::CollectGarbageInYoungGenerationForTesting+74791 6: 00007FF7ECE42184 v8::MicrotasksScope::PerformCheckpoint+543732 7: 00007FF7ECE3D4DD v8::MicrotasksScope::PerformCheckpoint+524109 8: 00007FF7ECE2D8D7 v8::MicrotasksScope::PerformCheckpoint+459591 9: 00007FF7ED038863 v8::MicrotasksScope::PerformCheckpoint+2601683 10: 00007FF7ED3560BA v8_inspector::String16::String16+2535018 11: 00007FF7ED356A08 v8_inspector::String16::String16+2537400 12: 00007FF7C4C92966 [Error - 8:01:42 AM] The intelephense server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.