-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Run -> Run as -> Launch in LSL Sim #37
Comments
The same will be under Windows. |
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/ |
It might be a bug then, thank you for any additional info |
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:
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 |
Confirming that the feature worked till 0.1.8 |
@Corysia please test it out using |
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.
If there's a debug log with a stacktrace, I'm not sure where to look. |
@Corysia it would help if you tried 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. |
@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
Creating the LSL Project
Create a file for the project
Example.lsl will contain the following boilerplate Create a Run configuration so you can execute your LSL
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. |
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? |
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. |
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");
}
} |
The second issue is reproducable though. I get
and according to logs that's what happens:
Also creating New Sim Project files produces a window with the following:
|
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. |
@Corysia test it out please (with a clean install) |
@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! =) |
Awesome! I'll close the issue then. We can always create a new one with new details |
It's possible I'm doing something wrong, but I keep getting an error when trying to run/debug an LSL script. I'm choosing Run -> Run as -> Launch in LSL Sim
The simple script is:
The text was updated successfully, but these errors were encountered: