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

DTD Validation and GIT Repository throws errors in GIT files #861

Closed
Thallius opened this issue Jan 21, 2023 · 2 comments · Fixed by #874
Closed

DTD Validation and GIT Repository throws errors in GIT files #861

Thallius opened this issue Jan 21, 2023 · 2 comments · Fixed by #874
Assignees
Labels
bug Something isn't working validation
Milestone

Comments

@Thallius
Copy link

Thallius commented Jan 21, 2023

Hi,

easy to reproduce:

Create a new folder:

Create a DTD file person.dtd

<!ELEMENT person ( first_name) >

Create a XML file person.xml with a reference to a DTD file

<?xml version="1.0" ?>
<?xml-model href="person.dtd" ?>
<person>
<first_name>Michael</first_name>
</person>

Go to terminal and type

git init
git add *
git commit -m"test"

Now vscode will show you a problem in file

person.xml.git

  • Cannot find DTD 'git:/c%3a/Users/path_to_my_folder/person.dtd

which normally does not exists

@datho7561
Copy link
Contributor

I can reproduce this bug. That's really odd, vscode-xml should only be reporting errors on open files.

@datho7561 datho7561 added bug Something isn't working validation labels Jan 23, 2023
@datho7561
Copy link
Contributor

This is a known issue from other VS Code extensions, I'll take a look into it.

datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 3, 2023
@datho7561 datho7561 self-assigned this Feb 3, 2023
@datho7561 datho7561 added this to the 0.25.0 milestone Feb 3, 2023
datho7561 added a commit to datho7561/vscode-xml that referenced this issue Feb 15, 2023
datho7561 added a commit that referenced this issue Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validation
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants