Dotneteer / spectnetide

ZX Spectrum IDE with Visual Studio 2017 and 2019 integration
MIT License
205 stars 27 forks source link

Compiling hello world error #213

Open ChrisRMoore opened 3 years ago

ChrisRMoore commented 3 years ago

Hi,

Following getting started here https://dotneteer.github.io/spectnetide/getting-started/setup-zx-basic#article

Compiling simple 2 line program: image

results in error: Z0100: Unexpected token: '.'

The asm file seems to have these additional .s: image

If I remove them and run the .asm file it works.

How can I stop them being generated in the first place?

nww02 commented 3 years ago

I've just set up ZXBasic and SpectNet using ZXBasic 1.9.9. I typed in the two line program above, and it worked for me.

If you're using one of the new beta versions, there may be a bug in it, try rolling back to a prior version. I think the last stable version is zxbasic-1.14.0-win32.zip , but I already had 1.9.9 and I know that used to work okay.

image

If you have a stable win32 version of the zxbasic, zip up the project and attach it to a comment, there may be a problem with the project itself, or something snapped inside SpectNet.

ChrisRMoore commented 3 years ago

Hi,

Many thanks for coming back.

I was using 1.14.1 which is linked as the latest stable version here: https://zxbasic.readthedocs.io/en/docs/archive/

I downloaded 1.14.0 and changed the setting path but I get the same issue when I right-click and select Compile Code. image

The "."s it doesn't like are in the .asm file image

Path to settings image

I managed to get this same sine wave drawing code to work from VS Code: image

And it works fine in Fuse image

I'm probably doing something stupid but not sure what.

ChrisRMoore commented 3 years ago

PS - I used this one, should I use a different download? I'm on Windows 10 image

nww02 commented 3 years ago

Spect net's not been updated in a little while. Maybe try zxb 1.9.9 and see if that works for you... Might just be a misalignment between the two.

Get Outlook for Androidhttps://aka.ms/ghei36


From: McMorph notifications@github.com Sent: Sunday, February 21, 2021 7:49:50 PM To: Dotneteer/spectnetide spectnetide@noreply.github.com Cc: nww02 nww02@hotmail.com; Comment comment@noreply.github.com Subject: Re: [Dotneteer/spectnetide] Compiling hello world error (#213)

PS - I used this one, should I use a different download? I'm on Windows 10 [image]https://user-images.githubusercontent.com/1182989/108636548-e95f4100-747d-11eb-8a4a-8566542e34d6.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Dotneteer/spectnetide/issues/213#issuecomment-782914778, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALFCUOOB3OGLKQXNIBJ7HR3TAFPV5ANCNFSM4X46JK2Q.

ChrisRMoore commented 3 years ago

Using 1.9.9-Win32 seems to work, which is good enough for me. Thanks again image

nww02 commented 3 years ago

I'm sure once Istvan resurfaces he'll find the discrepancy and resolve it.... Afaicr, most of the changes recently have been optimisations, so in the meantime you should be good to use spectnet to develop and then do your final compile with zxb 1.14 if you need to deploy.

Get Outlook for Androidhttps://aka.ms/ghei36


From: McMorph notifications@github.com Sent: Sunday, February 21, 2021 7:58:20 PM To: Dotneteer/spectnetide spectnetide@noreply.github.com Cc: nww02 nww02@hotmail.com; Comment comment@noreply.github.com Subject: Re: [Dotneteer/spectnetide] Compiling hello world error (#213)

Using 1.9.9-Win32 seems to work, which is good enough for me. Thanks again [image]https://user-images.githubusercontent.com/1182989/108636728-16602380-747f-11eb-9842-6419c8c8ef2d.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Dotneteer/spectnetide/issues/213#issuecomment-782916043, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALFCUOMDHXM5WSR6HGHZKZTTAFQVZANCNFSM4X46JK2Q.

gusmanb commented 3 years ago

This is a known problem, SpectNetIDE doesn't supports dots on the assembler labels and ZXBasic starter using these in V 1.13 i think. There is an experimental version that supports the dots on the assembler here: https://github.com/Dotneteer/spectnetide/issues/205