dlang-tour / core

D Language online tour (https://tour.dlang.org/) and online editor (https://run.dlang.io/)
Boost Software License 1.0
117 stars 47 forks source link

run.dlang.io fails on 8,063+ character files #744

Open DragonDePlatino opened 4 years ago

DragonDePlatino commented 4 years ago

I use run.dlang.io to experiment with code snippets away from my local machine. If files hit 8,063 or more characters the console prints "1 unittests passed" and refuses to build.

To reproduce: create a file with just a main() and fill the remaining space with comments.

If this behavior is intended and you want to prevent people from compiling larger files, an explicit warning like "you have exceeded the maximum code length allowed on run.dlang.io" would clear up any confusion.

baryluk commented 4 years ago

Could be related to the URL length limit on GET queries? Does you also hit this if you paste the code directly on website and hit run? I would hope it would hope it uses POST query in this case, which shouldn't have that limit.

jmh530 commented 4 years ago

I am also having an issue with a file with many characters, but it is not clear if this is the same issue.

The file has around 11k characters and around 400 lines. When I run it, I get errors below, where line 288 is close to around 7600 characters. The code has nothing related to old_reserve, old_bal, new_bal in them. Or financial_service, or transactAccount.

onlineapp.d(288): Error: undefined identifier old_reserve
onlineapp.d(289): Error: undefined identifier old_bal
onlineapp.d(290): Error: undefined identifier new_bal
onlineapp.d(291): Error: undefined identifier new_bal
onlineapp.d(291): Error: undefined identifier old_bal
onlineapp.d(292): Error: undefined identifier new_bal
onlineapp.d(292): Error: undefined identifier old_bal
onlineapp.d(293): Error: undefined identifier new_bal
onlineapp.d(293): Error: undefined identifier old_bal
onlineapp.d(294): Error: undefined identifier new_bal
onlineapp.d(285): Error: undefined identifier old_reserve
onlineapp.d(279): Error: function onlineapp.financial_service.transactAccount label __returnLabel is undefined