On Monday, 26 April 2021 at 14:17:34 UTC, Imperatorn wrote:
>Also, be sure to join on Discord as well (https://discord.gg/bMZk9Q4) if you're not already there!
Thank you, I think I'll join.
April 26, 2021 Re: Visual D showing weird errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Imperatorn | On Monday, 26 April 2021 at 14:17:34 UTC, Imperatorn wrote: >Also, be sure to join on Discord as well (https://discord.gg/bMZk9Q4) if you're not already there! |
April 26, 2021 Re: Visual D showing weird errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Raimondo Mancino | On Monday, 26 April 2021 at 08:00:08 UTC, Raimondo Mancino wrote: >C:\D\dmd2\src\druntime\import\core\sys\windows\dll.d: Do you have a separate object.d in your current directory? That can cause all kinds of weird errors. Otherwise I suspect this is a conflict between two versions of the compiler. If you had one installed before then updated it or maybe if visual d installed a different one, this could be a problem. So either some old files were left behind or there's two copies installed and VS is running one but pointing at the other. Or something. The noreturn thing is relatively new making me think this might be the case. The compiler and stdlib are ridiculously tightly coupled so any version mismatch can cause trouble. just guessing though. |
April 26, 2021 Re: Visual D showing weird errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Monday, 26 April 2021 at 15:54:36 UTC, Adam D. Ruppe wrote: >Do you have a separate object.d in your current directory? That can cause all kinds of weird errors. Otherwise I suspect this is a conflict between two versions of the compiler. If you had one installed before then updated it or maybe if visual d installed a different one, this could be a problem. So either some old files were left behind or there's two copies installed and VS is running one but pointing at the other. Or something. The noreturn thing is relatively new making me think this might be the case. The compiler and stdlib are ridiculously tightly coupled so any version mismatch can cause trouble. just guessing though. Actually, you were right. I was about to write that updating Visual D to the latest version worked. I'm sorry for this silly thread. Thank you all for your help and suggestions. |
April 26, 2021 Re: Visual D showing weird errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Raimondo Mancino |
On 26/04/2021 10:00, Raimondo Mancino wrote:
> Hello, I'm new to the language; I just started learning it a few months ago. I'm doing okay with it, I find it very versatile and fast to learn. I come from Java and C/C++ and I think D solves tons of problems I had with these.
>
> I was trying the Visual D extension to Visual Studio, but after the first code generation (DLL library, x86 & x64 both checked), I get this weird error:
>
> ```
> C:\D\dmd2\src\druntime\import\core\sys\windows\dll.d:
> \object.d(18): can only `*` a pointer, not a `typeof(null)`
> ```
The problem is that the semantic engine used by Visual D is working with the DMD frontend of 2.095, but "noreturn" is a new language feature introduced with 2.096.
You can filter out messages from "Intellisense" in the Error List window by selecting to show "Build only".
I hope I can supply a new version of Visual D with an updated semantic engine soon.
|
April 26, 2021 Re: Visual D showing weird errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | On Monday, 26 April 2021 at 17:37:26 UTC, Rainer Schuetze wrote:
>
> On 26/04/2021 10:00, Raimondo Mancino wrote:
>> [...]
>
> The problem is that the semantic engine used by Visual D is working with the DMD frontend of 2.095, but "noreturn" is a new language feature introduced with 2.096.
>
> You can filter out messages from "Intellisense" in the Error List window by selecting to show "Build only".
>
> I hope I can supply a new version of Visual D with an updated semantic engine soon.
That would be awesome
|
April 28, 2021 Re: Visual D showing weird errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Imperatorn |
On 26/04/2021 20:22, Imperatorn wrote:
> On Monday, 26 April 2021 at 17:37:26 UTC, Rainer Schuetze wrote:
>>
>> On 26/04/2021 10:00, Raimondo Mancino wrote:
>>> [...]
>>
>> The problem is that the semantic engine used by Visual D is working with the DMD frontend of 2.095, but "noreturn" is a new language feature introduced with 2.096.
>>
>> You can filter out messages from "Intellisense" in the Error List window by selecting to show "Build only".
>>
>> I hope I can supply a new version of Visual D with an updated semantic engine soon.
>
> That would be awesome
There is a new version 1.1.1 available now with the semantic engine updated to dmd 2.096.1.
|
April 28, 2021 Re: Visual D showing weird errors | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | On Wednesday, 28 April 2021 at 06:06:47 UTC, Rainer Schuetze wrote:
>
>
> On 26/04/2021 20:22, Imperatorn wrote:
>> On Monday, 26 April 2021 at 17:37:26 UTC, Rainer Schuetze wrote:
>>>
>>> On 26/04/2021 10:00, Raimondo Mancino wrote:
>>>> [...]
>>>
>>> The problem is that the semantic engine used by Visual D is working with the DMD frontend of 2.095, but "noreturn" is a new language feature introduced with 2.096.
>>>
>>> You can filter out messages from "Intellisense" in the Error List window by selecting to show "Build only".
>>>
>>> I hope I can supply a new version of Visual D with an updated semantic engine soon.
>>
>> That would be awesome
>
> There is a new version 1.1.1 available now with the semantic engine updated to dmd 2.096.1.
Splendid, thanks! Will try it out soon
|