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

Incorrect parsing of class identifiers #414

Open
AntoineGautier opened this issue Dec 10, 2024 · 0 comments
Open

Incorrect parsing of class identifiers #414

AntoineGautier opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AntoineGautier
Copy link
Collaborator

AntoineGautier commented Dec 10, 2024

Adding the following logging statement into Store.get() of server/src/parser/parser.ts, we get unexpected outputs as shown below. This indicates an issue with parsing the identifier of some class elements during the call to the factory function _constructElement.

    const paths = this._generatePaths(path, basePath);
    console.log(`Trying to generate path for: ${path} - ${basePath}\nAnd got paths: ${paths} length ${paths.length}`);

Output:

Trying to generate path for: "<html>
<p>
This component defines the interface for models with two fluid ports.
...
Trying to generate path for: Economizer - Real
And got paths: Real.Economizer,Economizer length 2
Trying to generate path for: group - Real
And got paths: Real.group,group length 2
Trying to generate path for: __cdl - Real
And got paths: Real.__cdl,__cdl length 2
Trying to generate path for: __cdl - Buildings.Controls.OBC.ASHRAE.G36.AHUs.MultiZone.VAV.Controller
Trying to generate path for: Dialog - Real
And got paths: Real.Dialog,Dialog length 2
Trying to generate path for: tab - Real
And got paths: Real.tab,tab length 2
Trying to generate path for: tab - Buildings.Controls.OBC.ASHRAE.G36.AHUs.MultiZone.VAV.Controller
And got paths: Buildings.Controls.OBC.ASHRAE.G36.AHUs.MultiZone.VAV.Controller.tab,Buildings.Controls.OBC.ASHRAE.G36.AHUs.MultiZone.VAV.tab,Buildings.Controls.OBC.ASHRAE.G36.AHUs.MultiZone.tab,Buildings.Controls.OBC.ASHRAE.G36.AHUs.tab,Buildings.Controls.OBC.ASHRAE.G36.tab,Buildings.Controls.OBC.ASHRAE.tab,Buildings.Controls.OBC.tab,Buildings.Controls.tab,Buildings.tab,tab length 10
@AntoineGautier AntoineGautier added the bug Something isn't working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant