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

Missing xml-model reference generates multiple similar warnings #795

Closed
fbricon opened this issue Jun 22, 2020 · 0 comments · Fixed by #796
Closed

Missing xml-model reference generates multiple similar warnings #795

fbricon opened this issue Jun 22, 2020 · 0 comments · Fixed by #796
Assignees
Labels
bug Something isn't working DTD validation XSD
Milestone

Comments

@fbricon
Copy link
Contributor

fbricon commented Jun 22, 2020

Try to open this (file.xsd is obviously missing)

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="file.xsd" type="application/xml" schematypens="http://www.w3.org/2001/XMLSchema"?>
<classpath>
	<classpathentry kind="src" output="bin/main" path="src/main/java">
		<attributes>
			<attribute name="gradle_scope" value="main"/>
			<attribute name="gradle_used_by_scope" value="main,test"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="src" output="bin/main" path="src/main/resources">
		<attributes>
			<attribute name="gradle_scope" value="main"/>
			<attribute name="gradle_used_by_scope" value="main,test"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="src" output="bin/test" path="src/test/java">
		<attributes>
			<attribute name="gradle_scope" value="test"/>
			<attribute name="gradle_used_by_scope" value="test"/>
			<attribute name="test" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="src" output="bin/test" path="src/test/resources">
		<attributes>
			<attribute name="gradle_scope" value="test"/>
			<attribute name="gradle_used_by_scope" value="test"/>
			<attribute name="test" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
	<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
	<classpathentry kind="output" path="bin/default"/>
</classpath>

See the multitude of schema_reference.4: Failed to read schema document 'untitled:file.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. warnings:

Screen Shot 2020-06-22 at 5 54 08 PM

@fbricon fbricon added bug Something isn't working validation labels Jun 22, 2020
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 22, 2020
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 22, 2020
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 22, 2020
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 22, 2020
@angelozerr angelozerr added this to the 0.13.0 milestone Jun 22, 2020
@angelozerr angelozerr self-assigned this Jun 23, 2020
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
angelozerr added a commit to angelozerr/lemminx that referenced this issue Jun 23, 2020
angelozerr added a commit that referenced this issue Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DTD validation XSD
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants