You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a system such as MacOS with case-insensitive file names, we can end up with multiple generated files in the same folder with names that conflict - e.g. productions foobar and fooBar would create files Pfoobar.java and PfooBar.java, which are the same path on MacOS.
The proper fix for this is probably just to change how we encode generated file names to escape uppercase chars, e.g. the above would become Pfoobar.java and Pfoo_Bar.java instead. For nonterminals, we can probably assume that they start with an uppercase letter (I think the syntax enforces this?) and avoid always escaping the first character. This will be a somewhat annoying change to make, as many references to generated classes in the runtime will need to be updated. However this may be possible to automate using some clever regexes.
A workaround for now is to create a seperate partition with a case-sensitive filesystem for Silver development.
The text was updated successfully, but these errors were encountered:
On a system such as MacOS with case-insensitive file names, we can end up with multiple generated files in the same folder with names that conflict - e.g. productions
foobar
andfooBar
would create filesPfoobar.java
andPfooBar.java
, which are the same path on MacOS.The proper fix for this is probably just to change how we encode generated file names to escape uppercase chars, e.g. the above would become
Pfoobar.java
andPfoo_Bar.java
instead. For nonterminals, we can probably assume that they start with an uppercase letter (I think the syntax enforces this?) and avoid always escaping the first character. This will be a somewhat annoying change to make, as many references to generated classes in the runtime will need to be updated. However this may be possible to automate using some clever regexes.A workaround for now is to create a seperate partition with a case-sensitive filesystem for Silver development.
The text was updated successfully, but these errors were encountered: