VS templates indistinguishable

Thanks

1 Like

I’m sorry, I had missed this part originally. Can you elaborate?

The auto-complete system is kind of forcing.
If I type exactly “A a=new A()”, this would happen:


I suggest to apply the auto-complete only when “Enter” pressed instead of pressing any key.

It looks like Code Completion is showing bad data (but its hard to say coz the gif plays too quickly), thats why this happens. CC should normally only ever auto-complete when in cases where all valid elements are on the list (such as here). There also seems to be an NRE happening in CC after =, which is probably part of/contributes to the problem.

Can you send me the project that shows this?

Thanks, logged as bugs://82396

Just a new Island Swift project with this single file.

The parenthesis problem he’s talking about is probably that the “auto-complete brackets” option of the RemObjects editors in VS settings are disabled and cannot be checked. Also, in VC# editors, when we type a “(“, the editor would automatically append a “)” and set the cursor between the “(“ and “)”, but this is not available in Water and Elements VS Plugin.

the code in your video isn’t swift though,…

Sorry, empty Island C# project

An empty Island project would not have .NET namespaces in the uses clause though. (which might be part of the problem.

Can you send me the exact project where you see this CC behavior, please?

thanx,
marc

Sorry, it’s just for representation, so I deleted that. To reproduce this problem, please do:

  1. Create a new Island C# project
  2. Open the default file
  3. Define a class A just like I did in the gif
  4. Try to write “A a=new A()” inside the main function

Reproduced, thanx. Logged as 82408.

1 Like

bugs://82396 got closed with status duplicate.

bugs://82357 got closed with status fixed.

1 Like

But the problem still exists in build .2399 (The templates in VS2019 still doesn’t have tags and are indistinguishable)

Can you test with .2401?

I would wait for the next stable release for the fix.

You can do something like this at the moment:

Then the listed items are using swift

2 Likes

The auto complete system problem is quite severe. If I want to type “String str;”, when I type the “;”, the auto complete system would replace the “str” with “String”, so that the whole statement would become “String String;”, so annoying. I suggest not selecting an auto complete item by default, and we could select one manually by pressing the key “up”. Also, prevent the auto complete list from showing while typing the name of a class/variable.

Is this now with a newer build that has the fixes from before? (you mentioned last week you’re waiting for a new stable channel build).

(bugs aside, obviously, and this was/is one) items will only be selected by default in a context where only items from the CC list are valid. This this context, indeed, not only should nothing be selected by default, “String” should not even be in the list of items.

obviously, yes. that is part of the same bug, if the context is wrong, it’s wrong both for what to show and for whether to show it ;).

That said, it isn’t for me, so I assume this was fixed since the built you were using, as part of the issue(s) referenced above. Can you retest with 2403 or later please?