Util.CurrentQueryPath remains null after saving (v5)
Problem:
- Util.CurrentQueryPath returns null directly after saving
Steps to reproduce:
- Open new query window
- Enter expression: Util.CurrentQueryPath
- Run query (output = null, expected)
- Save query
- Run query (output = null, NOT expected)
- Switch tab (forth and back)
- Run query (output = null, NOT expected)
- Unload query process (SHIFT-F5)
- Run query (output = null, NOT expected)
Tested in:
- v4.55.03 => OK
- v4.57.02 => OK
- v5.02.03 => NOT OK
Tested on:
- Windows 10
- Windows 2012R2
Workaround:
- Close and reopen query
- Util.CurrentQueryPath returns null directly after saving
Steps to reproduce:
- Open new query window
- Enter expression: Util.CurrentQueryPath
- Run query (output = null, expected)
- Save query
- Run query (output = null, NOT expected)
- Switch tab (forth and back)
- Run query (output = null, NOT expected)
- Unload query process (SHIFT-F5)
- Run query (output = null, NOT expected)
Tested in:
- v4.55.03 => OK
- v4.57.02 => OK
- v5.02.03 => NOT OK
Tested on:
- Windows 10
- Windows 2012R2
Workaround:
- Close and reopen query
Comments
Another workaround I found is to modify the query in some way (add a space at the end for example) after saving it and then run it.
Tested on Windows 7, LINQPad v5.02.03.
http://www.linqpad.net/download.aspx