Exception in thread "main" java.lang.IllegalArgumentException: Invalid Structure field in class com.sun.jna.platform.win32.WinBase$SYSTEM_INFO #2837
Replies: 5 comments 3 replies
-
Hello! I encountered the same problem on Windows 11. Have you finally resolved it :) |
Beta Was this translation helpful? Give feedback.
-
@Clonasser The Mill version of the OP is rather old. Can you please show your versions, the failing command and the full error message. |
Beta Was this translation helpful? Give feedback.
-
@lefou THX! I am trying to configure the SpinalHDL development environment on a new PC. Prior to this, I had already studied Spinal (using IntelliJ) on another Windows 10 system's laptop for a period of time. So when I encountered this error, I first thought about whether it was caused by Windows 11, but soon I realized that there was also this issue on Windows 10 systems, which made me a bit confused. But I don't use “Mill”. I configure the development environment following the setup steps provided by spinalhdl documents (https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Getting%20Started/Install%20and%20setup.html). In my last configuration process, it was possible to work without Mill (for some reasons, I could only use build.sbt instead of .sc). Therefore, I did not configure mill. The information for my other tools is as follows:
My SBT code is as follows:
When I try to compile any module in my project. IntelliJ will report an error :( Eg., when I try to run the following code (omitted import&package section)
The full error message is as follows :(
Thank you very much for your attention. This issue has indeed left me very confused🥺 I am also willing to try Mill if I can come up with some solutions. |
Beta Was this translation helpful? Give feedback.
-
@Clonasser Thank for all these details. I appears to me, that your issue is completely with SpinalHDL and not with Mill at all. You said yourself, your not using Mill and the reported stack trace does not contain a single entry originating in Mill. You should report the issue to the SpinalHDL project. This issue tracker is only for Mill, the build tool and it's contrib plugins. Feel free to add a link after you opened an issue there. I'm going to move this issue into a discussion, as the OP was using Mill, although an old versions, but the issue seems to be unrelated to Mill itself. |
Beta Was this translation helpful? Give feedback.
-
@lefou Thank you for your patience. You are correct, this is not an issue related to Mill, and I apologize for disturbing you. In fact, I only discovered this issue when Google my problem (it's really difficult to find someone who has the same problem as me), so I would like to ask @liubenyuan if he has solved this problem. At present, I have discovered that this is caused by conflicts in the dependencies of certain packages and have attempted to use Mill or SBT to solve it (regardless of which tool is used). Wishing me all the best and I will report this issue in SpinalHDL project. Apologize again for the inconvenience and thank you @lefou for your patience : ) |
Beta Was this translation helpful? Give feedback.
-
Hi, I try to run the following mill examples,
The versions of java, scala and mill are
Though,
mill simple.compile
runs fine butmill simple.run
failed. and the error messages areBeta Was this translation helpful? Give feedback.
All reactions