eclipse-plugins icon indicating copy to clipboard operation
eclipse-plugins copied to clipboard

Not refreshing layout when switching between ARM configuration and RISC-V configuration inside single project.

Open AntonKrug opened this issue 7 years ago • 11 comments

Description

A project which has to target 2 platforms shows strange behaviour when switching configurations.

Steps to Reproduce

  1. Import to RISCV project a configuration from ARM project so you could be targeting both platforms by quickly switching.
  2. In project settings now the RISCV is showing as RISCV.
  3. By clicking on the top to switch configuration, now I can switch to ARM and the layout updates,
  4. Switching back to RISCV project will still keep the ARM layout and not update to RISCV.

Expected behaviour:

Switching between configuration should always update to the corresponding target,

Actual behaviour:

RISCV Configuration: 1-riscv-configuration-is-riscv

ARM configuration: 2-arm-configuration-is-arm

Switch back to RISCV will still keep ARM layout: 3-riscv-configuration-is-now-arm

Versions

  • [plug-in version] 2.6.1
  • [Eclipse version] 4.7.2
  • [Java version] 9.0.4
  • [operating system] Windows 10 64 bit
  • [toolchain version] riscv 7.2.0, arm 7.2.1

AntonKrug avatar Feb 05 '18 17:02 AntonKrug

@AntonKrug, I'm not able to reproduce this problem.

I tried with the latest version of the plug-ins and also with an older version.

I creted a new RISC-V project and imported the Debug configuration from an ARM project, saved the new configuration and then entered again in the Properties windows. Switching from ARM to RISC-V and back works as expected.

I think the step to save everything after adding the new configuration is mandatory, otherwise Eclipse might not be aware of the new configuration.

ilg-ul avatar Apr 05 '18 13:04 ilg-ul

If you can reproduce this, please come back with more details. Otherwise please close this issue.

ilg-ul avatar Apr 06 '18 12:04 ilg-ul

Sorry I was still messing with the mtune.

I still have the issue, I think I save everything, but please explain exactly what you mean under "save" ?

AntonKrug avatar Apr 06 '18 12:04 AntonKrug

Close the Properties page and enter again.

ilg-ul avatar Apr 06 '18 12:04 ilg-ul

Ah, yes been doing that and even closing and opening eclipse doesn't help. Importing ARM to RISCV and vice versa is not fixing it as well.

AntonKrug avatar Apr 06 '18 13:04 AntonKrug

Does it happen on Linux too?

ilg-ul avatar Apr 06 '18 13:04 ilg-ul

No Linux works fine even without the "save".

AntonKrug avatar Apr 06 '18 13:04 AntonKrug

Then I doubt it is a problem with the plug-in.

ilg-ul avatar Apr 06 '18 13:04 ilg-ul

Can you replicate it on Windows?

AntonKrug avatar Apr 06 '18 13:04 AntonKrug

Yes. But I have no idea how to address this. As you know, the Tool Settings tab is managed by CDT, based on the toolchain definitions in plugin.xml; I have no control on the redraw logic there.

ilg-ul avatar Apr 06 '18 15:04 ilg-ul

If you can install other regular (non cross) toolchains on your windows, do the same test, and if the behaviour is the same, report it to CDT.

ilg-ul avatar Apr 06 '18 15:04 ilg-ul