Known Bugs

All flavors welcome.
Forum rules
Be kind.
Post Reply
User avatar
richmond62
Posts: 5232
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Known Bugs

Post by richmond62 »

topRight.
Should actually be called rightTop, as item 1 is the horizontal and item 2 of the topRight is the vertical.
The same goes for topLeft, bottomRight and bottomLeft.
Logically, Yes: but if OXT is to carry on in that fine tradition of the programming language supposedly being "English-like" (which it isn't much) you'd
better leave them as they are. 8-)
-
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

I can't change them anyway, as they are hardcoded into the engine.
User avatar
richmond62
Posts: 5232
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Known Bugs

Post by richmond62 »

Ha, Ha, Ha: a bit like a baby's bottom. 8-)

https://youtu.be/5IgB8XKR23c
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

Today, I was sent a stack which details all the open bugs in the LC Quality Control Center
LCBugs2.livecode.zip
(884 KiB) Downloaded 121 times
I also attach a version (if you are browser-widget-impaired, like me on Linux) where it copies the URL to the clipboard for pasting into a 'real' browser ;)
LCBugs.oxtstack-sans-browser.7z
(268.02 KiB) Downloaded 117 times
Some don't apply to us - like the one at the bottom of the list, because it's to do with stuff we don't have in the LCC 9.6.3 - but might make for interesting reading all the same. I'll be going through it, picking out anything of interest.

They don't tell us how to fix stuff, but they do point out the errors that might exist - so it's up to us to come up with our own fixes.
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

And then, I suppose I'll post them here such as:

SpecialFolderPath() bugs

Bug 12674 - specialFolderPath parameters incomplete in the dictionary
Documentation bug says dictionary missing some Params
-this does not list recycle.bin

Bug 18008 - defaultFolder behavior changed in v. 8
Windows 7 Professional (sp 1) running on WMWare fusion, LC 7.1.4:
Specialfolderpath("resources") return correctly on the IDE
On a standalone, returns empty (the result: folder not found)

Bug 10456 - specialFolderPath() improvements
- On Mac, normalize all four char tags to return the system (shared) domain folder by default and add the ability to use '~XXXX' to return the user domain folder.
- On all platforms where appropriate add a 'shared' adjective to denote return the system/global version of the named folder.

Bug 15178 - Move Folder/Files to Trash
the ability to move folders/files to the Trash easily would be a nice feature.
I think specialFolderPath("Trash") for OS X, and possibly specialFolderPath("Recycle") for Win and whatever is appropriate for Linux would be far better.

Bug 8181 - Documentation for "delete file/folder" to elaborate
there is currently no way to move to files to the Recycle bin / trash locations of the various supported operating systems.

There are more than these that show up when you search for SpecialFolderPath. I did not go over all of them so there may be more that need to be attended to.

Bug status: Confirmed
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

Bug 24152 - text baseline feature

