-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The same expression is evaluated differently depending on context
#742
Comments
Hi @przepompownia ! I'm not sure where nvim logs the However, you are correct, the Although I think your case is valid, I'm not sure how to handle this in the best way... Let me know your thoughts. |
Hi @zobo! Thanks for explaining the reason for which you replaced Maybe error 300 ( Being aware of the side effects I would like to have this unsafe but very useful action in DAP client UI-s (by default, currently nvim-dap uses In practice, on Linux, I use the defaut path to nvim-dap log: I do not any knowledge what requests are sent by other DAP adapters to evaluate visual selection content. |
I tried to check what does expr (using it like
|
Hi! Here is a related issue about this feature in vscode microsoft/vscode#18058 Regarding your problem. The only way I see to solve this is by either agreeing on a different context - that would require I would like to avoid using Just an idea. |
From the practical perspective it good to know for me about reasons mentioned there and that there is a way to strict evaluation at one's own risk. Thanks to rcarriga/nvim-dap-ui@2ae01a8 dap-ui users can now choose the context manually. Thanks @zobo for explanation and insight into the problem. |
PHP version:
8.1.2 (cli)
Xdebug version:
v3.1.2
VS Code extension version:
1.23.0
Your launch.json:
Xdebug php.ini config:
Code snippet to reproduce:
Problem: I try to evaluate
$x + 1
with two different contexts:hover
andrepl
. I can get the correct result only withrepl
.VS Code extension logfile (from setting
"log": true
in launch.json):Where to find the log given set
log
totrue
? Currently I have nvim's dap log instead, but it seems to give enough information:Xdebug logfile: I see different requests
With
context = hover
(the adapter seems to try to evaluate nonexisting property?):With
context = repl
See also the initial problem rcarriga/nvim-dap-ui#80 For reproduction I created a portable environment (make and neovim need to be installed additionally): https://github.com/przepompownia/dap-ui-test
The text was updated successfully, but these errors were encountered: