Skip to content
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 type *Rules is already defined in *.rules (org.eclipse.xtext.xbase.validation.IssueCodes.duplicate_type) #294

Open
SHU-red opened this issue May 30, 2022 · 4 comments
Labels

Comments

@SHU-red
Copy link

SHU-red commented May 30, 2022

Expected Behavior

No error should occur if i open up my homeserver via ssh and open a .rule file

Current Behavior

As i open up any .rule file, the whole rule file is marked as error with the error-text
The type GooglehomeRules is already defined in googlehome.rules.(org.eclipse.xtext.xbase.validation.IssueCodes.duplicate_type)

Screenshot_20220530_145135

Possible Solution

  • It seems that if i open only the folder openhab_conf in VSCode the error is gone
  • But i want to see more of my whole dockerized folders, thats why i always open up my docker_volumes folder
    (openhab_conf is placed at: */docker_volumes/openhab_conf)

Steps to Reproduce (for Bugs)

  1. Open VSCode (my docker_volumes folder is opened as standard and one level higher than openhab_conf)
  2. Open a Random .rule file
  3. The whole .rule-file is marked as error

Context

This issue seemed to already have been discussed but not resolved
eclipse-archived/smarthome#4799

Your Environment

  • Version used: VS-Code Extension version openHAB v1.0.0
  • Environment name and version VS-Code 1.67.0-insider
  • Operating System and version (desktop or mobile, Windows 10, Raspbian Jessie, ...): Manjaro Linux
@SHU-red SHU-red added the bug label May 30, 2022
@WJ4IoT
Copy link

WJ4IoT commented Dec 7, 2022

As complete Linux/Docker/Container/Volume Dummy I experienced the same and was happy to read this solution.
It would be nice if you could start from eg "/opt/" and select from here the lower Docker Volume of Openhab "./conf:/openhab/conf" but on the other hand it is not a normal folder but a Docker Volume and the workaround is simple just add a second entry for this purpose (and yes I am sure the system will slap me on the the ears again the next time I forget to select this entry)

image

@SHU-red
Copy link
Author

SHU-red commented Jan 18, 2023

Any update on this?

@mrJakez
Copy link

mrJakez commented Feb 17, 2023

I have exactly the same issue :-/

@cods69
Copy link

cods69 commented May 9, 2024

I'm randomly getting the same issue now. OH4.1 on Docker. Restarts, renames and re-saves sometimes fix it. Does not always appear. Usual file name is home.rules
The type HomeRules is already defined in home.rules.(org.eclipse.xtext.xbase.validation.IssueCodes.duplicate_type)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants