Giter Club home page Giter Club logo

Comments (17)

raysilent avatar raysilent commented on July 17, 2024

The same will be under Windows.
The priority is in supporting editing ("compiling") features, I don't think we are capable to go beyond that.

from lslforge.

Corysia avatar Corysia commented on July 17, 2024

Are you saying that LSLForge has dropped support for executing and debugging LSL Scripts? Or is this just an issue for 0.1.9? The functionality was there in 0.1.2. I'd verify it was still there in 0.1.6 if I could get that to install, but it doesn't seem to want to.

https://sapphovix.wordpress.com/2012/10/03/the-simplest-lsl-script-example/

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

It might be a bug then, thank you for any additional info

from lslforge.

Corysia avatar Corysia commented on July 17, 2024

I'm pretty sure it is, since I used to use LSPlus and LSLForge. ;)

But, if you look at the original project page, it reads:

LSLForge

LSLForge is a fork of the popular LSLPlus editing evironment, to provide Linden Scripting Language (LSL) support in Eclipse.

Description

LSLForge is a plugin for the Eclipse platform. The plugin allows editing, "compiling" (gathering code included in modules), executing, and unit testing your Second Life® Linden Scripting Language (LSL) code.

https://code.google.com/archive/p/lslforge/

As it's been quite some time since I used these, I went looking for a page that showed an example of editing and debugging, which is where I found that wordpress article. You'll notice it refers to creating a file with Select File -> New ->New LSLForgeScript which doesn't appear to be an option in 0.1.9. Perhaps this is a problem with Neon or the beginning of the path for tracking down the problem. This prevents the template .lsl and .lslp files from being created. Also, there's no way to create the .simp file, which is needed for debugging.

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

Confirming that the feature worked till 0.1.8
So it was introduced somewhere between 0.1.8 and 0.1.9

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

@Corysia please test it out using https://raw.githubusercontent.com/raysilent/lslforge/0.1.9.1/eclipse/ as a source for plugin

from lslforge.

Corysia avatar Corysia commented on July 17, 2024

I can create a configuration now. Both a LSL Simulator environment and a Unit test environment. But when I try to run it, I get a Java NullPointerException. There's not a lot of debugging info that I can see.

An internal error occurred during: "Launching Test Config".
java.lang.NullPointerException

If there's a debug log with a stacktrace, I'm not sure where to look.

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

@Corysia it would help if you tried https://raw.githubusercontent.com/raysilent/lslforge/0.1.9.1/eclipse/archive/0.1.6 with a fresh eclipse copy

If it doesn't work may be try 0.1.5 etc. untill you find infected configuration.

Then may be you can create a project with the basic files so it could be easity reproduced.
Thank you for your help.

from lslforge.

Corysia avatar Corysia commented on July 17, 2024

@raysilent it looks like 0.1.6 works more like it is supposed to. I think I've uncovered two separate bugs. One, the Project support isn't creating the lsl and lslp files (see below) and two, the LSL doesn't want to run.

Setup

  1. Install Eclipse Neon -- I chose C++ since I do all my Java work in IntelliJ IDEA
  2. In Eclipse, Help -> Install New Software... and used the url https://raw.githubusercontent.com/raysilent/lslforge/0.1.9.1/eclipse/archive/0.1.6 as you suggested.

Creating the LSL Project
In Eclipse:

  1. File -> New -> Other
  2. Select LSLForge Project -> Next
  3. Give it a name: Example
  4. Click Finish

Create a file for the project

  1. File -> New LSLForge Script This option doesn't appear in 0.1.9.1 and should.
  2. Select the Example directory
  3. Enter a name for the script without the suffix. E.g., Example
  4. NoticeExample.lsl and Example.lslp are created. This does not happen in 0.1.9.1 and should.

Example.lsl will contain the following boilerplate
default { state_entry() { llOwnerSay("Hello Scripter"); } }

Create a Run configuration so you can execute your LSL

  1. Run -> Run Configurations...
  2. Right-click Run LSL Simulator and choose New
  3. Give it a name such as LSL Emulator
  4. Select Apply
  5. Select Run

At this point, your LSL should execute and print out "Hello Scripter". But instead, in both 0.1.9.1 and 0.1.6, I'm getting a Java NPE. This makes me think this NPE is a Neon thing, so I will have to try with an older version of Eclipse.

At this point, I do not have a working version of LSLForge running on a Mac (or any other OS), however a friend of mine does. I will find out from him what version of Eclipse he is using and try the same steps above against that and let you know if it executes like it should.

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

I cannot reproduce "Example.lslp - Example.lsl" pair bug. The plugin may require full Java installation though. May be you can try eclipse-java instead?

from lslforge.

Corysia avatar Corysia commented on July 17, 2024

You can't reproduce it? Meaning that you do get both "Example.lsl" and "Example.lslp" created? That's what is supposed to happen, but it doesn't happen with me with Neon and 0.1.9.1. It works as it should with Neon and 0.1.6, meaning that the files are created. I've updated my previous comment to be clearer.

My friend runs Luna 4.4.2 and 0.1.6, which he installed some time ago. I just tried it and it's not behaving right, either, acting more like what I've seen with 0.1.9.1. I will try the Java version next.

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

Yes I do get 2 files, Example.lsl has this:

// Example.lslp 
// 2016-11-13 18:55:57 - LSLForge (0.1.9.1) generated


default {

    state_entry() {
    llOwnerSay("Hello Scripter");
  }
}

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

The second issue is reproducable though. I get

An internal error occurred during: "Launching New_configuration (1)".
java.lang.NullPointerException

and according to logs that's what happens:

!ENTRY org.eclipse.core.jobs 4 2 2016-11-13 18:59:36.128
!MESSAGE An internal error occurred during: "Launching New_configuration (1)".
!STACK 0
java.lang.NullPointerException
    at lslforge.launching.SimLaunchDelegate.launch(SimLaunchDelegate.java:48)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Also creating New Sim Project files produces a window with the following:

Cannot construct lslforge.sim.SimProject$WorldNode as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct lslforge.sim.SimProject$WorldNode as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct lslforge.sim.SimProject$WorldNode as it does not have a no-args constructor
class               : lslforge.sim.SimProject$WorldNode
required-type       : lslforge.sim.SimProject$WorldNode
path                : /worldNode
-------------------------------

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

I'm locally updating xstream to 1.4.9 version and it seems resolving at least visible to me NullPointerExceptions.

Now xstream seems to require other jars, and adding "xmlpull" is giving a more success.

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

@Corysia test it out please (with a clean install)

from lslforge.

Corysia avatar Corysia commented on July 17, 2024

@raysilent I pulled the latest from https://raw.githubusercontent.com/raysilent/lslforge/0.1.9.1/eclipse with Neon (Java) after cleaning my install. The error for the New Sim Project file is gone and I can execute a simple "Hello World" script! I can even set a breakpoint and it'll pause when debugging.

I'm able to insert Objects in to the Sim Project, and assign a script to it. It seems to me, all the basic stuff is working! =)

from lslforge.

raysilent avatar raysilent commented on July 17, 2024

Awesome! I'll close the issue then. We can always create a new one with new details

from lslforge.

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.