SpinalHDL / SpinalDoc-RTD

The sources of the online SpinalHDL doc
https://spinalhdl.github.io/SpinalDoc-RTD/
Creative Commons Zero v1.0 Universal
25 stars 61 forks source link

describe how to use local spinal clone as dependency #261

Closed NikLeberg closed 4 months ago

NikLeberg commented 4 months ago

Lately I have been bitten by countless SCOPE VIOLATION or HIERARCHY VIOLATION errors that I did not know where they came from. It drove me crazy.

Thanks to https://github.com/SpinalHDL/SpinalHDL/issues/1387 I noticed that I simply set up my sbt build wrong. I was using Spinal from a local git clone (actually my fork of it) and didnt notice the missing scalac options. (I kinda dislike sbt, I think it is very complicated and slow...)

Nonetheless, I wanted to spare others from pain and try to document it a bit.

Todo: the mill side of it is missing as I don't use mill. Does someone have a working configuration for it?

Dolu1990 commented 4 months ago

Nice thanks :D

i don't know about Mill either.

Readon commented 4 months ago

I have written mill support script on Readon/FormalTutorial/build.sc file. Wish that helps.

NikLeberg commented 4 months ago

Figured out how to do it with mill. Mill is quite awesome I have to say.

Readon commented 4 months ago

I also tried to unify the version info for sbt and mill in one conf file @ SpinalHDL/SpinalTemplateSbt#40

Dolu1990 commented 4 months ago

Thanks ^^