D_Parser icon indicating copy to clipboard operation
D_Parser copied to clipboard

Files that are not open in a workbench won't get parsed (affects code completion/debugging)

Open llucenic opened this issue 12 years ago • 1 comments

In a D project, modules defined in files not currently open in the workbench of Mono-D won't be correctly recognized. I think it is possible to simulate this also on the code completion feature failure.

Based on your comments it might be connected to some rework made on the parsed cache list or so recently.

Tested on Ubuntu 12.10.

steps to reproduce (on MonoDevelop.Debugger.Gdb.D project):

  1. open a tester project: tester 1.5) (optional) when the solution layout causes automatic reopening of any of the project's files, close all of them and reopen the solution/project - it is crutial not at all to have any of the files ever open (once a file is open, it can be safely closed without malfunction of the following)
  2. open the file main.d and place a breakpoint here: main.d#L26
  3. start debugging using MonoDevelop.Debugger.Gdb.D
  4. once program stops on the bp, variable loc_nd won't get correctly recognized

May be connected closely to issues #1 and #2 .

llucenic avatar Feb 26 '13 22:02 llucenic

Concerning the completion it actually does parse everything that is inside the project directory, just tested it..but concerning the debugging..well, gotta check this

aBothe avatar Mar 01 '13 13:03 aBothe