Gawdl3y / atom-build-papyrus

atom-build provider for Papyrus
MIT License
3 stars 0 forks source link

An issue with compiling psc files #3

Open sorsorak opened 6 years ago

sorsorak commented 6 years ago

Hi, first of all thanks for this great project, this and the language package, too. They are really great.

Ok, here is the issue, when I attempt to compile a .psc file outside the ../Scripts/Source folder with another psc file having the same exact name inside the ../Scripts/Source folder, the build package compiles the file within the ../Scripts/Source instead of the external file. I sometimes compile the sources to provide fast patches that I do not want placed in my Scripts or Source folders. That is why I compile outside the Skyrim folder.

I do not have that issue using Papyrus Compiler Plus, by the way. Though, with Atom, having everything in place is a huge advantage. I want to give up Papyrus Compiler Plus.

Regards.

sorsorak commented 6 years ago

Ok, I think I have figured it out. I have compared the input to the compiler exe on both this project and Papyrus+ and the difference was that Papyrus plus adds an extra import to the list of arguments which is the current folder. Adding this manually myself to the yml file solved the issue.