This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 268235

Summary: [newcodemodel] Broken GDB tooltips and complex expressions in Fortran projects
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal Keywords: NO82
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 269115    
Bug Blocks:    

Description soldatov 2016-09-27 15:47:54 UTC
main.f95
------------------------------
integer aaa
integer bbb
integer ccc
aaa = 1
bbb = 2
print *, 'Hi' ! set line breakpoint in this line
ccc = aaa + bbb
end

Scenario:
- Create Fortran F95 project
- Set line breakpoint on "print *, 'Hi'" line
- Start debugger
- Move mouse cursor on aaa, bbb and ccc variables
==> No any feedback from IDE. In GDB log I see:

26-data-evaluate-expression "aaaprint<EOS>"
27-break-enable 1 2
28-gdb-set unwindonsignal off
26^error,msg="No symbol \"aaaprint\" in current context."
(gdb) 
27^done
(gdb) 
28^done
(gdb) 
29-break-disable
30-gdb-set unwindonsignal on
29^done
(gdb) 
30^done
(gdb) 
31-data-evaluate-expression "bbbprint<EOS>"
32-break-enable 1 2
33-gdb-set unwindonsignal off
31^error,msg="No symbol \"bbbprint\" in current context."
(gdb) 
32^done
(gdb) 
33^done
(gdb) 
34-break-disable
35-gdb-set unwindonsignal on
34^done
(gdb) 
35^done
(gdb) 
36-data-evaluate-expression "cccprint<EOS>"
37-break-enable 1 2
38-gdb-set unwindonsignal off
36^error,msg="No symbol \"cccprint\" in current context."
Comment 1 Maria Tishkova 2016-11-10 09:04:52 UTC
The problem is in MacroExpansionDocProviderImpl
if APTTraceFlags.USE_CLANK is false everything works just fine 
but if USE_CLANK is true I will get 
bbbprint<EOS>
instead  of
bbb
Comment 2 Alexander Simon 2017-03-29 08:17:43 UTC
Bug is reproduced in development build only.