Error 2 Internal error!

Phalanger Tools for Visual Studio [?] is complete PHP/Phalanger integration into Visual Studio development environment.

Error 2 Internal error!

Postby tgo57 » February 7th, 2013, 5:38 am

I just downloaded and installed the latest version of Phalanger on Visual Studio 2010, I created a new WinForm project in PHP and got this error on the following code:

Error 2 Internal error!
Please, report this bug via http://www.codeplex.com/WorkItem/List.a ... =Phalanger.
Additional information:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: startIndex
at System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)
at PHP.Core.Parsers.Lexer.GetTokenString(Position position)
at PHP.Core.Parsers.Parser.CSharpNameToken(Position position)
at PHP.Core.Parsers.Parser.DoAction(Int32 action)
at PHP.Core.Parsers.GPPG.ShiftReduceParser`2.Reduce(Int32 rule_nr)
at PHP.Core.Parsers.GPPG.ShiftReduceParser`2.Parse()
at PHP.Core.Parsers.Parser.Parse(SourceUnit sourceUnit, TextReader reader, ErrorSink errors, IReductionsSink reductionsSink, Position initialPosition, LexicalStates initialLexicalState, LanguageFeatures features)
at PHP.Core.Reflection.SourceFileUnit.Parse(ErrorSink errors, IReductionsSink reductionsSink, Position initialPosition, LanguageFeatures features)
at PHP.Core.Reflection.PureCompilationUnit.ParseSourceFiles[S](IEnumerable`1 sourceUnits, ErrorSink errors, LanguageFeatures languageFeatures)
at PHP.Core.Reflection.PureCompilationUnit.Compile(IEnumerable`1 sourceFiles, PureAssemblyBuilder assemblyBuilder, CompilationContext context, Encoding encoding)
at PHP.Core.Emit.PureAssemblyBuilder.Build(IEnumerable`1 sourceFiles, CompilationContext context)
at PHP.Core.ApplicationCompiler.Compile(ApplicationContext applicationContext, CompilerConfiguration config, ErrorSink errorSink, CompilationParameters ps)
-1 1 WindowsApplication1




<?
namespace WindowsApplication1 {

[\Export]
partial class Form1 extends \System\Windows\Forms\Form {

private $components = NULL;

public function __construct()
: parent() {
$this->InitializeComponent();
}

public function InitializeComponent() {
$this->SuspendLayout();
//
// Form1
//
$this->AutoScaleDimensions = new \System\Drawing\SizeF(6, 13);
$this->AutoScaleMode = \System\Windows\Forms\AutoScaleMode::Font;
$this->ClientSize = new \System\Drawing\Size(595, 266);
$this->Name = "Form1";
$this->Text = "Form1";
$this->Load->Add(new \System\EventHandler(array($this, "Form1_Load")));
$this->ResumeLayout(false);
}

private function Form1_Load(\System\Object $sender, \System\EventArgs $e) {

echo "Hello World";
}
}
}
?>
tgo57
 
Posts: 1
Joined: February 7th, 2013, 5:29 am

Re: Error 2 Internal error!

Postby Jakub Misek » February 7th, 2013, 9:57 am

Thank You! I can replicate the issue, so we can fix this in a future update.
Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Error 2 Internal error!

Postby Jakub Misek » February 12th, 2013, 11:12 am

This issues has been fixed. If you compile Phalanger from sources (https://github.com/DEVSENSE/Phalanger), you should not be experiencing this again.

Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to Phalanger Tools

Who is online

Users browsing this forum: No registered users and 16 guests

cron

User Control Panel

Login

Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 16 guests