Compiler Error
Milad
Posts: 4
Hi guys,
For the past few days I get an annoying error when compiling my code where it says:
“Compile Failed; File %s could not be created” and it creates a .mf file in the same directory.
Nothing seems to fix this issue, other than moving the .axs file to a different location. Every time I have moved my source code to a different location it complies fine. But the same problem will happen another day with another .axs file, and I have to move that too, and eventually I end up moving around all my project files!
Does anyone know why this happens and what the solution is?
Thanks
For the past few days I get an annoying error when compiling my code where it says:
“Compile Failed; File %s could not be created” and it creates a .mf file in the same directory.
Nothing seems to fix this issue, other than moving the .axs file to a different location. Every time I have moved my source code to a different location it complies fine. But the same problem will happen another day with another .axs file, and I have to move that too, and eventually I end up moving around all my project files!
Does anyone know why this happens and what the solution is?
Thanks
0
Comments
To make this easier to find with the forum search:
L20215: Compile failed; File %s could not be created
Edit: I wonder if it has something to do with a corruption of the manifest file that Duet uses, or maybe the .axs file that is included in every duet module that actually contains the command to load the duet module. I don't know if that makes any sense, but it would seem to fit the problem to me.
I’m not running any duet modules in this project, but it’s a fairly large workspace with more than 10 systems. It has lots of Netlinx modules, TP and IR files. Maybe this is what confuses the complier, as I don’t have this issue with any other smaller projects.
Exporting the workspace seems to fix the issue by the way, thanks for that.
I just got the same error myself. I commented out the 2 DUET module declarations and it compiled after that.
Because I'm not using them at the moment, it's not a big deal. But, I wonder if that error will rear it's ugly head again when I go to use them....
I used to run into this fairly often. I develop on a MacBook Pro with the AMX software in a VM.
My issue was that the paths were too long to the various folders.
I solved this by keeping the folder structure under 256 characters by mapping my source folder to a drive instead of using network shares.
Regards
Craig
Clearly something to do with the workspace, but didn't look into it much further.
Many of my systems sit in a Dropbox folder as well. The one that generated the error does too. Usually I get an Netlinx Pre-Processor Error 0 error with systems compiling in the Dropbox folder and simply clicking "save" and compiling again will make the error go away... Although I have to do this very often, the 2 extra mouse clicks hasn't been too bad.
Also, word of caution... if you get the (Netlinx Pre-Processor Error 0) compiler error, make sure you hit "SAVE" before you close Netlinx Studio. If not it will corrupt the file leaving you an empty .axs file!
But this error is completely new to me.
Also noteworthy, I use a solid state hard drive in my computer. I'm not sure if that might contribute to the problem or not. I don't remember getting strange compiler errors before I upgraded HDDs though.
It would be nice if this were fixed in NS, at least pop up a window saying files are in use by another app, can't compile, or try again.... It's only a matter of time before someone gets totally screwed by loosing a days work or more depending on when the last sync occurred.
I exported/imported the workspace to the desktop and it worked. Copied it to the desired folder and it was broken again. Then I exported it directly to the dropbox folder and it has been working ok on both computers.
That still means it is partially broken since it should be completely portable.
I did some research then which I can't remember in detail but there are some different modes Windows open/read/write files (Exlusive flags selected).
And AMX are probably handling the files as one would do when there where only one computer and no syncing and networks.
I often see compiler problem and files with zero space if I have dropbox or any other sync service active.
Ex. Compiler error when compiling bigger projects with plenty of files.
Zero file after compiling a just saved file that is part of the project (save file, dropbox syncs and compiling during this).
Goggle Drive shuts down for me when this compiler issue occurs
I just accepted that AMX would not change there file procedure and I had to pause SYNCING during my work.
One thing that would be nice where if you could have a preset delay on the DROPBOX syncing.