Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » Merlin32 Language Service extension on Visual Studio 2015
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Merlin32 Language Service extension on Visual Studio 2015 [message #366199] Mon, 09 April 2018 15:32 Go to next message
Anonymous
Karma:
Originally posted by: Chris Zuhars

Hi,

I'd love to get the VS extension a try. I've got it installed on my VS 2015. I know it's been updated to work on VS2017. I can't seem to get it working on my system and I'm hoping it doesn't rely solely on VS2017.

If I create a basic text file (renamed to something.s), the color highlighting seems like it works, but intellisense doesn't seem like it's pulling anything.

Is there a project template that goes along with it? Or is just starting with a .s text file sufficient?

I tried opening the Solution files from GitHub, but I am told the project file cannot open since it was built upon VS2017.

I guess I need some nudging on how to use the extension within VS2015.

Thank you a bunch
ChrisZ
Re: Merlin32 Language Service extension on Visual Studio 2015 [message #366208 is a reply to message #366199] Mon, 09 April 2018 22:07 Go to previous messageGo to next message
sicklittlemonkey is currently offline  sicklittlemonkey
Messages: 570
Registered: October 2012
Karma: 0
Senior Member
On Tuesday, 10 April 2018 07:32:30 UTC+12, Chris Zuhars wrote:
> I'd love to get the VS extension a try. I've got it installed on my VS 2015. I know it's been updated to work on VS2017. I can't seem to get it working on my system and I'm hoping it doesn't rely solely on VS2017.

Hmm, I installed this the other week but didn't really test the set up fully. I'll try again if I have time and post back here.

I ended up going back to Notepad++ and have a test batch file open that:
- Waits for a key press
- Compiles with Merlin32
- Puts the file in a PO with Cadius (with a fix for the REPLACEFILE bug!)
- Runs GSport
- Loops

Cheers,
Nick.
Re: Merlin32 Language Service extension on Visual Studio 2015 [message #366212 is a reply to message #366208] Mon, 09 April 2018 23:45 Go to previous messageGo to next message
Hugh Hood is currently offline  Hugh Hood
Messages: 678
Registered: November 2012
Karma: 0
Senior Member
On 4/9/2018 9:07 PM, Nick Westgate wrote:
>
> I ended up going back to Notepad++ and have a test batch file open that:
> - Waits for a key press
> - Compiles with Merlin32
> - Puts the file in a PO with Cadius (with a fix for the REPLACEFILE bug!)
> - Runs GSport
> - Loops
>

Nick,

That sounds pretty useful. I wouldn't mind seeing just how you did that
if you care to share it.

Also, did you define your own language for Merlin source under
Notepad++? I've been using the stock 'Assembly' and it is just OK.

Normally for Merlin code I prefer using BBEdit on the Mac with a custom
language module for Merlin syntax highlighting (a modified version of
Ivan Drucker's 6502 module), but I'd probably use Notepad++ more when
I'm in Windows if it looked better. Yes, I know it's just cosmetic. ;-)

Thanks.




Hugh Hood
Re: Merlin32 Language Service extension on Visual Studio 2015 [message #366213 is a reply to message #366212] Tue, 10 April 2018 06:48 Go to previous messageGo to next message
sicklittlemonkey is currently offline  sicklittlemonkey
Messages: 570
Registered: October 2012
Karma: 0
Senior Member
On Tuesday, 10 April 2018 15:45:46 UTC+12, Hugh Hood wrote:
> That sounds pretty useful. I wouldn't mind seeing just how you did that
> if you care to share it.

The batch file? Well it's trivial, but sure:

@echo off
:START
echo.
set SOURCE_FILE=file
echo Assembling %SOURCE_FILE%.s ...
merlin32.exe . %SOURCE_FILE%.s
if %ERRORLEVEL% NEQ 0 echo Assembly failed.
if %ERRORLEVEL% NEQ 0 goto END

set A2_FILE=FILE.SYSTEM#FF2000
echo Copying %SOURCE_FILE% to %A2_FILE% ...
copy %SOURCE_FILE% %A2_FILE%
if %ERRORLEVEL% NEQ 0 goto END

set DISK_IMAGE=Disk.po
echo Copying %A2_FILE% to disk image %DISK_IMAGE% ...
cadius.exe REPLACEFILE %DISK_IMAGE% "/VOL" "%A2_FILE%"
if %ERRORLEVEL% NEQ 0 goto END

:RUN
echo Starting GSport ...
start GSport.exe

:END
echo.
echo Press any key to run again.
pause >NUL
goto START

I was going to do "continuous integration" with PowerShell or this:
https://github.com/benblamey/when_changed
.... but I don't have much time so I thought I better just get on with it.

Or did you mean the fix for the Cadius REPLACEFILE bug?
The PR has already been comitted, so just build from the source here:
https://github.com/mach-kernel/cadius

Also note that Cadius often doesn't return error exit codes.
I've logged an issue and created a pull request for some of the actions:
https://github.com/mach-kernel/cadius/issues/20

> Also, did you define your own language for Merlin source under
> Notepad++? I've been using the stock 'Assembly' and it is just OK.

No, it's just a tiny single file project (I'll post it soon), so I use
Notepad++ as a plain text editor, but I'd like to try the other options like
the VS extension when I have time. Thanks for the pointers.

Cheers,
Nick.
Re: Merlin32 Language Service extension on Visual Studio 2015 [message #366244 is a reply to message #366199] Wed, 11 April 2018 14:02 Go to previous messageGo to next message
Charlie is currently offline  Charlie
Messages: 255
Registered: November 2012
Karma: 0
Senior Member
On 4/9/2018 3:32 PM, Chris Zuhars wrote:
> Hi,
>
> I'd love to get the VS extension a try. I've got it installed on my VS 2015. I know it's been updated to work on VS2017. I can't seem to get it working on my system and I'm hoping it doesn't rely solely on VS2017.

I hadn't heard of the Merlin32 Language Service extension until I read
your post. Since I have VS2017 on my computer I decided to give it a
try. The download wouldn't install saying it wasn't designed for my
Visual Studio or something like that.

> If I create a basic text file (renamed to something.s), the color highlighting seems like it works, but intellisense doesn't seem like it's pulling anything.
>
> Is there a project template that goes along with it? Or is just starting with a .s text file sufficient?
>
> I tried opening the Solution files from GitHub, but I am told the project file cannot open since it was built upon VS2017.
>

I downloaded the Github files and and rebuilt it on VS2017 and it
complained that it needed a file in a VS2014 folder on my computer.
Surprisingly there was a folder like that on mine but didn't have the
requested file. I did a search and found the file changed a setting to
point to it and it built. The editor seems to work properly but I have
no idea how you set the output to work with Merlin32. When I do a build
on 'Hello World.s it creates an output folder and puts a bunch of junk
in it but, of course, no binary is assembled. Any ideas how to point VS
to Merlin32 so it can do its thing?

> I guess I need some nudging on how to use the extension within VS2015.


> Thank you a bunch
> ChrisZ
>

All I can suggest is to build it on VS2015.

Charlie
Re: Merlin32 Language Service extension on Visual Studio 2015 [message #366261 is a reply to message #366199] Thu, 12 April 2018 06:04 Go to previous message
sicklittlemonkey is currently offline  sicklittlemonkey
Messages: 570
Registered: October 2012
Karma: 0
Senior Member
On Tuesday, 10 April 2018 07:32:30 UTC+12, Chris Zuhars wrote:
> I'd love to get the VS extension a try.

Hopefully Charlie's post was useful to you as I still haven't tried it.

But I did have time (5 mins!) to install VS Code and Olivier's Merlin32ForVSCode:
https://github.com/OlivierGuinart/Merlin32ForVSCode

It's a cross-platform editing solution so it's probably of more interest here.

It works well so far. Not just syntax highlighting - auto-completion too.

This is more what I wanted, rather than using VS 2017 as a heavy text editor.
Tthe future branch can run Merlin32, but has had no changes since Sep 2017.

Cheers,
Nick.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: "Atari Video Music"-style Music Visualizer
Next Topic: How to write programs to CF card so that Apple IIGS can launch them?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Apr 16 18:28:05 EDT 2024

Total time taken to generate the page: 0.12796 seconds