bjgf issueshttps://gitlab.bluej.org/bluej/bjgf/-/issues2021-04-29T11:50:45Zhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2171[GREENFOOT-844] Mouse API a bit incomplete2021-04-29T11:50:45ZNeil Brown[GREENFOOT-844] Mouse API a bit incompleteGreenfoot has a MouseInfo class that you can obtain with Greenfoot.getMouseInfo(), and that has a getActor() method which gets the actor involved; the actor that was clicked on, or dragged. But there's no way at the moment to tell the d...Greenfoot has a MouseInfo class that you can obtain with Greenfoot.getMouseInfo(), and that has a getActor() method which gets the actor involved; the actor that was clicked on, or dragged. But there's no way at the moment to tell the difference between these events (and the user may well want to know the difference). I suggest we should add a method to MouseInfo to tell the difference between clicking and dragging. We could also allow recording the start position that the actor was dragged from; this might need some design thinking.
---
**Issue metadata**
- Issue type: Bug
- Priority: Mediumhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2164[GREENFOOT-837] Add image sharing to GifImage helper class2021-04-29T10:41:52ZNeil Brown[GREENFOOT-837] Add image sharing to GifImage helper classThe GifImage class in Greenfoot does two things: (1) it loads a GIF and splits it into an array of images and (2) it allows the GIF to be run and tells you which image is the valid one at any point in time. The first part is expensive, ...The GifImage class in Greenfoot does two things: (1) it loads a GIF and splits it into an array of images and (2) it allows the GIF to be run and tells you which image is the valid one at any point in time. The first part is expensive, especially on the gallery where Javascript image creation can be slow. It would be good for GIF files that are used by multiple actors to be able to share that part, but then animate separately. I think the two obvious solutions are either (A) a hidden internal static cache of loaded GIF images or (B) a copy constructor for GifImage that lets it share the loaded images but run at its own rate. A is easier for beginners, but also can cause correctness problems (e.g. if the file is modified between loads) so I think B may be best.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0Neil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2160[GREENFOOT-833] Add "new X()" above image preview when holding shift and prev...2021-04-29T10:41:29ZNeil Brown[GREENFOOT-833] Add "new X()" above image preview when holding shift and previewing shift-clickAs discussed in our meeting, when the user goes to shift-click to add actors into the world, the conceptual link to calling the object's constructor is not clear, especially compared to the case where they right-click the class and selec...As discussed in our meeting, when the user goes to shift-click to add actors into the world, the conceptual link to calling the object's constructor is not clear, especially compared to the case where they right-click the class and select to call the constructor from the context menu. We can help with this by adding text like "new Crab()" above the crab when the user holds shift and moves the mouse over the world, to emphasise that clicking is calling the default constructor of the actor in question.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0Neil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2139[GREENFOOT-812] Object names not shown on inspectors2021-04-29T10:41:12ZDavin McCall[GREENFOOT-812] Object names not shown on inspectorsWhen inspecting an actor object, no object name is shown. The name is useful for typing as a parameter to another method (although it is still possible to insert the name by clicking the object when the interactive method call dialog is ...When inspecting an actor object, no object name is shown. The name is useful for typing as a parameter to another method (although it is still possible to insert the name by clicking the object when the interactive method call dialog is open).
This was part of GREENFOOT-811.
---
**Issue metadata**
- Issue type: Task
- Priority: High
- Fix versions: 3.7.0Neil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2168[GREENFOOT-841] Stride abstract methods don't load/save params correctly2021-04-28T11:14:13ZNeil Brown[GREENFOOT-841] Stride abstract methods don't load/save params correctlyStride's loading and saving code for MethodProtoElement doesn't align. The loading code expects the parameters to be children of a "params" sub-element, whereas the saving code saves them as children of the method. This means when you ...Stride's loading and saving code for MethodProtoElement doesn't align. The loading code expects the parameters to be children of a "params" sub-element, whereas the saving code saves them as children of the method. This means when you reload a Stride abstract method with parameters, the parameters disappear.
Also, while fixing: it's impossible to add a new parameter to an abstract method using only the keyboard. Pressing right at the end of the name does not go into the empty parameters like it should (like it does for non-abstract methods).
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0Babis KyfonidisBabis Kyfonidishttps://gitlab.bluej.org/bluej/bjgf/-/issues/2031[GREENFOOT-697] The lines got messed up in the Java editor. 2021-04-27T12:29:34ZAmjad Altadmri[GREENFOOT-697] The lines got messed up in the Java editor. No clue why, nor there are any error messages. Test on HiDPI.
See attached screenshot.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0No clue why, nor there are any error messages. Test on HiDPI.
See attached screenshot.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0Neil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2183[GREENFOOT-856] GF installer associates GF with too many file types2021-04-27T12:26:04ZNeil Brown[GREENFOOT-856] GF installer associates GF with too many file typesUnder Linux Mint (currently 20, but the behaviour has been observed for years), the Greenfoot installer seems to associate Greenfoot with many file types that it should leave alone. The extremely annoying consequence is that every time I...Under Linux Mint (currently 20, but the behaviour has been observed for years), the Greenfoot installer seems to associate Greenfoot with many file types that it should leave alone. The extremely annoying consequence is that every time I click on a file of type ".txt" or ".bluej", Greenfoot launches and tries to open the file.
---
**Issue metadata**
- Issue type: Bug
- Priority: Mediumhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2181[GREENFOOT-854] No way to select between multiple overlapping objects when ca...2021-04-27T12:19:03ZNeil Brown[GREENFOOT-854] No way to select between multiple overlapping objects when calling a methodIf you have many objects on top of each other, and you want to pass one as an argument to a method call by clicking on it, there's no way to choose between the objects. Works fine for left-clicking one object, or right-clicking multiple...If you have many objects on top of each other, and you want to pass one as an argument to a method call by clicking on it, there's no way to choose between the objects. Works fine for left-clicking one object, or right-clicking multiple (where we show a context menu to choose).
We should also show a context menu when left-clicking on multiple objects.
---
**Issue metadata**
- Issue type: Bug
- Priority: High
- Fix versions: 3.7.0Neil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2184[GREENFOOT-857] No reasonable fix offered2021-04-20T11:28:56ZMichael Kölling[GREENFOOT-857] No reasonable fix offeredNo reasonable fix is offered for 'Path' and 'Paths'.
They should offer "import java.nio.file.Path" (or Paths) as a fix.
Line of code used in source:
Path path = Paths.get("target");
---
**Issue metadata**
- Issue type: Bug
-...No reasonable fix is offered for 'Path' and 'Paths'.
They should offer "import java.nio.file.Path" (or Paths) as a fix.
Line of code used in source:
Path path = Paths.get("target");
---
**Issue metadata**
- Issue type: Bug
- Priority: Low
- Fix versions: 3.6.1Neil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2182[GREENFOOT-855] Greenfoot editor: Tab selection menu unusable when many files...2021-03-08T15:19:04ZNeil Brown[GREENFOOT-855] Greenfoot editor: Tab selection menu unusable when many files open in editorUnder Linux Mint Xfce:
* Open many files in the Greenfoot editor (so many that their titles fill the window's width)
* click the downwards-pointing triangle button that appears to the right (I presume it is supposed to offer a tab se...Under Linux Mint Xfce:
* Open many files in the Greenfoot editor (so many that their titles fill the window's width)
* click the downwards-pointing triangle button that appears to the right (I presume it is supposed to offer a tab selection menu?)
* the menu does open, but it is only a few pixels wide and seems to have a number of empty entries;
* the menu *does* have the correct number of entries, and tab selection *does* work. It's just not rendered correctly.
I apologize for my stupidity, but I seem to be unable to attach a screenshot in Jira.
---
**Issue metadata**
- Issue type: Bug
- Priority: Mediumhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2180[GREENFOOT-853] Google Maps API issue2021-03-03T15:46:17ZNeil Brown[GREENFOOT-853] Google Maps API issueThe Google Maps API has updated such that you can't use it now without an API key (see https://cloud.google.com/maps-platform/user-guide/account-changes/ for some details). We should either document how to obtain an API key, or just rem...The Google Maps API has updated such that you can't use it now without an API key (see https://cloud.google.com/maps-platform/user-guide/account-changes/ for some details). We should either document how to obtain an API key, or just remove the Map class entirely if it's not easy to get a free key for educational use.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0Neil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/1756[GREENFOOT-412] Classes in a folder in the project hang Greenfoot2020-04-21T12:18:23ZNeil Brown[GREENFOOT-412] Classes in a folder in the project hang GreenfootSteps to reproduce:
\\- Take a project, such as Greeps (where this was initially observed)
\\- Make a copy of that folder, and put it inside the original (so you now have Greeps, with lots of Java files, and Greeps/Greeps with lots of J...Steps to reproduce:
\\- Take a project, such as Greeps (where this was initially observed)
\\- Make a copy of that folder, and put it inside the original (so you now have Greeps, with lots of Java files, and Greeps/Greeps with lots of Java files)
\\- Open the outer project, and click Compile.
Greenfoot will hang completely. I've traced the BlueJ side, at least, and it hangs in Bluej.deletegateClassEvent \-\- adding a debug statement revealed that event.getBClass().getName() was "Greeps.Earth", suggesting that it thinks the inner Greeps folder is a package. Presumably the Greenfoot side is then hanging while looking for this class (which exists, but doesn't have a "package Greeps" declaration), which locks up the whole system. Terminating the Greenfoot VM seems to reset the system into a working state thereafter, although I'm not 100% sure how.
This bug is to some extent a "don't do that", but Greenfoot at least shouldn't lock up in this circumstance.
---
**Issue metadata**
- Issue type: Bug
- Priority: LowNeil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2079[GREENFOOT-748] Scope highlights in the the Java editor are messed up while e...2020-04-21T11:36:05ZAmjad Altadmri[GREENFOOT-748] Scope highlights in the the Java editor are messed up while editing.When an empty line is deleted, and again if entered again. See attached photos for steps.
---
**Issue metadata**
- Issue type: Bug
- Priority: MediumWhen an empty line is deleted, and again if entered again. See attached photos for steps.
---
**Issue metadata**
- Issue type: Bug
- Priority: Mediumhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2167[GREENFOOT-840] Stride: getWorld()-autocomplet sets cursor inside the braces2020-04-21T11:25:54ZNeil Brown[GREENFOOT-840] Stride: getWorld()-autocomplet sets cursor inside the bracesWhen I write
{code:java}
this.getWo{code}
and press CTRL-space to autocomplete, the phrase is correctly autocompleted to
{noformat}
this.getWorld(){noformat}
but the cursor is sitting inside the braces. As getWorld gets no paramet...When I write
{code:java}
this.getWo{code}
and press CTRL-space to autocomplete, the phrase is correctly autocompleted to
{noformat}
this.getWorld(){noformat}
but the cursor is sitting inside the braces. As getWorld gets no parameters this is bad. The cursor should sit behind the last brace.
---
**Issue metadata**
- Issue type: Bug
- Priority: Mediumhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2169[GREENFOOT-842] Missing confirmation dialog when deleting class in Greenfoot2020-04-21T11:25:39ZNeil Brown[GREENFOOT-842] Missing confirmation dialog when deleting class in GreenfootWhen you delete a class in Greenfoot, you should get an "Are you sure?" confirmation dialog, but at the moment, Greenfoot just deletes the class without further prompting.
---
**Issue metadata**
- Issue type: Bug
- Priority: MediumWhen you delete a class in Greenfoot, you should get an "Are you sure?" confirmation dialog, but at the moment, Greenfoot just deletes the class without further prompting.
---
**Issue metadata**
- Issue type: Bug
- Priority: Mediumhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2174[GREENFOOT-847] Indentation problem 2020-04-21T11:24:16ZBabis Kyfonidis[GREENFOOT-847] Indentation problem When you load a newly created class in Java and then you delete the comment line on the act() method and then try to add a new line in it, you can write code without indentation.
---
**Issue metadata**
- Issue type: Bug
- Priority: Me...When you load a newly created class in Java and then you delete the comment line on the act() method and then try to add a new line in it, you can write code without indentation.
---
**Issue metadata**
- Issue type: Bug
- Priority: Mediumhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2175[GREENFOOT-848] Indentation problem 22020-04-15T11:21:36ZBabis Kyfonidis[GREENFOOT-848] Indentation problem 2New class. Load it. Create some empty lines before the comments. Set the cursor on the edge of the comments add start backspacing. Indentation is messed up
---
**Issue metadata**
- Issue type: Bug
- Priority: LowNew class. Load it. Create some empty lines before the comments. Set the cursor on the edge of the comments add start backspacing. Indentation is messed up
---
**Issue metadata**
- Issue type: Bug
- Priority: Lowhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2106[GREENFOOT-775] Find controls in Java editor can be wrongly disabled2020-04-09T16:47:27ZAmjad Altadmri[GREENFOOT-775] Find controls in Java editor can be wrongly disabledIn many cases, the 'Next' and 'Prev' buttons get disabled wrongly. I.e. they get disabled even though there are strings which match the searched one.
Some cases:
* from the find textbox, press tab many times to reach the editor, the...In many cases, the 'Next' and 'Prev' buttons get disabled wrongly. I.e. they get disabled even though there are strings which match the searched one.
Some cases:
* from the find textbox, press tab many times to reach the editor, they will get disabled and stay even if the textbox gets focused again.
* search for `);` and replace them all with ` );`. The buttons will became disabled.
* pressing `undo`.
These buttons can be re-enabled by editing the fid textbox or check/uncheck the 'Match case' checkbox.
---
**Issue metadata**
- Issue type: Task
- Priority: MediumNeil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/1779[GREENFOOT-435] Editor preferences need rethinking2020-02-17T13:07:45ZMichael Kölling[GREENFOOT-435] Editor preferences need rethinkingThe editor preference pane currently applies to the Java editor only.
We either need another one for the Stride editor, or two sections in the editor pref pane \\- maybe the font size should apply to both.
In any case, there should be ...The editor preference pane currently applies to the Java editor only.
We either need another one for the Stride editor, or two sections in the editor pref pane \\- maybe the font size should apply to both.
In any case, there should be a numerical preference setting for font size in preferences that applies to the Stride editor.
---
**Issue metadata**
- Issue type: Task
- Priority: LowNeil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2093[GREENFOOT-762] Stride printing issues2020-02-17T13:07:44ZHamza Hamza[GREENFOOT-762] Stride printing issuesWhen printing Stride source code, it does not show the complete line if the line is long [^STRIDE.pdf]
---
**Issue metadata**
- Issue type: Task
- Priority: MediumWhen printing Stride source code, it does not show the complete line if the line is long [^STRIDE.pdf]
---
**Issue metadata**
- Issue type: Task
- Priority: Medium