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

Tries to read non-existing file Marlin\src\inc\Conditionals-1-axes.h #87

Open
fritzw opened this issue Oct 14, 2024 · 2 comments
Open

Comments

@fritzw
Copy link

fritzw commented Oct 14, 2024

The extension crashes with the following stack trace. I have no idea why it would try to open a file called Marlin\src\inc\Conditionals-1-axes, since nothing in Marlin references a file of that (or similar) name.

This is on VsCode 1.94.2

[error] Error: ENOENT: no such file or directory, open 'c:\Users\me\ownCloud\3D\Pastamatic - Filament Spool Winder\AnetA8Firmware\Marlin-2.0.9.7\Marlin\src\inc\Conditionals-1-axes.h'
	at Object.readFileSync (node:fs:450:20)
	at t.readFileSync (node:electron/js2c/node_init:2:9900)
	at combinedSchema (c:\Users\me\.vscode\extensions\marlinfirmware.auto-build-2.1.56\abm\editor.js:123:18)
	at Object.<anonymous> (c:\Users\me\.vscode\extensions\marlinfirmware.auto-build-2.1.56\abm\editor.js:150:17)
	at Module._compile (node:internal/modules/cjs/loader:1373:14)
	at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
	at Module.load (node:internal/modules/cjs/loader:1215:32)
	at Module._load (node:internal/modules/cjs/loader:1031:12)
	at c._load (node:electron/js2c/node_init:2:13801)
	at e._load (file:///c:/Users/me/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:10870)
	at t._load (file:///c:/Users/me/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:166:22422)
	at i._load (file:///c:/Users/me/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:4651)
	at Module.require (node:internal/modules/cjs/loader:1240:19)
	at require (node:internal/modules/helpers:179:18)
	at Object.<anonymous> (c:\Users\me\.vscode\extensions\marlinfirmware.auto-build-2.1.56\extension.js:14:16)
	at Module._compile (node:internal/modules/cjs/loader:1373:14)
	at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
	at Module.load (node:internal/modules/cjs/loader:1215:32)
	at Module._load (node:internal/modules/cjs/loader:1031:12)
	at c._load (node:electron/js2c/node_init:2:13801)
	at e._load (file:///c:/Users/me/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:10870)
	at t._load (file:///c:/Users/me/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:166:22422)
	at i._load (file:///c:/Users/me/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:158:4651)
	at Module.require (node:internal/modules/cjs/loader:1240:19)
	at require (node:internal/modules/helpers:179:18)
	at hB.xb (file:///c:/Users/me/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:166:23767)
	at async Promise.all (index 0)
@fritzw
Copy link
Author

fritzw commented Oct 16, 2024

Okay, the problem is not in the build system or the AutoBuildMarlin extension (or maybe it is, you decide). The problem is that the zip files you get from https://marlinfw.org/meta/download/ (e.g. https://codeload.github.com/MarlinFirmware/Marlin/zip/refs/tags/2.1.2.4 ) do not contain the Conditionals-1-axes.h file.

Compare the two zip files on the left and the git clone result on the right:

Screenshot 2024-10-16 215018

No idea what is going on here, but either the zip files are incomplete, or the AutoMarlinBuild extension is not compatible with the zip files. I don't have an explanation for either of those two cases.

@fritzw fritzw changed the title Tries to read non-existing file Marlin\src\inc\Conditionals-1-axes. Tries to read non-existing file Marlin\src\inc\Conditionals-1-axes.h Oct 16, 2024
@fritzw
Copy link
Author

fritzw commented Oct 16, 2024

Okay, the file in question is apparently only present in the bugfix-2.1.x branch. Still, no idea why AutoBuildMarlin would try to open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant