SeelabFhdo / lemma

Home of the Language Ecosystem for Modeling Microservice Architecture (LEMMA)
MIT License
33 stars 8 forks source link

LemmaUtils: Import of the same files is possible #48

Closed pelkmann closed 2 years ago

pelkmann commented 2 years ago

Import of the same files is possible with different relative paths or an absolute path and a relative path. The function is getDuplicateIndex in LemmaUtils.

Example1 :

import technology from "../technology/Protocols.technology" as Protocols
import technology from "../domain/../technology/Protocols.technology" as Protocols2

Example2:

import technology from "../technology/Protocols.technology" as Protocols
import technology from "D:\\gitdata\lemma\example models\technology\Protocols.technology" as Protocols2

Both examples are not detected as errors.

frademacher commented 2 years ago

Thanks a lot for the issue! Given your great work on fixing the infinite loop in the cyclic import detection algorithm, may I ask you to also fix this issue?

pelkmann commented 2 years ago

71615fa08af3fda178df939b260bf46283ec5265