Comments (17)
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.
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.
It might be a bug then, thank you for any additional info
from lslforge.
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.
Confirming that the feature worked till 0.1.8
So it was introduced somewhere between 0.1.8 and 0.1.9
from lslforge.
@Corysia please test it out using https://raw.githubusercontent.com/raysilent/lslforge/0.1.9.1/eclipse/
as a source for plugin
from lslforge.
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.
@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.
@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
- Install Eclipse Neon -- I chose C++ since I do all my Java work in IntelliJ IDEA
- In Eclipse,
Help -> Install New Software...
and used the urlhttps://raw.githubusercontent.com/raysilent/lslforge/0.1.9.1/eclipse/archive/0.1.6
as you suggested.
Creating the LSL Project
In Eclipse:
File -> New -> Other
- Select
LSLForge Project -> Next
- Give it a name:
Example
- Click
Finish
Create a file for the project
File -> New LSLForge Script
This option doesn't appear in 0.1.9.1 and should.- Select the
Example
directory - Enter a name for the script without the suffix. E.g.,
Example
- Notice
Example.lsl
andExample.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
Run -> Run Configurations...
- Right-click
Run LSL Simulator
and chooseNew
- Give it a name such as
LSL Emulator
- Select
Apply
- 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.
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.
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.
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.
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.
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.
@Corysia test it out please (with a clean install)
from lslforge.
@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.
Awesome! I'll close the issue then. We can always create a new one with new details
from lslforge.
Related Issues (20)
- Unit Tests do not recognize utf8 characters HOT 1
- https://code.google.com/archive/p/lslforge/issues/6 HOT 1
- LSLForge compiles lslp to lsl much too often even without code changes HOT 2
- HTTP_CUSTOM_HEADER constant missing HOT 1
- Preparing for 0.1.9 release HOT 16
- New constants, OBJECT_GROUP_TAG and OBJECT_TEMP_ATTACHED
- Bug - llGetSubString and llList2List make wrong result on negative out of range index (when Optimizations are enabled) HOT 8
- 0.1.9.1 release HOT 5
- 0.1.9.2 help wanted HOT 5
- 0.1.9.3 help wanted HOT 3
- HTTP_USER_AGENT and OBJECT_RENDER_WEIGHT are missing HOT 2
- Generated Java from the Haskell module produces wrong code
- Returning void value(function) when optimization enabled kills LSLForge process HOT 3
- 'global variable XXX not found' error at nested import
- Solving plugin not working anymore after Eclipse 2021-09 update HOT 2
- PRIM_PROJECTOR (42) missing HOT 15
- LSLForge Native Executable Problem HOT 3
- 1024 bytes vs 255 in llGetNotecardLine HOT 2
- Info: a fork with recent 2024 functions exists.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lslforge.