-
Notifications
You must be signed in to change notification settings - Fork 9
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
NullPointerException when editing files #81
Comments
Appears to be an issue caused by deserialization. Perhaps for the record, the issue even occurred after the following steps:
Which excludes deserialization after updating as a cause. |
If deserialization fails, it defaults to an empty state and will rebuild everything, so that should not be an issue. |
When I check out your project and open
I traced this down to the SDF3 rule: I cannot reproduce the |
Thanks for checking out my project. I'll update the rule you refer to and I'll keep an eye on the editor updates to see if can give you more specifics about the exception. |
There was another SDF3 rule with the same problem: |
I've fixed a bug in 0.15.1 that might cause these |
I run into |
@ThijsRay damn, but I was at least able to trigger it with your project on my machine, and hopefully have a fix coming soon, thanks! You can temporarily downgrade to an older version by uninstalling the Spoofax plugin (Help -> Install New Software... -> Click "what is already installed" -> click the plugin without a name and with id spoofax.lwb.eclipse.feature.feature.group -> press Uninstall...), and installing Spoofax again from the update site for that version, for example |
I've fixed another bug in 0.15.3 that causes these |
Thank you for the quick response! While it does seem to fix the
Removing these tests fixes this issue, but commenting them out does not seem to work for me. |
@ThijsRay What do you mean by "commenting them out does not seem to work for me"? I noticed the infinite loop in those tests as well. That is caused by an infinite loop in analysis, possibly due to your Statix specification. Take a look at those tests and related constraints in your Statix specification to check if there is anything wrong. If you can't figure it out, ask for help on Mattermost, @AZWN can probably help you with this. |
I just had a StackOverflow occur. I am on version 0.15.2. Here is the log file: |
@Gohla Perhaps we should add |
I'm closing this issue as the intermittent |
Summary
The spoofax editor crashes when I make changes to a .spt test file, giving a NullPointerException on every keystroke.
What you did
Open a .spt file, make some changes, wait until the editor reloads and immediately crashes with 'SPT Editor Update'.
What you expected to happen
Editor updates and reruns tests
What actually happened
Editor crashes
Context
Additional information
Log of SPT Editor Update:
error-log.txt
The text was updated successfully, but these errors were encountered: