<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/bugs/missing-import-attribution.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-06-14T05:15:52+00:00</updated>
<entry>
<title>Skip processing import declarations after errors (#7393)</title>
<updated>2025-06-14T05:15:52+00:00</updated>
<author>
<name>James Helferty (NVIDIA)</name>
<email>jhelferty@nvidia.com</email>
</author>
<published>2025-06-14T05:15:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=6e570b589f61d126fec6062b4ebdce232cd32810'/>
<id>urn:sha1:6e570b589f61d126fec6062b4ebdce232cd32810</id>
<content type='text'>
* Add test case for missing import attribution

Add a test case that imports a non-existent file, followed by a valid
file. Tests for absence of a bug where slang reports existent files as
non-existent if they're imported after a non-existent file.

* Skip processing imports after errors

Skip processing additional imports after the first error. This
behavior is already observed in Linkage::loadSourceModuleImpl, but
since that happenes after import processing already started, a false
diagnostic gets generated for a missing import.

By hoisting this check out before the import is processed, the
diagnostic message for a missing file is no longer erroneously
generated.

Fixes #6453

* Revert "Skip processing imports after errors"

This reverts commit 6b2fef09782414de4c5e017c4ecb5f2affa0c199.

* Remove early abort of import processing

Partial revert of commit 04f1bad

Reverts an early return in Linkage::loadSourceModuleImpl() whenever any
error diagnostic message has already been generated. This was causing
earlier errors to prevent subsequent imports from succeeding, and was
misattributing them to a missing file.

Fixes #6453

---------

Co-authored-by: Yong He &lt;yonghe@outlook.com&gt;</content>
</entry>
</feed>
