Created attachment 126131 [details]
test case as described in the bug description
Bug #96915 added the capability to refer to names that are defined in another worksheet and have local scope there with the normal syntax for names, i.e. Sheet!Name. Before that, this notation only worked for names either having local scope in the same worksheet or global names. But what is still missing is for INDIRECT to deal with this situation too. The attached spreadsheet "local-name-test.ods" has a local name "pi_value" in Sheet2, and Sheet1 contains one cell refering to with in the formula =Sheet2!pi_value and another cell with the formula =INDIRECT("Sheet2!pi_value"). In LibreOffice 220.127.116.11 the first cell works, the second gives a #REF! error. I don’t know Calc well enough to be certain that there is no other function that would have to be adapted to deal with references of this kind, so I’d be grateful if whoever gets to work on this bug could give this some thought. Thank you for fixing Bug #96915 and for considering this one.
Build ID: 757f221bceb74ccc2af8a9d4de149076280f29fb
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default;
TinderBox: Win-x86@39, Branch:master, Time: 2016-06-23_23:54:55
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
The bug is still present in 6.06rc1.
Build ID: 1:6.0.6~rc1-1~bpo9+1
CPU threads: 4; OS: Linux 4.9; UI render: default; VCL: gtk3;
Locale: en-GB (en_DE.utf8); Calc: group
I don’t see much point in testing for a regression, because before Eike Rathke fixed bug #96915 (also reported by me) regarding the same issue outside INDIRECT, it would have been unthinkable that this would have worked. And ever since that other was fixed, I have been intermittently checking whether it would work – it never did.
The bug is still present in Libreoffice 18.104.22.168 (Arch Linux version number). I am finding it hard to understand that a formula that works outside of INDIRECT works but when given to INDIRECT as a string it does not.
(In reply to sebalis from comment #4)
> I am finding it hard to understand that a formula that works outside of
> INDIRECT works but when given to INDIRECT as a string it does not.
You sure dug into the code and at least tried to understand what's happening there?
Could be suitable for an interesting EasyHack, marking as such.
sc/source/core/tool/interpr1.cxx ScInterpreter::ScIndirect() and follow / step through in debugger what's happening there for a sheet local scope name.
> You sure dug into the code and at least tried to understand
> what's happening there?
No, sorry. I commented from the point of viewer of a user who has worked as a software developer, but not with C++. I did not expect to be able to gain insights in an appropriate amount of time so I’ve never looked at the LibreOffice code. What I did think is that the task is the same – parsing a string into a structure representing the formula, and then executing it – so I really thought that your work on bug bug #96915 (thanks again) would have covered the INDIRECT case immediately.
*** Bug 123790 has been marked as a duplicate of this bug. ***