-
Notifications
You must be signed in to change notification settings - Fork 636
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
Code Block issue #4972
Comments
This is an error due to a namespace conflict with |
As for the issue with typing a "." in code block node, it does autocomplete on doing so. This is as designed and is the same behavior that most IDE's exhibit. |
My temporary workaround for the initial issue is to press the space bar after "pt", followed by a backspace. I've experienced similar behavior with other abbreviations but can't think of other examples at the moment. |
I understand it's similar to most IDE's, but in a code block, you're also typing in custom variables. The software should not be making the assumption that I want to pick something from the list. In my example of typing "pt", it is quite bizarre that the software picks "AdaptiveComponent". Having to type in spaces, then delete them etc. to get around this behavior ends up killing the nice fluidity that the code block was designed to achieve. As for custom packages interfering with namespaces, I'll check what I have installed tomorrow. Is the fix already in a daily build? Thanks. |
I see your concern with autocompletion of code block variables. The reason why you see this "bizarre" behavior is because autocomplete does not support completion of variables yet. We will be be adding this feature after which this issue should be solved. The namespace conflict work is in the product since version 0.8.0. |
Hi @dbaldacchino I believe point will be still be redefined, but when using autocomplete both possible namespaces will be shown so you can pick the fully qualified name of the method you want. |
hi @dbaldacchino thanks for clarifying. |
@dbaldacchino I see that even though there is a namespace conflict with "Point", you are not seeing all namespaces having "Point" in autocomplete? This should definitely not be the case. Autocomplete should display all possible collisions. If that's the case, this is a bug. The only way I can think of reproducing this is by installing all the packages that you have shown above and trying it out locally. Will do so and get back to you. Anyway, do you have any idea which package the other "Point" could be coming from? |
Hi, yes I'm not seeing the other namespaces. I really don't know which package it's coming from without uninstalling one by one. I'll post back if I find out tomorrow. Thanks. |
The culprit is Mantis Shrimp by @ksobon. Once uninstalled, Point started working as expected and no errors were thrown. |
When you start typing something in a code block, as soon as you type ".", it automatically selects the first item in the list of commands it finds based on what you type. This shouldn't happen and it should pick the item in the list only when you click Enter. Here's an example when trying to type "pt.x" in a code block similar to what is shown possible in this post: http://dynamobim.com/cbns-for-dummies/. As soon as you type "pt.", it automatically changes "pt" to "AdaptiveComponent". It should only pick "AdaptiveComponent" if I click the Enter key. Right now you have to play games in order to type in the variable name you want if there's a list of items available. Am I missing something or is this a known issue? Thanks.
The text was updated successfully, but these errors were encountered: