Code Monkey home page Code Monkey logo

Comments (1)

rat-moonshine avatar rat-moonshine commented on May 16, 2024

I can able to reproduce the null error @piotrzarzycki21 described; and also able to reproduced when it happens and when not.

@joshtynjala can you please take a look into this (?) Following is the detailed test case.

This same null point exception I noticed when running Moonshine source or sample project's source, in VSCodeDebugProtocolPlugin.as:

image

  • Create a new Flex Desktop project
  • Add a method inside <fx:Script> area - here's the source I used to test
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
					   xmlns:s="library://ns.adobe.com/flex/spark" 
					   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
			   
	<fx:Declarations>
	</fx:Declarations>
	
	<fx:Script>
		<![CDATA[
			
			private function abcd():void
			{
				trace("help!");
			}
			
		]]>
	</fx:Script>
	
	<s:Label fontSize="24" fontWeight="bold" textAlign="center"
		horizontalCenter="0" verticalCenter="0"
		text="Hello World!"/>
		<s:Button label="hei!" click="abcd()"/>
</s:WindowedApplication>
  • Add a breakpoint to the above method's (abcd) code
  • Run the application with Build & Debug
  • Application starts in debugging mode, clicking on the button highlights and stop to the breakpoint in appropriate place
  • Stop the debugger
  • Add the abcd() in application's creation complete event now:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
					   xmlns:s="library://ns.adobe.com/flex/spark" 
					   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="abcd()">
  • Restart Build & Debug
  • Moonshine thrown above null pointer exception
  • Removing the method running from application's creationComplete event makes everything good again

from moonshine-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.