The ascent and descent of fonts are completely different on Mac and Windows (and Linux). There is no way to fix the baseline of text in a field which works cross-platform.
LC internally knows where the baseline is, because it can draw an underline under text, always 1 pixel below the baseline. However apparently LC does not expose enough font parameters for the user to compute where the baseline will be [I can get an approximate formula, but it is out by 1 pixel in some cases on a Mac .

Status: Confirmed
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

Bug 24559 - Mac: The dnsServers can return invalid addresses

On macOS, it is possible for `the dnsServers` to return invalid addresses depending on how the addresses are specified in /etc/resolv.conf.

e.g. on the reporter's machine it returns an IPV6 address with a trailing %en1.
DNSServers
(function)
Returns a list of the DNS servers listed in the system's TCP/IP network configuration.
Example usage:

Code: Select all

put the DNSServers into myDNSList
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

Bug 257 - Get rid of orange horizontal bar in Menu Builder

Please try the following (very quick!):
  • Make a new stack. Launch the Menu Builder from the "Tools" menu.
  • Make a new menuBar - name it anything you'd like. Accept the default parameters, including the 3 suggested menus (File, Edit & Help).
  • Click on any of the 3 menus (File/Edit/Help) and add several menuItems - about 10 or so - so that a scrollBar appears in the list of menu Items.
Now: when you click on any of the items in your list, the Menu Builder places an
orange-coloured horizontal bar under the selected item, to indicate where NEW
menu items would be added.
  • Click on a menuItem half-way down your scrollable list.
  • Scroll.
The orange horizontal divider does not accompany the scrolling.

Bug status: It's actually designed to work this way, tldr: "the orange horizontal bar is probably not needed at all. It is just a matter of establishing that new menuItems are added BELOW the current selection"
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

Bug 24557 - Hard crash when printing an empty field with blendLevel
Create a new stack with a new field
Set true to this properties of the field :
visible, sharedText, dontWrap, lockText, showFocusBorder, autoTab,ThreeD
all other to false
set the foregroundColor to red
set the blendLevel to 50
Do menu File/Print card
this result in hard crash
Notice : it doesn't crash if the field is not empty

Bug status: confirmed
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

Bug 24508 - Widget browser renderization problems (MacOS)

We are using the widget browser to embed the visualization of a web page in an application but the web page content is not showed properly in the widget browser when it comes to show a "modal" dialog window in the web page.
In fact while Safari or Chrome browsers show the page correctly, the widget browser the web page is not rendered properly and the modal window is shown under other components of the page.
This happens only on MacOS environment.
example.png
example.png (65.78 KiB) Viewed 7968 times
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

I could go on, but you get the idea...
mwieder
Posts: 136
Joined: Sun Jun 04, 2023 3:32 am
Location: Berkeley, CA, US, Earth
Contact:

Re: IDE stack patches

Post by mwieder »

Fix for bugzilla #16880

Replacement for the setMenuProperties handler in stack revMenuBar.
* If you disable both menubar icons and text LC hangs.
* Fix this by adjusting the minimum height

Code: Select all

on setMenuProperties
   set the height of me to 47
   set the resizable of me to false
   
   local tTitle
   set the itemDelimiter to "-"
   put "LiveCode" into tTitle
   if item 1 of the version ends with ".0" then
      put space & char 1 to -3 of item 1 of the version after tTitle
   else
      put space & item 1 of the version after tTitle
   end if
   if item 2 of the version is not empty then
      put space & "(" & item 2 of the version && item 3 of the version & ")" after tTitle
   end if
   set the itemDelimiter to comma
   set the title of me to tTitle
   
   local tScreenRect
   put revIDEStackScreenRect(the short name of this stack, true) into tScreenRect

# 2020.02.29 mdw [[ bugfix_16880 ]]
   set the minHeight of me to 19

   if the platform is not "MacOS" then
      if item 3 of the screenRect is 800 then
         set the topLeft of me to item 1 to 2 of tScreenRect
      else 
         --screen rect > 800 by 600
         if revIDEGetPreference("cREVMenuBarTopLeft") is empty
         then set the loc of me to item 1 of revIDEStackScreenLoc(the short name of this stack), 54
         else set the topLeft of me to revIDEGetPreference("cREVMenuBarTopLeft")
      end if
   end if
   
   if the platform is "MacOS" then
      set the decorations of me to empty
      set the topLeft of me to item 1 to 2 of tScreenRect
   else
      set the decorations of me to "default"
   end if
end setMenuProperties
mwieder
Posts: 136
Joined: Sun Jun 04, 2023 3:32 am
Location: Berkeley, CA, US, Earth
Contact:

Re: IDE stack patches

Post by mwieder »

* fix for bugzilla #19216
Replacement for handler ideOpenStack in stack revextensionlibrary

* The resetAll command doesn't really close all sockets.

Code: Select all

on ideOpenStack pCard
   local tStack
   put the long id of the owner of pCard into tStack
   if sSampleFileName is not empty and tStack is the long id of stack sSampleFileName then
      ## Clear the filename to force the user to choose save location if saving the stack
      put the short name of tStack into sOpenedStacksA[sSampleFileName]
      set the filename of tStack to empty
      put empty into sSampleFileName
      revIDEUnsubscribe "ideOpenStack"
   end if
end ideOpenStack
mwieder
Posts: 136
Joined: Sun Jun 04, 2023 3:32 am
Location: Berkeley, CA, US, Earth
Contact:

Re: IDE stack patches

Post by mwieder »

* fix for bugzilla #21976
*
* there are many unnecessary rect custom properties in preferences stack

replacement for handler revIDEClearPaletteRects in stack revIDELibrary

Code: Select all

on revIDEClearPaletteRects
   local tPropArray, tCleanProps
   local tKeys
   put the customProperties of stack "revPreferences" into tPropArray
   put the keys of tPropArray into tKeys
   repeat for each line tKey in tKeys
      if tKey begins with "palette_rect_/tmp" then
      else if tKey begins with "palette_rect_Stack_" then
      else
         put tPropArray[tKey] into tCleanProps[tKey]
      end if
   end repeat
   # put the keys of tPropArray into msg
   set the customProperties of stack "revPreferences" to tCleanProps
end revIDEClearPaletteRects
mwieder
Posts: 136
Joined: Sun Jun 04, 2023 3:32 am
Location: Berkeley, CA, US, Earth
Contact:

Re: Known Bugs

Post by mwieder »

I have fixes for the following bug reports:
16880
19216
21631
22124
22199
22205
22211
22297
22555
22798
22803
22826
22953
22977
23252
23999

as well as some fixes to bugs and enhancements that haven't been reported to bugzilla
Some of these are:
* Since there's currently no way to select the text in a modal dialog
* set fixedLineHeight false in the Answer dialog
* select the text in an Ask dialog
* double-click a label field in pointer mode to edit the text
* localizeAskDialogButtons: partially fixes bug 21006
* https://forums.livecode.com/viewtopic.p ... 1&start=15
* The navigationArrows global property shouldn't always default to true
* Make the menubar a palette on linux so that it stays on top of other stacks.
* Return real error messages when configuring Android sdk and jdk
* reloadStack patch provides an escape mechanism for bug #1061
* Bernd Niggemann's patches for the IDE's Project Browser
* Importing svg gradients fails on underline
* Ensure non-blocking tsNet calls

Lemme know if you're interested in any of those.
User avatar
tperry2x
Posts: 3488
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Known Bugs

Post by tperry2x »

Some of this I'd say isn't a bug, more a feature (where have I heard that before :lol: )
Or rather, not a bug but a user preference thing.
* Since there's currently no way to select the text in a modal dialog
* select the text in an Ask dialog
Are these both something that people want / expect?

* Make the menubar a palette on linux so that it stays on top of other stacks.
If you do this, you may run into window juggling (window focus issues) in Linux (going back a bit here to OXT 0.92), and the severity varies depending on which window manager you are running.
Image

(See Help menu > Guides > "Building a user interface" > System Palettes (unsupported under Linux).)

Largely eliminated shortly afterwards by not using palette modes on linux.
mwieder
Posts: 136
Joined: Sun Jun 04, 2023 3:32 am
Location: Berkeley, CA, US, Earth
Contact:

Re: Known Bugs

Post by mwieder »

Are these both something that people want / expect?
Yes, they're both from complaints on the LC web forum.
But that's why I said "bug fixes and enhancements"

On linux you can alt-grab a stack to move it, even if it's otherwise partly obscured by another window.
User avatar
OpenXTalkPaul
Posts: 2796
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Known Bugs

Post by OpenXTalkPaul »

tperry2x wrote: Sat Aug 03, 2024 7:11 pm Bug 24559 - Mac: The dnsServers can return invalid addresses

On macOS, it is possible for `the dnsServers` to return invalid addresses depending on how the addresses are specified in /etc/resolv.conf.
Would be helpful to know "depending on how the addresses are specified" means exactly.
A work-around could probably just read the DNS resolver resolv.conf file directly.
User avatar
OpenXTalkPaul
Posts: 2796
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Known Bugs

Post by OpenXTalkPaul »

tperry2x wrote: Sat Aug 03, 2024 7:05 pm
Bug 15178 - Move Folder/Files to Trash
the ability to move folders/files to the Trash easily would be a nice feature.
I think specialFolderPath("Trash") for OS X, and possibly specialFolderPath("Recycle") for Win and whatever is appropriate for Linux would be far better.
Is that a bug? Seems like a feature request.
On macOS Trash directory for each user on macOS is in ~/.Trash which should be the same path you'd get with:

Code: Select all

put specialFolderPath(Home) &"/.Trash" into tTrashPath
Which you should be able to easily use to move files/folders into that folder using revCopy, copy/delete file/folder with URL or path, using AppleScript VBScript, or via a shell command.

Maybe we should have a 'Unified Disk Operations library' to implement a bunch of file/folder relate connivence scripts.
For example, it world be great to have an ever-present stackPath() handler, instead of having to re-write the same handler every time you need that functionality.
mwieder
Posts: 136
Joined: Sun Jun 04, 2023 3:32 am
Location: Berkeley, CA, US, Earth
Contact:

Re: Known Bugs

Post by mwieder »

Re: 24559
The script is the same for OSX and linux. In dskmac.cpp and dsklnx.cpp it's a hard-coded constant expression as follows:

Code: Select all

#define DNS_SCRIPT "repeat for each line l in url \"binfile:/etc/resolv.conf\";\
if word 1 of l is \"nameserver\" then put word 2 of l & cr after it; end repeat;\
delete last char of it; return it"
So while it's not equipped to handle ipv6 addresses, it's a simple fix in the engine to allow them.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests