bjgf issueshttps://gitlab.bluej.org/bluej/bjgf/-/issues2022-08-05T09:46:23Zhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2191CodePad issues in debugging mode2022-08-05T09:46:23ZPierre Weill-TessierCodePad issues in debugging modeThis issue is related to the support email received on 24/07 on the BlueJ support.
I believe that it is compound of 2 elements :
1) in debugging, the codepad should not hang - is there a way to run some configuration to prevent this des...This issue is related to the support email received on 24/07 on the BlueJ support.
I believe that it is compound of 2 elements :
1) in debugging, the codepad should not hang - is there a way to run some configuration to prevent this despite the BlueJ architecture for the codepad?
2) if users want to execute code in the codepad at a breakpoint, it is likely they want to be able to reach the local scope of the breakpoint to interact with it (like IntelliJ) - and that is another functionality. Can it be done? Is it worth the effort?
The original support message is :
I'm trying to use the Code Pad. It works fine while project execution is NOT pending, e.g., I can open a project, and enter 1+2 into the Code Pad, and get the output 3(int).
However, if I set a breakpoint at the first line of main, and then enter 1+2 into the Code Pad, it seems to hang, pending completion of the project's execution. If I strike Continue, 3(int) is then displayed on completion of the project's execution.
This significantly limits the utility of the Code Pad for debugging. Have I hit a limitation of BlueJ, or is my setup somehow wrong, and causing the Code Pad to hang?https://gitlab.bluej.org/bluej/bjgf/-/issues/2188BlueJ and Greenfoot contact the server using HTTP2022-04-21T14:12:26ZNeil BrownBlueJ and Greenfoot contact the server using HTTPCurrently, BlueJ and Greenfoot contact the server for a limited number of reasons:
- Ping stats.{bluej,greenfoot}.org on load
- Load bluej.org/version.info to check the latest version
- Contact greenfoot.org to log in, fetch scenario...Currently, BlueJ and Greenfoot contact the server for a limited number of reasons:
- Ping stats.{bluej,greenfoot}.org on load
- Load bluej.org/version.info to check the latest version
- Contact greenfoot.org to log in, fetch scenario info and share scenarios
All of this is done via HTTP just because we didn't support HTTPS at the time. These days we should be using HTTPS for these by default. There is also an issue that none of these requests understand redirects (otherwise we could just redirect HTTP to HTTPS server-side); I wonder if that may be possible if we switched to using the Apache web libraries rather than the built-in JDK Connection?Greenfoot 3.7.1https://gitlab.bluej.org/bluej/bjgf/-/issues/2187[GREENFOOT-860] Greenfoot, GreenfootSound, Color … don't autocomplete2022-04-21T14:05:02ZNeil Brown[GREENFOOT-860] Greenfoot, GreenfootSound, Color … don't autocompleteHi,
with the Stride-editor you type something like "gr" and hit cmd+space, all necessary autocompletements like Greenfoot.…, GreenfootImage… etc. are shown and can be used.
With the Java-editor this does not work. See screenshot attach...Hi,
with the Stride-editor you type something like "gr" and hit cmd+space, all necessary autocompletements like Greenfoot.…, GreenfootImage… etc. are shown and can be used.
With the Java-editor this does not work. See screenshot attached.
I used the Stride-editor for some years now, and as you use Greenfoot-methods like isKeyDown(…) all the time the autocompletement is crucial in my opinion.
So I am not sure if this is a bug or somehow intentional. If yes I would ask to urgently fix this - having the students type "Greenfoot." to get to the autocompletements is not only a waste of time but also a source of errors. (Addendum: The same, even worse, with not recognizing locally declared variables - see my comments, sorry, could not delete the wrong one).
(As attaching images is not supported with this interface please find it here: [https://efm.informatik-bg.de/210919_greenfoot-autocomplete-problem.jpg] )
---
**Issue metadata**
- Issue type: Bug
- Priority: MediumGreenfoot 3.7.1https://gitlab.bluej.org/bluej/bjgf/-/issues/2185[GREENFOOT-858] The execution twirler does not show when user code takes a lo...2021-05-12T09:09:36ZNeil Brown[GREENFOOT-858] The execution twirler does not show when user code takes a long time to runGreenfoot has a feature where an execution twirler control shows if the user code takes too long, which provides help if the user has coded an infinite loop or similar. This was broken in version 3.6.1, such that it no longer shows. It...Greenfoot has a feature where an execution twirler control shows if the user code takes too long, which provides help if the user has coded an infinite loop or similar. This was broken in version 3.6.1, such that it no longer shows. It should be fixed.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- 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/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/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/2179[GREENFOOT-852] Blue insert-marker sometimes disappears2021-05-11T16:53:18ZNeil Brown[GREENFOOT-852] Blue insert-marker sometimes disappearsIn school my students with Windows 10 and Greenfoot 3.6.1. While at home (macOS) I never encounter this problem, sometimes the blue marker just disappears at the machines of my students. The Stride-editor ist still working as expected ex...In school my students with Windows 10 and Greenfoot 3.6.1. While at home (macOS) I never encounter this problem, sometimes the blue marker just disappears at the machines of my students. The Stride-editor ist still working as expected except for the case that you can no more see the blue insertion-marker (so you e.g. have to press the space-key to see where you are). Restarting Greenfoot fixes it.
It's happening not often (15 students working 60 minutes, perhaps 2, 3 occurrences of the bug).
No idea how this could be replicated.
---
**Issue metadata**
- Issue type: Bug
- Priority: Low
- Fix versions: 3.7.0https://gitlab.bluej.org/bluej/bjgf/-/issues/2178[GREENFOOT-851] Word misspeling in German2021-05-05T15:57:23ZBabis Kyfonidis[GREENFOOT-851] Word misspeling in Germanin the contextmenu in the Stride editor. The menus entry for deleting a frame is labled "Läschen", whereas "Löschen" would be correct.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0in the contextmenu in the Stride editor. The menus entry for deleting a frame is labled "Läschen", whereas "Löschen" would be correct.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0Pierre Weill-TessierPierre Weill-Tessierhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2176[GREENFOOT-849] Greenfoot.ask in World-constructor not shown / blocking World...2021-05-12T09:08:52ZNeil Brown[GREENFOOT-849] Greenfoot.ask in World-constructor not shown / blocking World-constructionOne of my students created a scenario where in the constructor some code like
{{this.username = Greenfoot.ask("What's your name?")}}
is used. In most cases the project does not compile due to "World needs compiling". I can open cla...One of my students created a scenario where in the constructor some code like
{{this.username = Greenfoot.ask("What's your name?")}}
is used. In most cases the project does not compile due to "World needs compiling". I can open classes, change everything etc. It seems that the input-dialogue somehow is hidden and waits for being sent.
I tried to duplicate the project even manually, and it worked without problems. But after a few recompilations it showed the same behavior.
---
**Issue metadata**
- Issue type: Bug
- Priority: Low
- Fix versions: 3.7.0Neil BrownNeil Brownhttps://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/2173[GREENFOOT-846] Cursor Missing2021-05-12T17:10:57ZBabis Kyfonidis[GREENFOOT-846] Cursor MissingI started GreenFoot, I added a 'try-catch' block and I deleted the outer frame immediately. It generated the empty box described in the 845 bug an the cursor disapeared
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix...I started GreenFoot, I added a 'try-catch' block and I deleted the outer frame immediately. It generated the empty box described in the 845 bug an the cursor disapeared
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.7.0Pierre Weill-TessierPierre Weill-Tessierhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2172[GREENFOOT-845] Delete outer frame creates an empty bordered box2021-05-11T15:15:31ZBabis Kyfonidis[GREENFOOT-845] Delete outer frame creates an empty bordered boxWhen I tried to delete the outer frame an empty box with a black border appeared in the screen
---
**Issue metadata**
- Issue type: Bug
- Priority: Low
- Fix versions: 3.7.0When I tried to delete the outer frame an empty box with a black border appeared in the screen
---
**Issue metadata**
- Issue type: Bug
- Priority: Low
- Fix versions: 3.7.0Pierre Weill-TessierPierre Weill-Tessierhttps://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/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/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/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/2166[GREENFOOT-839] Inspector layout truncates display badly2019-12-03T14:07:19ZNeil Brown[GREENFOOT-839] Inspector layout truncates display badlyThe inspectors (for objects and classes, especially) truncates the display in odd ways, either completely truncating the value or truncating the label, even when there is enough horizontal space available to do better.
---
**Issue meta...The inspectors (for objects and classes, especially) truncates the display in odd ways, either completely truncating the value or truncating the label, even when there is enough horizontal space available to do better.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.6.1Neil BrownNeil Brownhttps://gitlab.bluej.org/bluej/bjgf/-/issues/2165[GREENFOOT-838] On Mac: world is not created on initial start, until window i...2019-11-29T15:38:30ZNeil Brown[GREENFOOT-838] On Mac: world is not created on initial start, until window is clicked onThis bug was caused by the debug VM stealing focus from the main Greenfoot window. On BlueJ we have code to steal the focus back again once the debug VM is loaded, and this code should be made to work in Greenfoot as well.
---
**Issue...This bug was caused by the debug VM stealing focus from the main Greenfoot window. On BlueJ we have code to steal the focus back again once the debug VM is loaded, and this code should be made to work in Greenfoot as well.
---
**Issue metadata**
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.6.1Neil BrownNeil Brownhttps://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 Brown